Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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.

Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

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>

View solution in original post

2 Replies
vapukov
Master II
Master II

--context_param File_name

 

not allowed to start name from not ABC

not allowed space in names

 

context_param_File_name

must be good

Anonymous
Not applicable
Author

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>