Login  Register

REST-style web service call not working

Posted by nolasco on Jan 31, 2013; 8:13pm
URL: https://forum.world.st/REST-style-web-service-call-not-working-tp4666902.html

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.