GET Response from saved request
Returns the live response from the SOAP Web service using the saved request.
Resource url:
- https://api.wsdlotphp.com/rest/request/v1/send/[API_TOKEN]/[REQUEST_ID][/FULL][RESPONSE_FORMAT]
Parameters:
- API_TOKEN: see General informations > REST Api token
- REQUEST_ID: see General informations > Saved request id
- FULL: allows to indicate if the response must contain the saved request details or not
- RESPONSE_FORMAT: see General informations > Response formats
Example request:
- http://api.wsdltophp.com/rest/request/v1/send/53d5dbf25871fddb417ca10105ee06ba2022f2a2/846.xml: the response does not contain the saved request details
- http://api.wsdltophp.com/rest/request/v1/send/53d5dbf25871fddb417ca10105ee06ba2022f2a2/846/1.xml: the response does contain the saved request details
Example response (full response):
<xml formated="false">
<error_code>0</error_code>
<error />
<error_reason />
<output_format>xml</output_format>
<data>
<soapcall>
<id>846</id>
<title>Request sent on 13 February 2014 at 22h58m46s</title>
<description> Call of PayPalServiceGet::GetBalance, nouvelle version PSR-2 de WsdlToPhp</description>
<created>1392328700</created>
<packagename>PayPal</packagename>
<servicename>PayPalServiceGet</servicename>
<methodname>GetBalance</methodname>
</soapcall>
<requests>
<soapoptions>
<wsdl_url>https://www.paypalobjects.com/wsdl/PayPalSvc.wsdl</wsdl_url>
<location>https://api-3t.paypal.com/2.0/</location>
</soapoptions>
<soapheaders>
<namespace>
<array_element index="1">urn:ebay:api:PayPalAPI</array_element>
</namespace>
<name>
<array_element index="1">RequesterCredentials</array_element>
</name>
<mustunderstand>
<array_element index="1">0</array_element>
</mustunderstand>
<actor>
<array_element index="1" />
</actor>
<data_type>
<array_element index="1">PayPalStructCustomSecurityHeaderType</array_element>
</data_type>
<data>
<array_element index="1">
<array_element index="1" />
<array_element index="2" />
<array_element index="3">
<array_element index="1" />
<array_element index="2" />
<array_element index="3" />
<array_element index="4">************************</array_element>
<array_element index="5">************************</array_element>
<array_element index="6">************************************************</array_element>
<array_element index="7" />
<array_element index="8" />
</array_element>
</array_element>
</data>
</soapheaders>
<httpheaders>
<name>
<array_element index="0" />
</name>
<value>
<array_element index="0" />
</value>
</httpheaders>
<parameters>
<array_element index="1">
<array_element index="1">
<array_element index="1">1</array_element>
<array_element index="2">VALUE_RETURNALL</array_element>
<array_element index="3" />
<array_element index="4">109</array_element>
<array_element index="5" />
</array_element>
</array_element>
</parameters>
</requests>
<responses>
<xmlrequest>
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:ebay:apis:eBLBaseComponents" xmlns:ns2="urn:ebay:api:PayPalAPI">
<SOAP-ENV:Header>
<ns2:RequesterCredentials>
<ns1:Credentials>
<ns1:Username>************************</ns1:Username>
<ns1:Password>************************</ns1:Password>
<ns1:Signature>************************************************</ns1:Signature>
</ns1:Credentials>
</ns2:RequesterCredentials>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns2:GetBalanceReq>
<ns2:GetBalanceRequest>
<ns1:DetailLevel>ReturnAll</ns1:DetailLevel>
<ns1:Version>109</ns1:Version>
<ns2:ReturnAllCurrencies>1</ns2:ReturnAllCurrencies>
</ns2:GetBalanceRequest>
</ns2:GetBalanceReq>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</xmlrequest>
<xmlresponse>
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:ed="urn:ebay:apis:EnhancedDataTypes" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:ns="urn:ebay:api:PayPalAPI">
<SOAP-ENV:Header>
<Security xmlns="http://schemas.xmlsoap.org/ws/2002/12/secext" xsi:type="wsse:SecurityType" />
<RequesterCredentials xmlns="urn:ebay:api:PayPalAPI" xsi:type="ebl:CustomSecurityHeaderType">
<Credentials xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:UserIdPasswordType">
<Username xsi:type="xs:string" />
<Password xsi:type="xs:string" />
<Signature xsi:type="xs:string" />
<Subject xsi:type="xs:string" />
</Credentials>
</RequesterCredentials>
</SOAP-ENV:Header>
<SOAP-ENV:Body id="_0">
<GetBalanceResponse xmlns="urn:ebay:api:PayPalAPI">
<Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2014-04-30T21:51:26Z</Timestamp>
<Ack xmlns="urn:ebay:apis:eBLBaseComponents">Success</Ack>
<CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">5788f1bca66bc</CorrelationID>
<Version xmlns="urn:ebay:apis:eBLBaseComponents">109</Version>
<Build xmlns="urn:ebay:apis:eBLBaseComponents">10277387</Build>
<Balance xsi:type="cc:BasicAmountType" currencyID="EUR">996.79</Balance>
<BalanceTimeStamp xsi:type="xs:dateTime">2014-04-30T21:51:26Z</BalanceTimeStamp>
<BalanceHoldings xsi:type="cc:BasicAmountType" currencyID="EUR">996.79</BalanceHoldings>
</GetBalanceResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</xmlresponse>
<httpheaderrequest>
<Host>api-3t.paypal.com</Host>
<Connection>Keep-Alive</Connection>
<User-Agent>PHP-SOAP/5.3.5</User-Agent>
<Content-Type>text/xml; charset=utf-8</Content-Type>
<SOAPAction>""</SOAPAction>
<Content-Length>770</Content-Length>
</httpheaderrequest>
<httpheaderresponse>
<Date>Wed, 30 Apr 2014 21:51:26 GMT</Date>
<Server>Apache</Server>
<Content-Length>1940</Content-Length>
<Connection>close</Connection>
<Content-Type>text/xml; charset=utf-8</Content-Type>
</httpheaderresponse>
<phprequest>
<array_element index="0" type="PayPalStructGetBalanceReq">
<GetBalanceRequest type="PayPalStructGetBalanceRequestType">
<ReturnAllCurrencies>1</ReturnAllCurrencies>
<DetailLevel>ReturnAll</DetailLevel>
<ErrorLanguage />
<Version>109</Version>
<any />
</GetBalanceRequest>
</array_element>
</phprequest>
<phpresponse type="PayPalStructGetBalanceResponseType">
<Balance type="PayPalStructBasicAmountType">
<currencyID>EUR</currencyID>
<_>996.79</_>
</Balance>
<BalanceTimeStamp>2014-04-30T21:51:26Z</BalanceTimeStamp>
<BalanceHoldings>
<array_element index="0" type="PayPalStructBasicAmountType">
<currencyID>EUR</currencyID>
<_>996.79</_>
</array_element>
</BalanceHoldings>
<Timestamp>2014-04-30T21:51:26Z</Timestamp>
<Ack>Success</Ack>
<CorrelationID>5788f1bca66bc</CorrelationID>
<Errors />
<Version>109</Version>
<Build>10277387</Build>
<any />
</phpresponse>
<soapfault />
</responses>
</data>
</xml>