Advertisement
Advertisement
| 05.16.2008 at 06:38PM PDT, ID: 23410099 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: |
$MyXmlDocument = new SimpleXMLElement("<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'><soap:Header><ResponseHeader xmlns='https://secure.paymex.co.nz/payment/'><IsError>false</IsError><Message>Payment Success</Message><HasReturnObject>true</HasReturnObject><ReturnObjectDescription>Customer id</ReturnObjectDescription><ReturnObject xmlns:q1='http://microsoft.com/wsdl/types/' xsi:type='q1:guid'>8b020dc7-7e3d-46d7-9f95-9f11d06dc475</ReturnObject></ResponseHeader></soap:Header><soap:Body><RegisterSubscriptionResponse xmlns='https://secure.paymex.co.nz/payment/'><RegisterSubscriptionResult>0</RegisterSubscriptionResult></RegisterSubscriptionResponse></soap:Body></soap:Envelope>");
$MyXmlDocument->registerXPathNamespace("soap", "http://schemas.xmlsoap.org/soap/envelope/");
$MyXmlDocument->registerXPathNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
$MyXmlDocument->registerXPathNamespace("xsd", "http://www.w3.org/2001/XMLSchema");
$MyXmlDocument->registerXPathNamespace("q1", "http://microsoft.com/wsdl/types/");
$MyXpath = "//ReturnObject";
$results = $MyXmlDocument->xpath($MyXpath);
|