Hi Chuck, long time no chat ;-)
I would try the following:
<@ASSIGN Local$method_response VALUE="<@URL LOCATION='<@ARG vURL>'
USERAGENT=' Client<@CRLF>Content-Length:
@@request$ContentLength<@CRLF>Content-Type: text/xml;
charset=UTF-8<@CRLF>SOAPAction: ""'
DETAILEDRESPONSE="true"
POSTARGS='<?xml version="1.1" encoding="UTF-8"?><@CRLF><@VAR
request$request_payLoad ENCODING=NONE TYPE=TEXT>'>">
You should not try and set the POST, HTTP and HOST information, that is
already set for you when you give a URL to the LOCATION attribute.
Use of the FROM attribute is not required in this case.
You need a carriage-return between your <?xml?> declaration and your XML.
And if your request$request_payLoad variable is a @DOM variable, then I
would recommend adding the TYPE=TEXT attribute.
And does your request$ContentLength variable also include the length of your
<?xml?> declaration and the carriage-return?
And...although it's simple enough to specify UTF-8, as you have done
correctly, I don't think Witango actually supports it for some versions, so
don't be surprised if the receiving system rejects your incoming request and
payload because it can't understand it.
Best of luck.
By the way, your website looks very nice. Great job.
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Scott Cadillac,
Xmlx Software
[EMAIL PROTECTED]
(403) 254-5002
http://www.xmlx.net/
XML-Extranet
P.O. Box 69006
RPO Bridlewood SW
Calgary, Alberta
Canada T2Y 4T9
~~~~~~~~~~~~~~~~~~~~~~~~~~~
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, October 16, 2006 5:34 AM
To: WiTango-Talk
Subject: Witango-Talk: http header troubles too
Hi all,
Could I get a comment on my attempt at getting this header correct.
Here is what they want:
POST /ota/Canned.pl HTTP/1.0
Content-Length: 1041
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Host: 127.0.0.1
user-agent: Client
Here is how I'm trying to do it:
<@ASSIGN Local$method_response VALUE="<@URL LOCATION='<@ARG vURL>'
USERAGENT=' Client<@CRLF>POST /ota/Canned.pl
HTTP/1.0<@CRLF>Content-Length: @@request$ContentLength<@CRLF>Content-Type:
text/xml; charset=UTF-8<@CRLF>SOAPAction: ""<@CRLF>Host: 127.0.0.1'
FROM='[EMAIL PROTECTED]'
DETAILEDRESPONSE="true"
POSTARGS='<?xml version="1.1" encoding="UTF-8"?><@VAR
request$request_payLoad ENCODING=NONE>'>">
Thoughts? (and no, I don't have a sniffer on the test server, L )
Thanks, you know I appreciate it, Scott J
Chuck Lockwood
President
............................................
309 Main Avenue
Hawley, Pa 18428
(P) 570.226.7340
(F) 570.226.7341
www.lockdata.com <http://www.lockdata.com/>
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf