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

Consuming DHL Webservices



   Hello,
   I am new to webservices.  I need to use DHL webservices, in order to
   create shipments, get labels, etc...
   So, first I have tried some simple webservices, like [1]stockquote,
   [2]currency convertor (with IBM's wdsl2rpg and with Scott's HTTPAPI),
   and this worked fine with both the tools.
   With DHL WebService, I first tried the GetVersion opération, and this
   also was successful.
   But, I am now blocked with the other operation  (createShipmentDD,
   getLabelDD) :  I have checked my requests using SoapUI, and this works
   fine, but not when I try to consume the webservice using HTTPAPI in a
   RPG program
   I guess that the problem comes from the parameters when I call the
   http_url_post_xml function, and especially the last one, the
   SOAPaction.
   Based on the values that I retrieve from SoapUI, hereafter, the
   beginning of the request :
   POST [3]http://test-intraship.dhl.com/ws/1_0/de/ISService HTTP/1.1
   Accept-Encoding: gzip,deflate
   Content-Type: text/xml;charset=UTF-8
   SOAPAction: "urn:createShipmentDD"
   I have tried to call it this way :
   rc = http_url_post_xml(
   '[4]http://test-intraship.dhl.com/ws/1_0/de/ISService'
        : %addr(SOAP) + 2
        : %len(SOAP)
        : *NULL
        : %paddr(Incoming)
        : %addr(value)
        : HTTP_TIMEOUT
        : HTTP_USERAGENT
        : 'application/xml'
        : 'urn:createShipmentDD');

   I have tried different values ('urn:createShipmentDD',
   '[5]http://test-intraship.dhl.com/ws/1_0/de/ISService/createShipmentDD'
   )
   but each time, I get the result of the GetVersion operation (which must
   be the default action I suppose)
   I would be very grateful if someone could help me ...
   Pascal

References

   1. http://www.webservicex.net/stockquote.asmx
   2. http://www.webservicex.net/CurrencyConvertor.asmx%27
   3. http://test-intraship.dhl.com/ws/1_0/de/ISService
   4. http://test-intraship.dhl.com/ws/1_0/de/ISService
   5. http://test-intraship.dhl.com/ws/1_0/de/ISService/
begin:vcard
fn:Pascal Kirscher
n:Kirscher;Pascal
org:SES-Sterling SA
adr;quoted-printable:;;1 bis, rue de D=C3=A9l=C3=A9mont;Saint-Louis;;68300;France
email;internet:pkirscher@xxxxxxxxxxxxxxxx
title:DSI
tel;work:03 89 70 20 36
tel;fax:03 89 70 20 37
url:www.ses-sterling.com
version:2.1
end:vcard

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------