[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help
Please copy the program to a text file attach it, more people will
spend time for ya.
Thanks,
Musthafa
On Wed, Feb 3, 2010 at 3:40 AM, <[1]alberto.reali@xxxxxxxxxxxxx>
wrote:
Hi,
I'm trying tu use a simple SOAP to inzitialize me to Scott's HTTP
tool.
This is my invoke SOAP
SOAP =
'<?xml version="1.0" encoding="utf-8"?>'
+'<soap:Envelope
xmlns:xsi="[1][2]http://www.w3.org/2001/XMLSchema-instance"'
+'
xmlns:xsd="[2][3]http://www.w3.org/2001/XMLSchema"'
+'
xmlns:soap="[3][4]http://schemas.xmlsoap.org/soap/envelope/">'
+'<soap:Body>'
+'<GetRating xmlns="[4][5]http://tempuri.org/"
/>'
+'</soap:Body>'
+'</soap:Envelope>';
The simple webservice result is the string "AAA" but I can't read
it.
My http_url_post_xml call did not response with error (rc = 1)
but I
didn't read string "AAA".
This is my simple code, can you help me?
D Incoming PR
D String 32767A varying
D depth 10I 0 value
D name 1024A varying const
D path 24576A varying const
D value 65535A varying const
D attrs * dim(32767)
D const options(*varsize)
D SOAP s 2000A varying
D rc s 10I 0
D String s 1000A varying
D Lang s 32A
D LangMode s 41A varying
/free
SOAP
=
'<?xml version="1.0"
encoding="utf-8"?>'
+'<soap:Envelope
xmlns:xsi="[5][6]http://www.w3.org/2001/XMLSchema-instance"'
+'
xmlns:xsd="[6][7]http://www.w3.org/2001/XMLSchema"'
+'
xmlns:soap="[7][8]http://schemas.xmlsoap.org/soap/envelope/">'
+'<soap:Body>'
+'<GetRating xmlns="[8][9]http://tempuri.org/" />'
+'</soap:Body>'
+'</soap:Envelope>';
HTTP_setCCSIDs(1208: 0); // CCSID 1208 =
UTF-8
rc =
http_url_post_xml(
'[10]http://10.178.49.9/wsfers/wsrating.asmx'
: %addr(SOAP) +
2
:
%len(SOAP)
:
*NULL
:
%paddr(Incoming)
:
%addr(String)
:
HTTP_TIMEOUT
: HTTP_USERAGENT
:
'text/xml;'
: '[11]http://tempuri.org/GetRating');
if (rc <> 1);
http_crash();
else;
http_comp(String);
endif;
*inlr = *on;
/end-free
P Incoming B
D Incoming PI
D String 32767A varying
D depth 10I 0 value
D name 1024A varying const
D path 24576A varying const
D value 65535A varying const
D attrs * dim(32767)
D const options(*varsize)
/free
if (name = 'TranslateResult');
String = value;
endif;
/end-free
P E
THANKS FOR ALL THE HELPER
Alberto
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have
received it in error, please notify the sender immediately and
delete
the original. Any other use of the email by you is prohibited.
References
1. [12]http://www.w3.org/2001/XMLSchema-instance
2. [13]http://www.w3.org/2001/XMLSchema
3. [14]http://schemas.xmlsoap.org/soap/envelope/
4. [15]http://tempuri.org/
5. [16]http://www.w3.org/2001/XMLSchema-instance
6. [17]http://www.w3.org/2001/XMLSchema
7. [18]http://schemas.xmlsoap.org/soap/envelope/
8. [19]http://tempuri.org/
-------------------------------------------------------------------
----
This is the FTPAPI mailing list. To unsubscribe, please go to:
[20]http://www.scottklement.com/mailman/listinfo/ftpapi
-------------------------------------------------------------------
----
--
Thanks,
Musthafa
References
1. mailto:alberto.reali@xxxxxxxxxxxxx
2. http://www.w3.org/2001/XMLSchema-instance
3. http://www.w3.org/2001/XMLSchema
4. http://schemas.xmlsoap.org/soap/envelope/
5. http://tempuri.org/
6. http://www.w3.org/2001/XMLSchema-instance
7. http://www.w3.org/2001/XMLSchema
8. http://schemas.xmlsoap.org/soap/envelope/
9. http://tempuri.org/
10. http://10.178.49.9/wsfers/wsrating.asmx
11. http://tempuri.org/GetRating%27
12. http://www.w3.org/2001/XMLSchema-instance
13. http://www.w3.org/2001/XMLSchema
14. http://schemas.xmlsoap.org/soap/envelope/
15. http://tempuri.org/
16. http://www.w3.org/2001/XMLSchema-instance
17. http://www.w3.org/2001/XMLSchema
18. http://schemas.xmlsoap.org/soap/envelope/
19. http://tempuri.org/
20. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------