Hello
I'm trying to use a web service, which receives several parameters.
and connects to the webservice, and connects to the port, but consumes the web service error indicates a missing parameter.
the connection to the function you want to use the well performed:
where param0 is a string that contains only one variable.
The request of the function is as follows:
The error I received indicates that the parameter is not emisorRFC, which is correct.
How sending this parameter to webservice?
I'm trying to use a web service, which receives several parameters.
and connects to the webservice, and connects to the port, but consumes the web service error indicates a missing parameter.
the connection to the function you want to use the well performed:
Code:
CREATE SERVER hServer.
lReturn = hServer:CONNECT("-WSDL url_wsdl
-nohostverify").
RUN Nombre_ManagerPort SET hPortType ON SERVER hServer.
RUN requestFuncion IN hPortType (INPUT param0, OUTPUT wsOutput) NO-ERROR.
where param0 is a string that contains only one variable.
The request of the function is as follows:
HTML:
1. <?xml version="1.0" encoding="UTF-8"?>
2. <env:Envelope xmlns:env="url" xmlns:ns1="url" xmlns:xsd="url" xmlns:xsi="url" xmlns:enc="url">
3.
4. <env:Body>
5. <ns1:requestFuncion env:encodingStyle="url">
6. <param0 xsi:type="enc:Struct">
7. <UserPass xsi:type="xsd:string">111111</UserPass>
8. <UserID xsi:type="xsd:string">111111</UserID>
9. <emisorRFC xsi:type="xsd:string">RFC</emisorRFC>
10. <text xsi:type="xsd:string">Cadena</text2CFDI>
14. </param0>
15. </ns1:requestFuncion>
16. </env:Body>
17. </env:Envelope>
The error I received indicates that the parameter is not emisorRFC, which is correct.
How sending this parameter to webservice?
Last edited: