SOAP returns an error (The remote name could not be resolved)

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&lt;/ReceiverKey&gt;
<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&lt;/ReceiverKey&gt;
<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 Namespacehttp://ws.easylink.com/Authenticate/2011/01
Header Namespacehttp://ws.easylink.com/RequestResponse/2011/01
__QueuedDocumentRetrieve__
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 Namespacehttp://ws.easylink.com/QueuedDocumentRetrieve/2013/01
Header Namespacehttp://ws.easylink.com/RequestResponse/2011/01
__QueuedDocumentRelease__
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 Namespacehttp://ws.easylink.com/QueuedDocumentRelease/2013/01
Header Namespacehttp://ws.easylink.com/RequestResponse/2011/01
I'm able to connect to the three WSDL's, but then it fails when I try to debug.

I’m also unclear how to do both the Authenticate and the QueuedDocumentRetrieve during the same call.

Is it possible that the Fax Server address you are trying to connect to is invalid or improperly written in the WSDL? The WSDL itself seems to check out properly, as it is validated through the SOAP plugin when you set the method and service to use.

This error usually occurs when the connection to the remote server cannot be done due to server security or invalid url.