One Star

tSOAP : Unable to create envelope from given source

Hello
I need to retrieve data from a webservice. So i'm trying to use tSOAP component for that.
When I test the webservice on SOAPUI soft, I have a response.
When i try with Talend, i have the following message :
Démarrage du job DELT_SC7_Electre_30_HttpGet a 14:30 27/04/2012.
connecting to socket on port 3852
connected
XML-22103: (Fatal Error) DOMResult can not be this kind of node.
27 avr. 2012 14:30:52 com.sun.xml.internal.messaging.saaj.soap.EnvelopeFactory createEnvelope
GRAVE: SAAJ0511: Unable to create envelope from given source
Exception in component tSOAP_1
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
at com.sun.xml.internal.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:114)
at com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:70)
at com.sun.xml.internal.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:122)
at org.talend.soap.SOAPUtil.invokeSOAP(SOAPUtil.java:107)
at secile.delt_sc7_electre_30_httpget_1_0.DELT_SC7_Electre_30_HttpGet.tSOAP_1Process(DELT_SC7_Electre_30_HttpGet.java:1488)
at secile.delt_sc7_electre_30_httpget_1_0.DELT_SC7_Electre_30_HttpGet.runJobInTOS(DELT_SC7_Electre_30_HttpGet.java:4236)
at secile.delt_sc7_electre_30_httpget_1_0.DELT_SC7_Electre_30_HttpGet.main(DELT_SC7_Electre_30_HttpGet.java:3688)
Caused by: javax.xml.transform.TransformerException: XML-22103: (Fatal Error) DOMResult can not be this kind of node.
at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:901)
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:355)
at com.sun.xml.internal.messaging.saaj.util.transform.EfficientStreamingTransformer.transform(EfficientStreamingTransformer.java:393)
at com.sun.xml.internal.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:102)
... 6 more
CAUSE:
javax.xml.transform.TransformerException: XML-22103: (Fatal Error) DOMResult can not be this kind of node.
at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:901)
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:355)
at com.sun.xml.internal.messaging.saaj.util.transform.EfficientStreamingTransformer.transform(EfficientStreamingTransformer.java:393)
at com.sun.xml.internal.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:102)
at com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:70)
at com.sun.xml.internal.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:122)
at org.talend.soap.SOAPUtil.invokeSOAP(SOAPUtil.java:107)
at secile.delt_sc7_electre_30_httpget_1_0.DELT_SC7_Electre_30_HttpGet.tSOAP_1Process(DELT_SC7_Electre_30_HttpGet.java:1488)
at secile.delt_sc7_electre_30_httpget_1_0.DELT_SC7_Electre_30_HttpGet.runJobInTOS(DELT_SC7_Electre_30_HttpGet.java:4236)
at secile.delt_sc7_electre_30_httpget_1_0.DELT_SC7_Electre_30_HttpGet.main(DELT_SC7_Electre_30_HttpGet.java:3688)
CAUSE:
javax.xml.transform.TransformerException: XML-22103: (Fatal Error) DOMResult can not be this kind of node.
at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:901)
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:355)
at com.sun.xml.internal.messaging.saaj.util.transform.EfficientStreamingTransformer.transform(EfficientStreamingTransformer.java:393)
at com.sun.xml.internal.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:102)
at com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:70)
at com.sun.xml.internal.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:122)
at org.talend.soap.SOAPUtil.invokeSOAP(SOAPUtil.java:107)
at secile.delt_sc7_electre_30_httpget_1_0.DELT_SC7_Electre_30_HttpGet.tSOAP_1Process(DELT_SC7_Electre_30_HttpGet.java:1488)
at secile.delt_sc7_electre_30_httpget_1_0.DELT_SC7_Electre_30_HttpGet.runJobInTOS(DELT_SC7_Electre_30_HttpGet.java:4236)
at secile.delt_sc7_electre_30_httpget_1_0.DELT_SC7_Electre_30_HttpGet.main(DELT_SC7_Electre_30_HttpGet.java:3688)
2012-04-27 14:30:53|2qQo7R|2qQo7R|2qQo7R|SECILE|DELT_SC7_Electre_30_HttpGet|Default|6|Java Exception|tSOAP_1|com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:Unable to create envelope from given source: |1
disconnected
Job DELT_SC7_Electre_30_HttpGet terminé à 14:30 27/04/2012.
Please let me know where is the problem
End point "http://www.predic8.com:8080/material/ArticleService"
actio SOAP "get_action"
SOPA Message
"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns=\"http://predic8.com/wsdl/material/ArticleService/1/\">
<soapenv:Header/>
<soapenv:Body>
<ns:get>
<id>1561</id>
</ns:get>
</soapenv:Body>
</soapenv:Envelope>"
5 REPLIES
One Star

Re: tSOAP : Unable to create envelope from given source

Hi
According to your description, I have succeeded in creating this job and it works fine in TOS 5.0.2.
This is the result.
 Header | null                                                                               |
| Body | <ns2:getResponse xmlns:ns2="http://predic8.com/wsdl/material/ArticleService/1/" /> |
| Fault | null

Which version of TOS do you use? Which OS?
Regards,
Pedro
One Star

Re: tSOAP : Unable to create envelope from given source

I have just run into this same issue in TIS Enterprise 4.2.3
One Star

Re: tSOAP : Unable to create envelope from given source

And actually, I just figured out that the cause of this is having a tOracleInput component in my job. If that is deactivated, the tSoap component works fine. If it is active, then tSoap no longer works. I'm thinking it's something being added to the classpath that causes conflicts between these two components.
Ugh.
One Star

Re: tSOAP : Unable to create envelope from given source

Hi
Thanks for your feedback!
I will trace this topic to see whether this is a bug.
Regards,
Pedro
One Star

Re: tSOAP : Unable to create envelope from given source

Hi Pedro,
I ran into this very same problem where an Oracle connection (only used for standard Talend logging, I don't even have an Oracle component on my canvas) seems to be blocking soap connections. I have the exact same problem as the original poster. Tried both 4.2.3 and 5.1.1 of Talend Team Edition.
Regards,
Arno