Wednesday, April 3, 2013

REST Services in Webmethod

From the designer directly we can create the rest services.
In the designer we can right click on the flow service and create the REST service .

in the REST service you have to write the fallowing code.

1. convert the xml node to document
2. Remove the any prefixs from the xml file .
3.call your service and map the input doc .
4. Convert the Document to XML String  (Doc is your service input)
5. replace the prefixs
6. call the pub.flow.setResponce service to set the response to your service .




1 comment:

  1. Hi, Can u pls help about how we can test the rest web service from a browser ?and also, how to include authetication check for it ? For ex: how can i create and provide a URL to the client where, the userid/pwd will also be entered and authentictaed when req is received in webmethods.

    ReplyDelete