Request | Equivalent SOAP Request | |
Consists of only one element (qualified namespaces) | { "name":"user1" } | <soapenv:Envelope xmlns:soapenv= "http://schemas.xmlsoap.org/soap/envelope/ " xmlns:axis="http://ws.apache.org/axis2"> <soapenv:Body> <axis:sayHello> <axis:name>user1/axis:name> </axis:sayHello> </soapenv:Body> </soapenv:Envelope> |
Consists of only one element (non-qualified namespaces) | { "name":"user1" } | <soapenv:Envelope xmlns:soapenv= "http://schemas.xmlsoap.org/soap/envelope/ " xmlns:axis="http://ws.apache.org/axis2"> <soapenv:Body> <axis:sayHello> <name>user1</name> </axis:sayHello> </soapenv:Body> </soapenv:Envelope> |
Consists of multiple elements | { "a":"1", "b" : 2 } | <soapenv:Envelope xmlns:soapenv= "http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <addInts> <a>1</a><b>2</b> </addInts> </soapenv:Body> </soapenv:Envelope> |
Request | Equivalent SOAP Request | |
Consists of only one element and namespace added by the client | <axis:name xmlns:axis="http:// ws.apache.org/axis2"> user1</axis:name> | <soapenv:Envelope xmlns:soapenv= "http://schemas.xmlsoap.org/soap/envelope/ " xmlns:axis="http://ws.apache.org/axis2"> <soapenv:Body> <axis:sayHello> <axis:name>user1</axis:name> </axis:sayHello> </soapenv:Body> </soapenv:Envelope> |
Consists of only one element and client does not send the Namespace | <someOtherNamespace:name xmlns:toMed="http:// someOtherNamespace">user1</ someOtherNamespace:name> | <soapenv:Envelope xmlns:soapenv= "http://schemas.xmlsoap.org/soap/envelope/ " xmlns:axis="http://ws.apache.org/axis2"> <soapenv:Body> <axis:sayHello> <axis:name>user1</axis:name> </axis:sayHello> </soapenv:Body> </soapenv:Envelope> |
Consists of only one element and the client sends a different namespace to API Gateway | <toMed:name xmlns:toMed="http://tOMed"> user1</toMed:name> | <soapenv:Envelope xmlns:soapenv= "http://schemas.xmlsoap.org/soap/envelope/" xmlns:axis="http://ws.apache.org/axis2"> <soapenv:Body> <axis:sayHello> <axis:name>user1</axis:name> </axis:sayHello> </soapenv:Body> </soapenv:Envelope> |
Multiple XML elements | <addInts> <a>2</a> <b>3</b> </addInts> | <soapenv:Envelope xmlns:soapenv= "http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <addInts> <a>2</a><b>3</b> </addInts> </soapenv:Body> </soapenv:Envelope> |
Request | Equivalent SOAP Request | |
Simple query or path parameter | /ws/CalcService/add/ {num1} or /ws/CalcService/ add?num1=10 | <ws:addInts xmlns:ws="http:test"> <num1>10</num1></ws:addInts>s |
Multiple query or path parameters | /ws/CalcService/add/ {num1}/{num2} or /ws/CalcService/ add?num1=10&num2=3 or /ws/CalcService/ add/{num1}&num2=3 | <ws:addInts xmlns:ws="http:test"> <num1></num1> <num2></num2></ws:addInts> |
Hierarchical elements | /ws/CalcService/add/ {num1}/anotherNumber/{num2} | <ws:addInts xmlns:ws="http:test"> <num1></num1> <num2></ num2></ws:addInts> |