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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Use of tWebServiceInput with soap 1.2

Hello,
I have issues with the use of tWebServiceInput and I need some helps.
I did a Service in Talend based on a wsdl file.
<?xml version='1.0' encoding='UTF-8'?>
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://default_package/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" name="ReplicationService" targetNamespace="http://default_package/">
<wsdl:types>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://default_package/" elementFormDefault="unqualified" targetNamespace="http://default_package/" version="1.0">
<xs:element name="replicate" type="tns:replicate"/>
<xs:element name="replicateResponse" type="tns:replicateResponse"/>
<xs:complexType name="replicate">
<xs:sequence>
<xs:element minOccurs="0" name="arg0" type="xs:string"/>
<xs:element minOccurs="0" name="arg1" type="xs:string"/>
<xs:element minOccurs="0" name="arg2" type="xs:string"/>
<xs:element minOccurs="0" name="arg3" type="xs:string"/>
<xs:element minOccurs="0" name="arg4" type="xs:string"/>
<xs:element minOccurs="0" name="arg5" type="xs:string"/>
<xs:element minOccurs="0" name="arg6" type="xs:string"/>
<xs:element minOccurs="0" name="arg7" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="replicateResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>

</wsdl:types>
<wsdl:message name="replicate">
<wsdl:part element="tns:replicate" name="parameters"/>
</wsdl:message>
<wsdl:message name="replicateResponse">
<wsdl:part element="tns:replicateResponse" name="parameters"/>
</wsdl:message>
<wsdl:portType name="Replication">
<wsdl:operation name="replicate">
<wsdl:input message="tns:replicate" name="replicate"/>
<wsdl:output message="tns:replicateResponse" name="replicateResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ReplicationServiceSoapBinding" type="tns:Replication">
<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="replicate">
<soap12:operation soapAction="replicate" style="document"/>
<wsdl:input name="replicate">
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output name="replicateResponse">
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ReplicationService">
<wsdl:port binding="tns:ReplicationServiceSoapBinding" name="ReplicationPort">
<soap12:address location="http://localhost:8041/services/ReplicationPort"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

To test it , I created a simple job with the component tWebServiceInput.
When I run the job I have this error:
Exception in component tWebServiceInput_1
java.lang.NullPointerException
   at org.talend.DynamicInvoker.invokeMethod(DynamicInvoker.java:241)
   at org.talend.DynamicInvoker.main(DynamicInvoker.java:190)
   at org.talend.DynamicInvoker.main(DynamicInvoker.java:131)
   at hera2.replication_rm_0_1.Replication_RM.tWebServiceInput_1Process(Replication_RM.java:444)
   at hera2.replication_rm_0_1.Replication_RM.runJobInTOS(Replication_RM.java:849)
   at hera2.replication_rm_0_1.Replication_RM.main(Replication_RM.java:708)

But in the wsdl file when I replace "<soap12:...>" by "<soap:...>" it works fine!
Can someone tell me where is the problem?
For information I use Talend 5.4.2. Is this version works with SOAP 1.2?
Thanks in advance for your help.
Labels (5)
2 Replies
Anonymous
Not applicable
Author

Hi  
I used your wsdl file to deploy a webservice, and then try to call it with tESBConsumer , but I got the following error
java.lang.RuntimeException: java.lang.NoClassDefFoundError: local_project/replication_replicate_0_1/Replication_replicate$1Var__tXMLMap_1_TXMLMAP_OUT__Struct

If I change soap12 to soap, it works fine.  I have no idea what's the cause right now. Can you please report a issue on our bugtracker to let developers investigate it further. 
Regards
Shong
Anonymous
Not applicable
Author

Hi shong,
Thanks for your reply.
I'll report the issue.
Regards