[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with WSDL2RPG



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Work in progress via private email.

Am 11.09.2014 18:12, schrieb Scott Feddersen:
> I have a Web Service I have been trying to access with WSDL2RPG.
> 
> 
> The WSDL2RPG receives an error when trying to generate the stubs.
> 
> 
> I have been able to access one part of the service with the
> following:
> 
> soapmsg = '<SOAP-ENV:Envelope xmlns:SOAP-ENV='
> 
> + '"http://schemas.xmlsoap.org/soap/envelope/";>';
> 
> 
> 
> soapmsg = soapmsg
> 
> + ' <SOAP-ENV:Header>';
> 
> soapmsg = soapmsg
> 
> +   '<wsse:Security SOAP-ENV:mustUnderstand="1" '
> 
> + 'xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-'
> 
> +               '200401-wss-wssecurity-secext-1.0.xsd" '
> 
> + 'xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-'
> 
> +              '200401-wss-wssecurity-utility-1.0.xsd"> ';
> 
> soapmsg = soapmsg
> 
> +     '<wsse:UsernameToken wsu:Id="UsernameToken-1">';
> 
> soapmsg = soapmsg
> 
> +      '<wsse:Username>username</wsse:Username>';
> 
> soapmsg = soapmsg
> 
> +      '<wsse:Password Type="http://docs.oasis-open.org/wss/'
> 
> + '2004/01/oasis-200401-wss-username-token-profile-1.0#'
> 
> +      'PasswordText">********</wsse:Password> ';
> 
> soapmsg = soapmsg
> 
> +     '</wsse:UsernameToken> ';
> 
> soapmsg = soapmsg
> 
> +   '</wsse:Security>';
> 
> soapmsg = soapmsg
> 
> + ' </SOAP-ENV:Header>';
> 
> soapmsg = soapmsg
> 
> + ' <SOAP-ENV:Body> ';
> 
> soapmsg = soapmsg
> 
> + '  <ns3:LookupProduct xmlns:ns2="http://InteQInsights.com"; '
> 
> + '                     xmlns:ns3="http://tempuri.org/";> ';
> 
> soapmsg = soapmsg
> 
> + '   <ns3:request> ';
> 
> soapmsg = soapmsg
> 
> + '    <ns2:ProductNumber>3647600000</ns2:ProductNumber> ';
> 
> soapmsg = soapmsg
> 
> + '    <ns2:UPCCode xmlns:xsi="http://www.w3.org/2001/XMLSchema'
> 
> +       '-instance" xsi:nil="true"/> ';
> 
> soapmsg = soapmsg
> 
> + '    <ns2:DepartmentCode xmlns:xsi="http://www.w3.org/2001/'
> 
> +       'XMLSchema-instance" xsi:nil="true"/> ';
> 
> soapmsg = soapmsg
> 
> + '    <ns2:ClassCode xmlns:xsi="http://www.w3.org/2001/'
> 
> +       'XMLSchema-instance" xsi:nil="true"/> ';
> 
> soapmsg = soapmsg
> 
> + '   </ns3:request> ';
> 
> soapmsg = soapmsg
> 
> + '  </ns3:LookupProduct> ';
> 
> soapmsg = soapmsg
> 
> + ' </SOAP-ENV:Body> ';
> 
> soapmsg = soapmsg
> 
> + '</SOAP-ENV:Envelope>';
> 
> DECRYPTLOC = 'bklws.shcdqa.com';
> 
> // Send SOAP request
> 
> RC = http_url_post_xml(
> 
> 'https://bklws.shcdqa.com/ClientWebService.svc/basic'
> 
> : %addr(SOAPMSG) + 2
> 
> : %len(SOAPMSG)
> 
> : *NULL
> 
> : %paddr(Incoming)
> 
> : %addr(CC)
> 
> : HTTP_TIMEOUT
> 
> : HTTP_USERAGENT
> 
> : 'text/xml;charset=utf-8'
> 
> : '"http://tempuri.org/IClientWebService/LookupProduct";');
> 
> 
> From what I can tell I am setting up the soap message, soapaction, 
> content, url, etc. the same but I always receive a 400 - bad request 
> when I try to use WSDL2RPG.
> 
> 
> WSDL2RPG uses the following to call the service.
> 
> rc = http_url_post_raw2(
> 
> url
> 
> : hInpStream
> 
> : %paddr(
> 
> 'WSDL2R87_ManagedMemoryDataSource_InputStream_read')
> 
> : ManagedMemoryDataSource_getSize(hDataSource)
> 
> : 0
> 
> : %paddr('HTTP_receiveResponse')
> 
> : getTimeout()
> 
> : getUserAgent()
> 
> : '');
> 
> 
> Thanks in advance for any suggestions.
> 
> 
> Scott Feddersen
> 
> Buckle, Inc.
> 
> PO Box 1480
> 
> Kearney, NE 68848
> 
> 
> (308) 236-4456
> 
> scott.feddersen@xxxxxxxxxx
> 
> 
> CONFIDENTIAL COMMUNICATION: This e-mail message and any attachments
> are for the sole use of the intended recipient(s) and may contain 
> confidential and/or privileged information.  Any unauthorized review, 
> use, disclosure or distribution is prohibited. If you are not the 
> intended recipient, please contact the sender by reply e-mail and 
> destroy all copies of the original message and any attachments.
> Thank you.
> 
> 
> 
> -----------------------------------------------------------------------
>
> 
This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi 
> -----------------------------------------------------------------------
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJUIyx0AAoJELxuAUPiYRU8uaoIAJj6S7Ro1GpU1HBJYPqGrVZx
3BvT+xrDYnDWf/yjeBjPOfWhQj4e5OEQ/FemXiMPzJ8iVVP4ZcjkeCok9e9zjo1h
nne+j64qpJ4g5I5oMEE3CU0c8WjgqdI+oSZNDOR38ed/2xhnoD2ahh178k4OXMm+
3jWVjRunCaQoWJ5ay9Zuys23kPjUs6zA2Vl3fm5dEXN4ZEEi0PH0//s/oK/x/Rzs
T62nVoUXmqKCtg82PYsSI1McjZx6VVyRu1Ml5VrB3ipbZmGQu87NnZKEfmOVcB4h
JyLrjlb+5lNzCnBNK5JMO7FFZOnA1TY51vBDwWs2RrHOOGCQjlD99b16jgJc4/w=
=209j
-----END PGP SIGNATURE-----
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------