Launch a job with .NET

One Star

Launch a job with .NET

Dear all,
I'm using TOS in my company to do some ETL jobs, and i'ts working perfectly, well done Smiley Happy !
I would now like to launch some jobs from a web page made in ASP .NET. I think a web service is the best way to do that, and TOS can export a project with a web service.
When I import the web reference generated by TOS with Visual Studio, the wsdl file is recognized, and VS is able to show the method's list... no problem.
BUT... impossible to find the reference from the code, I just can't find the object nor the methods... When I start a debug, the following error appears :
---
Erreur 1 Impossible to import the link 'demoTalendPourProjetETLSoapBinding' from namespace ' http://talend.org'. App_WebReferences/talend/
---
What happens ? How can I launch Talend jobs with .NET ?
Thanks for your help
Community Manager

Re: Launch a job with .NET

Hello
BUT... impossible to find the reference from the code, I just can't find the object nor the methods... When I start a debug, the following error appears :

Read this 1686.
There is method name: runJob in wsdl file:
<wsdlSmiley Surprisedperation name="runJob">
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Launch a job with .NET

Dear shong,
Thank you for your reply
I'm using ASP .NET, so my web server is IIS
I have exported my job in Axis WebService (ZIP) (because WAR is not recognized), and put the extracted files in my WebSite's repository
The file system is :
-MyWebSite
-Talend
-WEB-INF
-wsdl
-myJob.wsdl
So the url will begin by http://localhost:4985/WebSite1/Talend/
But what do I have to type next ?
Thanks for helping me
Regards
PS : TOS version : 2.3.1
One Star

Re: Launch a job with .NET

Ok I have installed Tomcat just to test, and I made my WAR file
WAR file's name : Talend
Job's name : demo
When I go on the url http://localhost:8080/Talend/services/demo?method=runJob
I get the following XML :
--
?
<soapenv:Envelope>
?
<soapenv:Body>
?
<soapenv:Fault>
<faultcode>ns1Smiley Frustratederver.NoService</faultcode>
?
<faultstring>
The AXIS engine could not find a target service to invoke! targetService is demo
</faultstring>
?
<detail>
<ns2:hostname>MATTHIEU-GARDE</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
--
Seems like my web service is hiding
I found somewhere a guy who had the same problem, and he had been able to solve it by adding urn: to his url, like this :
http://localhost:8080/Talend/services/urn:demo?method=runJob
But it's not working for me Smiley Sad
Some ideas ?
Thanks Smiley Wink

PS : actually, I have the same problem than : http://www.talendforge.org/forum/viewtopic.php?pid=9858
One Star

Re: Launch a job with .NET

Hello everybody
Any idea on this monday morning ? Smiley Happy
Please do not hesitate to tell me I my question is not precise enouth
My jdk is JDK 6 Update 5 with Java EE, shall I have an other one ?
On java.com download page, I have :
- JDK 6 Update 5
- JDK 6 Update 5 with Java EE
- JDK 6 Update 5 with NetBeans 6.0.1
Thanks
One Star

Re: Launch a job with .NET

Hello maverick
I have test it with the JDK (build 1.6.0_05-b13) and Tomcat (jakarta-tomcat-5.0.28.exe) on TOS (TOS-All-r11699-V2.3.1). It run nomally. I see your note on this topic (forum:10184), your can check the post screen there. And I want your provide more info to help us locate this problem.
thanks.
One Star

Re: Launch a job with .NET

xtan, thank you very much for your support
I'm working on XP Pro SP2
JDK version : 1.6.0_05
Tomcat version : 5.0.28 (I had 6.0 before and thought the problem was coming from here... but now that I have the 5.0, the problem is still there !)
TOS version : 2.3.1.r11699
My wsdd directory is missing when Tomcat extracts the generated WAR file... I've never been able to make this run correctly
I join some screenshots for you
Thanks again