[ WebServiceEngine (Convert SOAP to XML/JSON REST)] any tutorial / step-by-step guide on how to use this extension? 

[ WebServiceEngine (Convert SOAP to XML/JSON REST)] any tutorial / step-by-step guide on how to use this extension? 

  
Forge Component
(15)
Published on 2014-06-07 by Robert Chanphakeo
15 votes
Published on 2014-06-07 by Robert Chanphakeo
any pointers are appreciated? 

@Aditya

An example has been included with the WebService solution, see eSpace "WebServiceEngineDemo".

Inside this eSpace there is a "Test" service method; in order to consume this service, your application will need to send a request content via http POST to http://<service>/WebServiceEngineDemo/Test.aspx

For testing purposes, you can send a http POST using apigee (http://apigee.com/)


Example Request

Request in XML format

<?xml version="1.0" encoding="UTF-8" ?>

<TestRequest>

<Value1>X</Value1>

<Value2>Y</Value2>

</TestRequest>

 

OR Request in JSON format

 

{

  "TestRequest": {

    "Value1": "X",

    "Value2": "Y"

  }

}
 

Example Response

This service will provide  with response as follow.....
 

If you sent a http POST request in XML format it would response with....

<?xml version="1.0" encoding="UTF-8" ?>

<TestResponse>

<Success>True</Success>

<Message>OK</Message>

</TestResponse>

 

If you sent a http POST request in JSON format it would response with....

{

  "TestResponse": {

    "Success": "True",

    "Message": "OK"

  }

}