This is a public Forum  publicRSS

Topic

    Trushar Gohil
    Webservice Error for Right now Custom Object
    Topic posted February 9, 2017 by Trushar GohilNewbie 
    218 Views, 1 Comment
    Title:
    Webservice Error for Right now Custom Object
    Content:

    Here is the error while cosuming webservice with TOMCAT 7.0 

    javax.xml.ws.soap.SOAPFaultException: Problem writing SAAJ model to stream: Error writing request body to server
    javax.xml.ws.soap.SOAPFaultException: Problem writing SAAJ model to stream: Error writing request body to server
        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:161)
        at com.sun.proxy.$Proxy94.create(Unknown Source)

    Caused by: com.ctc.wstx.exc.WstxIOException: Error writing request body to server
        at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteNamespace(BaseNsStreamWriter.java:568)
        at com.ctc.wstx.sw.SimpleNsStreamWriter.writeNamespace(SimpleNsStreamWriter.java:137)
        at org.apache.cxf.staxutils.StaxUtils.writeStartElement(StaxUtils.java:830)
        at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:737)
        at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:701)
        at org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor$SAAJOutEndingInterceptor.handleMessage(SAAJOutInterceptor.java:214)
        at org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor$SAAJOutEndingInterceptor.handleMessage(SAAJOutInterceptor.java:174)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
        at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277)
        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)

    Kindly help in the Issue.

    Thanks in advance.

    Version:
    Oracle Service Cloud November 2016
    Code Block:

    Answer

     

    • Pramod Vasudeva Murthy

      I am not sure if the stubs or jars are appropriate. Easiest way is to embed a SOAP request xml and execute them using relevant JARs.

      ps: Consume the WSDL in a tool like SOAP UI or Google Postman to check if you have a problem with WSDL and also check profiles if you have access to use Web Services.

      - VIP