I need to connect to a Fax Server website via SOAP to retrieve inbound faxes. Their API has two calls one to retrieve faxes and one to release them after they have been retrieved.
<?xml version=“1.0” encoding=“UTF-8”?>
<tns:Envelope xmlns:tns=“http://schemas.xmlsoap.org/soap/envelope/”>
<tns:Header>
<Request xmlns=“http://ws.easylink.com/RequestResponse/2011/01” tns:mustUnderstand=“0”>
<ReceiverKey>https://messaging.easylink.com/soap/sync</ReceiverKey>
<Authentication>
<XDDSAuth>
<RequesterID aliasType=“M2F”>your_email_address@domain_name.com</RequesterID>
<Password>your_password</Password>
</XDDSAuth>
</Authentication>
</Request>
</tns:Header>
<tns:Body>
<QueuedDocumentRetrieveRequest xmlns="http://ws.easylink.com/QueuedDocumentRetrieve/2013/01"/>
</tns:Body>
</tns:Envelope>
<?xml version=“1.0” encoding=“UTF-8”?>
<tns:Envelope xmlns:tns=“http://schemas.xmlsoap.org/soap/envelope/”>
<tns:Header>
<Request xmlns=“http://ws.easylink.com/RequestResponse/2011/01” tns:mustUnderstand=“0”>
<ReceiverKey>http://xoa.xpedite.com/soap/sync</ReceiverKey>
<Authentication>
<XDDSAuth>
<RequesterID aliasType=“M2F”>your_email_address</RequesterID>
<Password>your_password</Password>
</XDDSAuth>
</Authentication>
</Request>
</tns:Header>
<tns:Body>
<!-- The parameters below are all included in the QueuedDocumentRetrieve –>
<!-- result. You would want to simply return these values exactly as –>
<!-- they are found in that result –>
<QueuedDocumentReleaseRequest xmlns=“http://ws.easylink.com/QueuedDocumentRelease/2013/01”>
<QueueId>
<XDN>xsi</XDN>
<QueueName>qdoc-pull</QueueName>
<ItemID>146197</ItemID>
</QueueId>
<JobId>
<XDN>xsi</XDN>
<MRN>1701675152</MRN>
</JobId>
</QueuedDocumentReleaseRequest>
</tns:Body>
</tns:Envelope>
Their WSDL was broken down into individual WSDL’s and the Authenticate needs to be in each request.
Authenticate
WSDL | [http://ws.easylink.com/Authenticate/2011/01?WSDL](http://ws.easylink.com/Authenticate/2011/01?WSDL) |
Schema | [http://ws.easylink.com/Authenticate/2011/01](http://ws.easylink.com/Authenticate/2011/01) |
Body Namespace | http://ws.easylink.com/Authenticate/2011/01 |
Header Namespace | http://ws.easylink.com/RequestResponse/2011/01 |
WSDL | [http://ws.easylink.com/QueuedDocumentRetrieve/2013/01?WSDL](http://ws.easylink.com/QueuedDocumentRetrieve/2013/01?WSDL) |
Schema | [http://ws.easylink.com/QueuedDocumentRetrieve/2013/01](http://ws.easylink.com/QueuedDocumentRetrieve/2013/01) |
Body Namespace | http://ws.easylink.com/QueuedDocumentRetrieve/2013/01 |
Header Namespace | http://ws.easylink.com/RequestResponse/2011/01 |
WSDL | [http://ws.easylink.com/QueuedDocumentRelease/2013/01?WSDL](http://ws.easylink.com/QueuedDocumentRelease/2013/01?WSDL) |
Schema | [http://ws.easylink.com/QueuedDocumentRelease/2013/01](http://ws.easylink.com/QueuedDocumentRelease/2013/01) |
Body Namespace | http://ws.easylink.com/QueuedDocumentRelease/2013/01 |
Header Namespace | http://ws.easylink.com/RequestResponse/2011/01 |
I’m also unclear how to do both the Authenticate and the QueuedDocumentRetrieve during the same call.