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
Post a Comment