Four Stars

How to build an XML post and send it using the Talend web service.

When I try to do this without a parameter, it works fine.

 

<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<runJob xmlns="http://localhost:8080/Tomcat/services/Tomcat"></runJob>
</soap:Body>
</soap:Envelope>

 

But when I add a parameter, it stops working. Something is wrong with XML tags.


<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<runJob xmlns="http://localhost:8080/Tomcat/services/Tomcat"></runJob>
<tal:args>
<tal:item>--context_param File_name=Test_file</tal:item>
</tal:args>
</soap:Body>
</soap:Envelope>

If someone faced with such a problem, please advise how to solve it .

Thanks in advice.

  • Data Integration
1 ACCEPTED SOLUTION

Accepted Solutions
Four Stars

Re: How to build an XML post and send it using the Talend web service.

Thank you varikov  for your answer ! 

The final working version looks like this :

 

<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tal="http://talend.org">
<soap:Body>
<tal:args>
<tal:item>--context_param File_name=Test_file</tal:item>
</tal:args>
</soap:Body>
</soap:Envelope>

2 REPLIES
Seven Stars

Re: How to build an XML post and send it using the Talend web service.

--context_param File_name

 

not allowed to start name from not ABC

not allowed space in names

 

context_param_File_name

must be good

-----------
Four Stars

Re: How to build an XML post and send it using the Talend web service.

Thank you varikov  for your answer ! 

The final working version looks like this :

 

<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tal="http://talend.org">
<soap:Body>
<tal:args>
<tal:item>--context_param File_name=Test_file</tal:item>
</tal:args>
</soap:Body>
</soap:Envelope>