server-webapi-code-09-simplerGetTime.php / php
<?php function generateBody(attributes) { <soapenv:Body>\n"; body .= "<{attributes AS value) { <ns1:key xmlns:ns1=\"urn:ebay:apis:eBLBaseComponents\"> </ns1:key>\n"; } callName}Request>\n"; </soapenv:Body>"; return body; } function generateRequest(version, devID, cert, request = <<< XMLBLOCK <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <RequesterCredentials soapenv:mustUnderstand="0" xmlns="urn:ebay:apis:eBLBaseComponents"> <eBayAuthToken></eBayAuthToken> <ns:Credentials xmlns:ns="urn:ebay:apis:eBLBaseComponents"> <ns:DevId>devID</ns:DevId> <ns:AppId></ns:AppId> <ns:AuthCert>cert</ns:AuthCert> </ns:Credentials> </RequesterCredentials> </soapenv:Header> </soapenv:Envelope> XMLBLOCK; return request; } function newGetTime() { queryInfo = array(); myRequest = generateBody(queryInfo); myRequest); call, xml->GeteBayOfficialTimeResponse->Timestamp . "\n"; } ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.