SOAP to JSON

What is SOAP to JSON?

SOAP to JSON is HTTP Proxy that converts JSON input to XML SOAP request and XML SOAP response to JSON output. Since JSON is lightweight compared to SOAP, it is ideal for mobile usage. XML Web Services are complex and requires 2x bandwidth and 2x cpu time to process.

Useful only if

  1. You have an XML SOAP Web Service (referred as target web service) hosted on any public web server.
  2. You need to invoke your target web service with plain JSON format. For example, on browsers, on mobiles, creating XML SOAP request requires lot of coding.
  3. You have good knowledge of REST API and you can easily invoke JSON based REST API in your target clients.

Supported Operations

We support following operations and they are priced accordingly.

Generate Proxy

Generate Proxy request will query your target Web Service’s WSDL URL and will generate JSON proxy, that you can use metadata to browse your target Web Service. Since calling complex objects will require more code, we recommend generating some code templates based on the metadata response. If you invoke web method without generating proxy, first time proxy will be generated internally and you will be charged for it. Once generated, Proxy is cached by our server to make further calls. If your target web service has changed, you must invoke Generate Proxy operation to refresh JSON proxy.

Invoke

After metadata is generated, you can now invoke methods available on your web service. You have to specify name of the method you want to invoke and the parameters to pass to. You must specify either “request” or “parameters”, but not both. If your WSDL Url starts with “https”, then call will be made through SSL and you will be charged extra.

Parameters

To invoke method, you can pass array of values, order of values must match exactly to that of parameter types specified in Metadata proxies.

Request Property

To invoke method, you can pass parameters as named JSON anonymous object with name of parameter match exactly same as those are specified in Metadata proxies.

How to get started?

  1. First find WSDL URL for your web service, it usually has wsdl at the end of the url. For example, “http://www.w3schools.com/webservices/tempconvert.asmx?WSDL“.
  2. Use your Mashape console to call Generate Proxy endpoint, this will generate list of available methods and other related schema.
  3. You can then use Unirest or any other REST API Client on your target platforms to call either “Invoke” or “Invoke-Secure” methods. Response will be “null” for methods that has no return value (void), or it will contain JSON format of the result obtained from the web method call.

SOAP to JSON

SOAP to JSON is HTTP Proxy that converts JSON input to XML SOAP request and XML SOAP response to JSON output. Since JSON is lightweight compared to SOAP, it is ideal for mobile usage. XML Web Services are complex and requires 2x bandwidth and 2x cpu time to process.

Ultra
$100.00
per month
Premium
$50.00
per month
Basic
$10.00
per month
Freemium
$0
additional fees may apply

Proxy Creation
20 / mo.
$1.0000 per extra

Proxy Creation
10 / mo.
$1.2500 per extra

Proxy Creation
5 / mo.
$1.5000 per extra

Proxy Creation
1 / mo.
$2.0000 per extra

Invoke
1,000,000 / mo.
$0.0010 per Extra

Invoke
100,000 / mo.
$0.0010 per extra

Invoke
10,000 / mo.
$0.0010 per extra

Invoke
100 / mo.
$0.0010 per extra

Invoke Secure
500,000 / mo.
$0.0100 per extra

Invoke Secure
50,000 / mo.
$0.0100 per extra

Invoke Secure
5,000 / mo.
$0.0100 per extra

Invoke Secure
50 / mo.
$0.0100 per extra

Mega Bytes
1,000 / mo.
$0.1000 per extra

Mega Bytes
100 / mo.
$0.1000 per extra

Mega Bytes
10 / mo.
$0.1000 per extra

Mega Bytes
1 / mo.
$0.1000 per extra

Comments are closed.