web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Passing parameters to D365 REST service via SoapUI

(0) ShareShare
ReportReport
Posted on by 85

Hi, 

I'm trying to call one of standard REST services:

/api/services/ProjectServices/ProjectWbsService/getProjectInfo

This service requires two parameters - company id and project recid. How should I set up these parameters in SoapUI?

Not matter which settings I try I'm getting either (when post query string is not set)

"Message": "An unhandled exception was caught by the X++ Custom Services controller - Parameter count mismatch..",

or (when post query string is set)

"Message": "An exception occured when deserializing a parameters - Exception occured when parsing the request content - Unexpected character encountered while parsing value: C. Path '', line 0, position 0.",

In first case I've tried to add many parameters, but it seems they are simply not passed properly. In second case mentioned 'C' is the first letter of parameter name. 

Token is fine - methods without parameters works fine. 

What am I missing?

I have the same question (0)
  • luksz Profile Picture
    85 on at

    I've checked the other services via REST endpoint and I'm facing the same issues; both on SoapUI and Postman. On the other hand SOAP calls work fine. So it must be something with passing parameters via REST. Anyone?

  • Verified answer
    Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    You should pass a JSON object with two properties (company and recordId) in the request body.

  • luksz Profile Picture
    85 on at

    Thanks Martin, it worked!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans