Talend Administrator webservice call

One Star

Talend Administrator webservice call

I'm trying to send context parameters as {{"TaskId","12345"},{"FileSet","something"}}
I do have created TaskId and FileSet as context params.
When i do a webservice call it is giving exception ::
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Found character data inside an array element while deserializing
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostnameSmiley FrustratedoWo-SQL
org.xml.sax.SAXException: Found character data inside an array element while deserializing
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at org.talend.administrator.webservices.AdministratorWebServiceSoapBindingStub.scheduleTaskForInstantRun(AdministratorWebServiceSoapBindingStub.java:246)
at org.talend.administrator.webservices.AdministratorWebServiceProxy.scheduleTaskForInstantRun(AdministratorWebServiceProxy.java:62)
at testJMSXML.LaunchTask(testJMSXML.java:25)
at testJMSXML.main(testJMSXML.java:36)
Community Manager

Re: Talend Administrator webservice call

Hello
The article is very old, the package org.talend.administrator.webservices.* have been updated more. It don't support passing context parameters like that.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Talend Administrator webservice call

Thanks for the reply..
It don't support passing context parameters like that.

then how can I send the context parameters to the job?
Community Manager

Re: Talend Administrator webservice call

Hello
I have confirmed with our colleague who written this article and he tell me that the context array don't accept any parameters. If you want to integrate Talend job into Eclipse, please see the following topics, I also show how to send the context parameter s to the job in the demo.
http://www.talendforge.org/forum/viewtopic.php?pid=11713#p11713
http://www.talendforge.org/forum/viewtopic.php?id=5658
http://www.talendforge.org/forum/viewtopic.php?id=5932
http://www.talendforge.org/forum/viewtopic.php?id=10915
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Talend Administrator webservice call

It is an interesting way to answer questions by the Talend team.
First, to say that article on official company's WIKI is old and no longer valid but not to provide a link to a correct one or to replace obsolete article.
Second, when explicitly asked about correct solution, provide several links to a completely different problem. (The question was about calling Talend job as a web service WITH context parameters but NOT about embedding Talend job in another application).
I am having the same problem and extensive search of Talendforge or the whole WWW did not reveal an answer.
I've got an impression that Talend QA team never had such test case executed.
BTW, during on-site training by the company trainer, I did ask that question but trainer did not know the answer either. :-((
One Star

Re: Talend Administrator webservice call

It is an interesting way to answer questions by the Talend team.
First, to say that article on official company's WIKI is old and no longer valid but not to provide a link to a correct one or to replace obsolete article.
Second, when explicitly asked about correct solution, provide several links to a completely different problem. (The question was about calling Talend job as a web service WITH context parameters but NOT about embedding Talend job in another application).
I am having the same problem and extensive search of Talendforge or the whole WWW did not reveal an answer.
I've got an impression that Talend QA team never had such test case executed.
BTW, during on-site training by the company trainer, I did ask that question but trainer did not know the answer either. :-((