-
Badly formed SOAP Message when calling Web Service (1 messages)
- Posted by: vijay kumar
- Posted on: December 26 2007 14:57 EST
Hi All, I am facing problem to send a string of size more than 32KB when invoking the web service. Its working fine upto 32KB.I need to send string of size 80KB to web service. I Used the jax-ws 2.0, WebSphere Application Server 6.1.0.7 (Web service feature pack). Is there any where i need to set size in program or in Application Server I am getting following Exception when trying to send string size more then 32kb. Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Badly formed SOAP Message at com.sun.xml.ws.encoding.soap.ClientEncoderDecoder.toMessageInfo(ClientEncoderDecoder.java:84) at com.sun.xml.ws.encoding.soap.client.SOAPXMLDecoder.toMessageInfo(SOAPXMLDecoder.java:209) at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:538) at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:258) at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:137) at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:84) at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:172) at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:106) at $Proxy17.process1(Unknown Source) can anybody give me hint/suggestion thanksThreaded Messages (1)
- Re: Badly formed SOAP Message when calling Web Service by Krishna Pothula on December 30 2007 11:43 EST
-
Re: Badly formed SOAP Message when calling Web Service[ Go to top ]
- Posted by: Krishna Pothula
- Posted on: December 30 2007 11:43 EST
- in response to vijay kumar
javax.xml.ws.soap.SOAPFaultException: Badly formed SOAP Message
From the Exception Stacktrace.. I can see that problem is not while sending... but after receiving a response. Check the response you are getting from the server. You can use this tool.. TCP Trace. A very handy tool for viewing the HTTP/TCP traffic.
at com.sun.xml.ws.encoding.soap.ClientEncoderDecoder.toMessageInfo(ClientEncoderDecoder.java:84)
at com.sun.xml.ws.encoding.soap.client.SOAPXMLDecoder.toMessageInfo(SOAPXMLDecoder.java:209)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:538)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:258)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:137)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:84)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:172)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:106)
at $Proxy17.process1(Unknown Source)