- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
HTTP Request (XML)
I want to send a XML based HTTP Request via SOAP to a web server.
Can I do this in Jmp?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: HTTP Request (XML)
Haven't used SOAP but isn't it basically sending XML? Might have to tinker a bit with headers but this seemed to work
Names Default To Here(1);
request = New HTTP Request(
URL("https://www.dataaccess.com/webservicesserver/NumberConversion.wso"),
Method("POST"),
Headers({"Content-Type: text/xml; charset=utf-8"}),
Text(
"\[<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<NumberToWords xmlns="http://www.dataaccess.com/webservicesserver/">
<ubiNum>500</ubiNum>
</NumberToWords>
</soap:Body>
</soap:Envelope>]\"
)
);
data = request << Send;
Open(Char To Blob(data), "xml");
https://documenter.getpostman.com/view/8854915/Szf26WHn https://www.dataaccess.com/webservicesserver/NumberConversion.wso
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: HTTP Request (XML)
Haven't used SOAP but isn't it basically sending XML? Might have to tinker a bit with headers but this seemed to work
Names Default To Here(1);
request = New HTTP Request(
URL("https://www.dataaccess.com/webservicesserver/NumberConversion.wso"),
Method("POST"),
Headers({"Content-Type: text/xml; charset=utf-8"}),
Text(
"\[<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<NumberToWords xmlns="http://www.dataaccess.com/webservicesserver/">
<ubiNum>500</ubiNum>
</NumberToWords>
</soap:Body>
</soap:Envelope>]\"
)
);
data = request << Send;
Open(Char To Blob(data), "xml");
https://documenter.getpostman.com/view/8854915/Szf26WHn https://www.dataaccess.com/webservicesserver/NumberConversion.wso
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: HTTP Request (XML)
Thanks @jthi
wonderful
New HTTP Request( Text () ??
It is too often that I stop here ...
What to do instead:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: HTTP Request (XML)
or even:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: HTTP Request (XML)
Using XML didn't work for me when using that endpoint so I did use Text and then modified headers to get it working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: HTTP Request (XML)
Seems that they fixed it - On my System (v17.1) it also works with XML(...)
Is there some explanation about the differences between Text and XML?
It could make a difference for
is valid()
But I just checked it by destroying the XML syntax a bit and it was still "valid" for the xml(...) case ...
So, actually I don't know what is checked by IsValid()