having a problem posting some xml to an asp page using pub.client:http, it’s fine dropped in manually but not so when using this service. Any help appreciated.
cheers
Stallion
having a problem posting some xml to an asp page using pub.client:http, it’s fine dropped in manually but not so when using this service. Any help appreciated.
cheers
Stallion
What sort of problem? Any specifics you can provide will go far in the group being able to provide pertinent help. Can you post what parms you are setting in the pub.client:http call? What is the asp expecting? name/value pairs? xml in the body of the post with text/xml content type?
it is set to expect name/value pairs url = [url=“http://anipaddress/xml.asp?xml=blahblah”]http://anipaddress/xml.asp?xml=blahblah[/url] , method = post
I have set an argument [args] within data as xml and mapped over the data that i wish to send but with no success when posting, yet i know the url is fine as is ok when manually dropping data in.
thanks in advance if u can assist.
try $xmldata OR xmldata=“value”; that should work.
Thanks
VR
xmldata is being set as the value for the name ‘xml’ which will give an argument of ?xml=xmldata - where xmldata is the string being passed to the asp.
The page has been set by a third-party to accept name/value pairs, does the Integrator send this data as stream by default or bytes.
i have set string to equal the data i wish to send, and also tried it setting a name within data->args and setting it’s value - again with no success, could it be the asp page?
A few thoughts:
Are you using HTTP POST or HTTP GET? There is a URL path character limitation of 2,048 characters. When using GET, the variables are appended to the actual URL. You may be exceeding this limit. For your reference, when using POST, the variables are sent as part of the HTTP header and not the URL.
Have you been able to capture what is sent to the ASP page from your IS service? Does it look “normal”?
In the Data > Args section, did you create a String named “xmldata” and then map your XML string into it?
Does your ASP page require a proper Content-type setting? Did you set Content-type using pub.client:http?
Is your ASP page choking on the message or is it not being invoked at all?
A few responses:
Does your ASP page require a proper Content-type setting?
Did you set Content-type using pub.client:http?not specified, but have tried settings text/xml, text/plain and text/html
Is your ASP page choking on the message or is it not
being invoked at all? just not showing anything [choking could be right!!
basic asp we tested it with is as follows:
Asp collection page
ideas? thanks Dan
Stallion, you are going to have to format your HTML tags properly for them to show up on the Web site.
We disable all HTML tags to prevent malicious code from running. Go to [url=“wmusers.com”]wmusers.com for instructions.
It’s pretty simple – just take your original code, do a search-and-replace for your tags, and paste it back in.
Thanks.
whoops, thanks Dan
here’s the basics of the asap
<% indata = Request("xml") response.write "Data sent = " & indata %> |
Stallion - Your asp page is looking for a variable called “xml”, so in the args add a variable called xml and pass the data there. I just tested it that way and got it to work with no problems.
Hope this helps.
Theo
thanks Theo - this is what I passed out as a name\value pair and it worked fine with my own asp just had an issue with the page written by an internal client. We have now resolved this, but thank you for your pointers.
Hi
I’m a novice to WM and have been attempting to convert an inbound XML message by extracting fields from a XML message and re-map to arguments using pub.client:http. From TN I can run a service, but I am unsure on how to map XML fields to arguments within pub.client:http
Any help would be greatly appreciated.
What type of arguments you are trying to pass for http service.
Is it for authentication or some data.?