• Post Reply Bookmark Topic Watch Topic
  • New Topic

SOAP Fault  RSS feed

 
Smitesh Shinde
Ranch Hand
Posts: 45
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am making a web service request to get following fault

<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Server was unable to process request. --> Length cannot be less than zero.
Parameter name: length</faultstring>
<detail />
</soap:Fault>

I googled several times to know the exact reason of this without any result.I do not have option of debugging at the server,so only option remains is to determine what goes wrong in my request?
Can anyone tell me the exact/probable reason of this?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the request have a parameter "length" with a proper value? You can use a proxy tool like SOAPUI or tcpmon to watch request and response in transit; that will help track down malformed messages.
 
Smitesh Shinde
Ranch Hand
Posts: 45
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf for immediate reply !!!

Are you talking about Content-Length header sent over HTTP or web service request has to send some parameter named length?I am very naive about this.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm talking about a parameter that's part of the WS request. The error seems to occur at a much higher level than HTTP.
 
Smitesh Shinde
Ranch Hand
Posts: 45
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am constructing everything manually i.e. no web service API.It's actually SOAP over HTTP.Something like this



Do i need to add something more?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently the server expects something that your code doesn't provide. I'd look into what the server expects, starting with its WSDL -assuming it has one- and other documentation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!