Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 247559

Re: REST Calls Using JSON

$
0
0

Ok All, i am throwing in the towel on this one, nothing i am trying seems to work. Guess i need step by step instructions. Here's what i have done so far.

 

First of all the method of the REST host i am trying to use is: http://mortgageservicer.fics/MortgageServicerService.svc/REST/ToggleSetting

  1. I ran the "Add a REST Host" work flow with the URL of http://mortgageservicer.fics
  2. I then ran the "Add a REST Opration" selecting the REST host i created in step one, choosing the POST method and a default content type of application/json
  3. From this point forward nothing that i have tried is working, non of the examples you have been so kind to post is making sense to me.
  4. What should have my next steps been? maybe i am not formatting something correctly.
  5. The closest i have gotten it to work was to use the "Invoke a REST operation" work flow. When i use this one, it actually sends the request to the REST host but my input information isnt right and it fails.

In the "Invoke a REST operation" workflow i tried replacing this:

var request = restOperation.createRequest(inParamtersValues, content);


With this

var request = restOperation.createRequest({'ToggleMode':{Off}&'ToggleSetting':{RTA}&'Token':{0799752E825161041D6F3673F7EE768B56A8B1A81EDBEA080C29AB0DB86364B0C8A94C7254517A6A18415A38C35ABB06D580B9E207E71B3B677AD87F5869F1A0}});

 

And it of course failed

 

Any ideas?


Viewing all articles
Browse latest Browse all 247559

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>