You are not logged in.
Announcement
Unanswered posts
|
Pages: 1
Hi,
I have made a Job Talend named myjob and export it as a webservice with .war extension. I copied the .war in the webapp directory of a Tomcat 5.5 server.
When I use the common way to run the service "http://localhost:8080/myjob/services/myjob?method=runJob" it work very well.
But, when I tried to use it in Flex or in soapui it doesn't work. The wsdl is find at http://localhost:8080/myjob/wsdl/myjob.wsdl but, when I tried to run the method "runJob" of the webservice I have no results.
Is there a way to use Talend webservices with SAOP ?
Thank you
Offline
Hello guy
Read the related article on wiki.
Best regards
shong
Offline
Hi,
I have seen this wiki but it doesn't explain how to call the webservice directly by using SOAP.
For example, I want to send a request on the method "runJob" which look like this :
POST http://localhost:8080/test HTTP/1.1
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost:8080
Content-Length: 300
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tal="http://talend.org">
<soapenv:Header/>
<soapenv:Body>
<tal:args>
<!--Zero or more repetitions:-->
<tal:item></tal:item>
</tal:args>
</soapenv:Body>
</soapenv:Envelope>Is it possible to use SOAP directly or I can only use the web interface ?
Offline

Hello I have the same question.
How can I call Talend webservice with soap ?
Regards,
Cyril
Offline
Hello All
a)Run the job on browser, enter the url: http://localhost:8080/myjob/services/myjob?method=runJob
b)Run the job on tWebserviceInput component, enter
WSDL: "http://localhost:8080/myjob/services/myjob?wsdl"
Method name:"runJob"
Best regards
shong
Offline

Hi Shong,
Thanks for your response.
In my case a) and b) are OK !!!
I want to call the talend web service with soap in a php page.
The problem is that I don't know how to load web service parameter ...
You can see my code bellow :
---------------------
try {
$wsdl='http://localhost:8086/MyJob_v1_0.1/services/MyJob_v1?WSDL';
$client=new soapclient($wsdl, array('trace'=>1));
// It doesn't work
$param=array('--context_param%20CpyName=' + (String)$CpyName);
$result=$client->runJob($param);
} catch (SoapFault $fault) {
trigger_error("SOAP FAULT: $fault",E_USER_ERROR);
}
echo 'REQUEST: ' . $client->__getLastRequest();
echo "<BR>";
echo 'RESPONSE: ' . $client->__getLastResponse();
echo "<BR>";
---------------------
Offline

I've found the solution :
------------------------------------------------------------------------
$param[0]='--context_param CpyName=' . (String)$CpyName;
Offline
Hello guy
You have finished a good work! ![]()
I have show someone to run talend job in a JSP page, see [Forum, topic 6945] JSP java server page.
But I did't try to run it on a PHP page. Can you show us the whole page code or write down the steps to share it with all the users?
Thanks for your support!!!
Best regards
shong
Offline
Pages: 1