7
Views
1
Comments
[ WebServiceEngine (Convert SOAP to XML/JSON REST)] any tutorial / step-by-step guide on how to use this extension? 
Question
any pointers are appreciated? 
2018-03-08 20-43-12
Robert Chanphakeo

@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 https://<service>/WebServiceEngineDemo/Test.aspx

For testing purposes, you can send a http POST using apigee (https://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"

  }

}


 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.