tSoap : How to send SOAP UI message with Talend ?

Six Stars

tSoap : How to send SOAP UI message with Talend ?

Hello,

i have a problem with tSoapUi component, and google don't help me.

I want to develop a talend job who can send a Soap Ui Request, and read the response in a tLogRow component.

First, endpoint and Action Soap are correct ? I think endpoint is easy to found, i copy/paste with SoapUI. but "Action Soap", i don't really understand what it is. The component don't want the WSDL, it's strange too, dont understand.

 

When i run the job, the error is strange too (check), my syntax work with Soap Ui, why not in Talend?

Thanks you, and sorry for bad English.

 

Request (in screenshoot too) :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="http://com.mt.nif.dsis.services.dsis/">
   <soapenv:Header/>
   <soapenv:Body>
      <com:getDocsis>
         <macAddress>555</macAddress>
      </com:getDocsis>
   </soapenv:Body>
</soapenv:Envelope>

 

 

 

SoapErreur1.png


Accepted Solutions
Forteen Stars

Re: tSoap : How to send SOAP UI message with Talend ?

Check the "quotes inside quotes"

 

try with:

"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:com=\"http://com.mt.nif.dsis.services.dsis/\">
   <soapenv:Header/>
   <soapenv:Body>
      <com:getDocsis>
         <macAddress>555</macAddress>
      </com:getDocsis>
   </soapenv:Body>
</soapenv:Envelope>"

 

-----------
Forteen Stars

Re: tSoap : How to send SOAP UI message with Talend ?

as I can see You have not SOAPAction from SoapUI side

 

check there for examples - https://www.w3.org/TR/wsdl

-----------
Six Stars

Re: tSoap : How to send SOAP UI message with Talend ?

Thanks, now it work perfectly.

 

Solution is :

1) Care about quotes with \" caracters.

2) Field Action SOAP will be empty when SOAP don't have any action. We can found this information in SOAPUI, or in WSDL, exemple where we can see SoapAction = "" 

<wsdl:operation name="getDocsis">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="getDocsis">
<soap:body use="literal"/>
</wsdl:input>

 

SPAC.PNG


All Replies
Forteen Stars

Re: tSoap : How to send SOAP UI message with Talend ?

Check the "quotes inside quotes"

 

try with:

"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:com=\"http://com.mt.nif.dsis.services.dsis/\">
   <soapenv:Header/>
   <soapenv:Body>
      <com:getDocsis>
         <macAddress>555</macAddress>
      </com:getDocsis>
   </soapenv:Body>
</soapenv:Envelope>"

 

-----------
Six Stars

Re: tSoap : How to send SOAP UI message with Talend ?

Thanks for your response, now the job can run whitout executions errors.

I am not sure about parameters, and Talend return in execution log a Soap error. So, i think my endpoint is correct, but the field "Action SOAP" not ? What can i write in "Action Soap"? Thanks

 

 

Démarrage du job CorrectionDonneesAPP_VTI a 08:10 08/06/2017.
[statistics] connecting to socket on port 3617
[statistics] connected
||<soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soap:Server</faultcode><faultstring>The given SOAPAction http://vip-nif-p.prod.lan:8080/nif-dsis/services/getDocsis does not match an operation.</faultstring></soap:Fault>
[statistics] disconnected
Job CorrectionDonneesAPP_VTI terminé à 08:10 08/06/2017. [Code sortie=0]

Field action soap : "http://-------------.lan:8080/nif-dsis/services/getDocsis"

Field endpoint : "http://-------------.lan:8080/nif-dsis/services/dsis"

In SoapUI :

SoapUI55.PNG

 

Forteen Stars

Re: tSoap : How to send SOAP UI message with Talend ?

as I can see You have not SOAPAction from SoapUI side

 

check there for examples - https://www.w3.org/TR/wsdl

-----------
Six Stars

Re: tSoap : How to send SOAP UI message with Talend ?

Thanks, now it work perfectly.

 

Solution is :

1) Care about quotes with \" caracters.

2) Field Action SOAP will be empty when SOAP don't have any action. We can found this information in SOAPUI, or in WSDL, exemple where we can see SoapAction = "" 

<wsdl:operation name="getDocsis">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="getDocsis">
<soap:body use="literal"/>
</wsdl:input>

 

SPAC.PNG

Four Stars

Re: tSoap : How to send SOAP UI message with Talend ?

Hello, I have the same issue, my request works with soap UI, but not with Talend tsoapimage.png

image.png

I have this error message :  SAAJ0009: Message send failed
[FATAL]: api.e2time_0_1.e2time - tSOAP_1 java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed

Could you help me please ?

Tags (2)
Highlighted
Four Stars

Re: tSoap : How to send SOAP UI message with Talend ?

Solved: the https certificate was missing from java.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download