Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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
    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
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,206 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans