southbeach
Programmer
given
in stdClass as $source, how do I point to <NameSigned> and get its content?
As per the API documentation:
I connect, I fetch and get the stdClass object but I've tried every combination
$response->Signers->Signer->NameSigned
$response->GetFileSignersResult->Signers->Signer->NameSigned
and keep getting undefined property error messages.
Your help is true appreciated!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
Code:
<Signers>
<Signer>
<DocumentID>SPCJxPNnNeQ=</DocumentID>
<Status>Signed</Status>
<Email>signer1@sertifi.com</Email>
<NameSigned>John Doe</NameSigned>
<IpAddress>192.168.150.100</IpAddress>
<SignMethod>Electronic</SignMethod>
<DateSigned>2/12/2007 3:11:16PM</DateSigned>
</Signer>
<Signer>
<DocumentID>Ejbgjqq9Kk0=</DocumentID>
<Status>Unsigned</Status>
<Email>signer2@sertifi.com</Email>
<NameSigned />
<IpAddress />
<SignMethod>Electronic</SignMethod>
<DateSigned>1/1/0001 12:00:00AM</DateSigned>
</Signer>
</Signers>
As per the API documentation:
Code:
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /AppBase/services/gateway.asmx HTTP/1.1
Host: apps.domain.net
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance"[/URL] xmlns:xsd="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema"[/URL] xmlns:soap12="[URL unfurl="true"]http://www.w3.org/2003/05/soap-envelope">[/URL]
<soap12:Body>
<GetFileSigners xmlns="[URL unfurl="true"]http://apps.domain.net/services/">[/URL]
<pstr_APICode>string</pstr_APICode>
<pstr_FileID>string</pstr_FileID>
</GetFileSigners>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance"[/URL] xmlns:xsd="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema"[/URL] xmlns:soap12="[URL unfurl="true"]http://www.w3.org/2003/05/soap-envelope">[/URL]
<soap12:Body>
<GetFileSignersResponse xmlns="[URL unfurl="true"]http://apps.domain.net/services/">[/URL]
<GetFileSignersResult>string</GetFileSignersResult>
</GetFileSignersResponse>
</soap12:Body>
</soap12:Envelope>
I connect, I fetch and get the stdClass object but I've tried every combination
$response->Signers->Signer->NameSigned
$response->GetFileSignersResult->Signers->Signer->NameSigned
and keep getting undefined property error messages.
Your help is true appreciated!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.