|
|
(3 intermediate revisions by 2 users not shown) |
Line 9: |
Line 9: |
| == NuSOAP Example == | | == NuSOAP Example == |
| | | |
− | This example continues from the [[Offerit_API#Example|main article NuSOAP Example]]): | + | This example continues from the [[Offerit_API#Example|main article NuSOAP Example]]: |
| | | |
| <pre> | | <pre> |
Line 29: |
Line 29: |
| ERROR: error message | | ERROR: error message |
| </pre> | | </pre> |
− |
| |
− | ==Server Request==
| |
− | <pre>
| |
− | <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
| |
− | xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| |
− | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
| |
− | xmlns:tns="urn:offeritapiadmin_wsdl"><SOAP-ENV:Body><tns:approve_transaction xmlns:tns="urn:offeritapiadmin_wsdl">
| |
− | <transid xsi:type="xsd:int">265</transid>
| |
− | <customerid xsi:type="xsd:int">130</customerid>
| |
− | </tns:approve_transaction></SOAP-ENV:Body></SOAP-ENV:Envelope>
| |
− |
| |
− | </pre>
| |
− |
| |
− | ==Server Response==
| |
− | You will get a response similar to the following:
| |
− |
| |
− | <pre>
| |
− | <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
| |
− | xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| |
− | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
| |
− | <SOAP-ENV:Body><ns1:approve_transactionResponse xmlns:ns1="urn:offeritapiadmin_wsdl">
| |
− | <return xsi:type="xsd:string">SUCCESS</return>
| |
− | </ns1:approve_transactionResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
| |
− | </pre>
| |
− |
| |
− | [[Category:Offerit API Articles]]
| |