web services - Error in deserializing body of request message for operation. C# -


im trying consume soapwebservice using c# when tried consume web service

service.findresrequest request = new service.findresrequest(); request.codeservice = "1010502";            service.findresresponse response = portclient.findservice(headers, request); 

but show error message: error in deserializing body of request message operation

inside of system.servicemodel.communicationexception > innerexception > [system.invalidoperationexception] "error on xml document (1,1879)"

inside of system.servicemodel.communicationexception > innerexception > innerexception > [system.formtexception] {"the string" not valid boolean"}

but if change property of request works, example if make request codestatus.

service.findresrequest request = new service.findresrequest(); request.codestatus = "1010502";            service.findresresponse response = portclient.findservice(headers, request); 

why works request.codestatus , doesnt reques.codeservice?

by way, when use soapui , make request codeservice, response successful.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -