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/}hostnameoWo-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)
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
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. :-((
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. :-((