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, ...
Unanswered

How to send a body of a SOAP request through x++?

(0) ShareShare
ReportReport
Posted on by 64

I'm trying to create a post method to a SOAP API using X++. When I try to call the request.getResponse(), I get a 415 Unsupported Media Type. I think the area in red, where i'm trying to post the XML body, is causing issues. Does any one have any advice on this?

pastedimage1589230991593v2.png

pastedimage1589230948481v1.png

I have the same question (0)
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi,

    Is this issue related to D365FO?

    Best regards,

    Ludwig

  • Martin Dráb Profile Picture
    237,874 Most Valuable Professional on at

    Did you consider using the normal way, i.e. letting Visual Studio generate proxy classes and calling these proxy classes in object-oriented way, instead of writing all low-level code manually?

  • Dishanth Profile Picture
    90 on at

    Hi ,

    Did you get any solution for this as I am also facing the same issue.

    Thanks,
    Dishanth

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 659 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 289 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans