REST-style web service call not working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

REST-style web service call not working

nolasco
I am trying to perform a REST-style web service call using the following code fragment (with server URL and credentials removed of course):

[SstHttp11ClientExample
    fetch: 'http://myserver/someapi.dll/rds/auth/logon?xmlData=<credentials>
<credentialElements>
<name>CAMUsername</name>
<label>User ID:</label>
<value>
<actualValue>someuserid</actualValue>
</value>
</credentialElements>
<credentialElements>
<name>CAMPassword</name>
<label>Password:</label>
<value>
<actualValue>somepassword</actualValue>
</value>
</credentialElements>
</credentials>'
] fork

But, all I am getting is a "Bad Request" reply. The same URL returns the expected XML result via IE and Firefox, though.

Am I incorrectly using the VAST HTTP sample?


--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: REST-style web service call not working

nolasco
I finally figured out what the problem was ...

"Special" characters in the URL string such as ">", "/", "<", and spaces need to be converted to their "%XX" equivalent.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.