Hello, I have a problem with the invocation of a WebService through TWebServiceInput component. Version: Talend Open Studio, Version: 3.0.3 Build id: r21383-20090126-2207 I'm trying to run the webservice but doesn't obtain the correct results, another tools to test webservices runs ok. I have attached several images. Execution ok of the webservice through "http", fich1.jpg Execution via tWebServiceInput, fich2.jpg (ko) Design of the Job on Talend 3.0.3, fich3.jpg Thanks in advance
Yes, of course, here you are.
I have tested with two schemas "exit1" and "exit2" but the results are the same.
The file "exit2.jpg" contains the fields corresponding to the Webservice response.
I have attached too an extract of a document that explains the webservice response and input parameters.
Thanks
Hello guy
If you return multiple fileds at a time or the result contains complex type, you should use the 'Advanced Use' in Advanced settings tab. see 3814.
Please follow the steps as the screenshots.
Best regards
Hello,
I have followed your instructions and i have had to rebuild the generate code by Talend, to obtain right results, the results are ok.
I have now another problem. The parameters that WebService needs as arguments (8 paramters) are included in code (see figure1 and the next code):
*************************
routines.DeydeSoap_PortType DeydeSoap = new routines.Deyde_ServiceLocator().getdeydeSoap();
routines.DeydeSoap_BindingStub stub = (routines.DeydeSoap_BindingStub)DeydeSoap;
java.lang.String param1 = "user";
java.lang.String param2 = "password";
java.lang.String param3 = "mayor 8 28000 madrid";
java.lang.String param4 = "es,dom,cand";
javax.xml.rpc.holders.StringHolder param5 = new javax.xml.rpc.holders.StringHolder("noerror");
javax.xml.rpc.holders.StringHolder param6 = new javax.xml.rpc.holders.StringHolder("");
java.lang.Long paramLong = -1L;
javax.xml.rpc.holders.LongWrapperHolder param7 = new javax.xml.rpc.holders.LongWrapperHolder(paramLong);
javax.xml.rpc.holders.StringHolder param8 = new javax.xml.rpc.holders.StringHolder("");
java.lang.Object[] result = DeydeSoap.deydePlus(param1, param2, param3, param4, param5, param6, param7, param8);
output_row.errorMsg = (String) result;
output_row.candidateList = (String)result;
output_row.selectedCandidate = (Long)result;
output_row.pobVia = (String)result;
output_row.deydePlusResult = (String)result;
*****************************************
But I would like to obtain the input parameters (by code) dynamically through the values of the parameters of the TWebService Component. This component has a prior component (file) that contains several sets of parameters.
For example, "java.lang.String param1 = "entrada_ws.user" is not valid.
Thanks