Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

XML response deserialization problem - WebService

(0) ShareShare
ReportReport
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

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans