[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Soap header user name and password example for RPG
Hello,
Based on a Scott Klement example a colleague is trying to use RPG to
use a web service. Par of the coding is shown below. As I understand
it, header information can be included along the lines of the section
between the <soap: Header> tags. Does anyone have an example of the
exact structure/nature of this code?
Thank you very much
0043.00 SOAP
=
0043.02 '<?xml version="1.0"
encoding="utf-8"?>'
0043.03
+'<soap12:Envelope'
0043.04 +'
xmlns:xsi="[1]http://www.w3.org/2001/XMLSchema-instance"'
0043.05 +'
xmlns:xsd="[2]http://www.w3.org/2001/XMLSchema"'
0043.06 +'
xmlns:soap12="[3]http://www.w3.org/2003/05/soap-envelope">'
<soap:Header>
(optional) contains header info, like payment info or authentication
info
(crypto key, userid/password, etc)
</soap:Header>
0043.07
+'<soap12:Body>'
0043.08 +' <GetItemsOfType
xmlns="[4]http://rio.apps.ml.com/rio.asmx">'
0043.09 +'
<set>Set</set>'
0043.10 +'
<date>Date</date>'
0043.11 +'
<types>'
0043.12 +'
<string>Set</string>'
0043.13 +'
<string>Date</string>'
0043.14 +'
</types>'
0043.15 +'
</GetItemsOfType>'
0043.16 +'
/soap12:Body>'
0043.17
+'<soap12:Envelope>';
Patrick Newell
_________________________________________________________________
This message w/attachments (message) may be privileged, confidential
or proprietary, and if you are not an intended recipient, please
notify the sender, do not use or share it and delete it. Unless
specifically indicated, this message is not an offer to sell or a
solicitation of any investment products or other financial product or
service, an official confirmation of any transaction, or an official
statement of Merrill Lynch. Subject to applicable law, Merrill Lynch
may monitor, review and retain e-communications (EC) traveling through
its networks/systems. The laws of the country of each sender/recipient
may impact the handling of EC, and EC may be archived, supervised and
produced in countries other than the country in which you are located.
This message cannot be guaranteed to be secure or error-free. This
message is subject to terms available at the following link:
[5]http://www.ml.com/e-communications_terms/. By messaging with
Merrill Lynch you consent to the foregoing.
_________________________________________________________________
References
1. http://www.w3.org/2001/XMLSchema-instance
2. http://www.w3.org/2001/XMLSchema
3. http://www.w3.org/2003/05/soap-envelope
4. http://rio.apps.ml.com/rio.asmx
5. http://www.ml.com/e-communications_terms/
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------