Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

XML response deserialization problem - WebService

Posted on by 5

Good morning,

I'm having trouble getting a response using webservice. It seems that the request is fine because on the server side they receive messages.

ServiceReference1.ServiceClient servClient = new ServiceReference1.ServiceClient();

ServiceReference1.TLampInfo tLampInfo = new ServiceReference1.TLampInfo();
ServiceReference1.TRespons directResponse = new ServiceReference1.TRespons();


tLampInfo.Txt = "Test1234";

directResponse = servClient.SendLamp(tLampInfo); <---- error

 

I get a message then I try to download the response:  "Error in deserializing body of reply message for operation 'SendLamp'". What else should I do? How should I use deserialization in this case?

  • lasterlesiu123 Profile Picture
    lasterlesiu123 5 on at
    RE: XML response deserialization problem - WebService

    Charlotte X Sorry, I made a mistake in translating the error from Polish. The error sounds: "Error in deserializing body of reply message for operation 'SendLamp'. In my opinion, everything is fine here because the request is being sent correctly. The problem is when the response is reading.

  • Suggested answer
    Charlotte X Profile Picture
    Charlotte X on at
    RE: XML response deserialization problem - WebService

    Hi lasterlesiu123,

    Sorry I don't know much about development, but I found some relevant information that I hope they are helpful to you.

    c# - Error in deserializing body of request message for operation - Stack Overflow

    vb.net - Error in deserializing body of request message for operation 'abc' - Stack Overflow

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans