Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP API not able to connect to SAAS

PremRajani
Collaborator II

Hi,

If using REST API, able to connect to SAAS API. But when I use SOAP API it doesn't connect. The reason I'm using SOAP API is availability of searchrecordsbyreport and bulk update. Do we have the same features in REST API, then can someone please share the latest documentation.

Thanks,

Prem

1 ACCEPTED SOLUTION

Accepted Solutions

Sorry Perm, that doesn't help at all...

When you make a call to general.asmx, what is the SOAP body you are sending it?

It should look something like this:

 

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <CreateUserSessionFromInstance xmlns="http://archer-tech.com/webservices/">
               <userName>string</userName>
               <instanceName>string</instanceName>
               <password>string</password>
          </CreateUserSessionFromInstance>
     </soap:Body>
</soap:Envelope>

 

 Advisory Consultant

View solution in original post

12 REPLIES 12

DavidPetty
Archer Employee
Archer Employee
What response are you getting back when you make a SOAP call?

 Advisory Consultant

Anonymous
Not applicable

Also, which URL you are using to send SOAP request?

 

Request failed with an empty response

PremRajani
Collaborator II

Hi David/Ilya,

The funny part is after multiple attempts it connects. If it helps below is screenshot of error message.

API Error.jpg

Thanks,

Prem

@PremRajani, what is the full SOAP response that's returned?

 Advisory Consultant

Hi David,

I shared the trace with David Freeman as he is helping us with SAAS move and it contained sensitive information so couldn't share it here. But he asked me to try getting more details using Fiddler. So will check using Fiddler and let you know.

Thanks,

Prem

Hi David,

Fiddler also didn't give in more information and so I installed API Toolbox to see if it connects over there. Below is the message I got for getting information on ws/general.asmx

 

{
"readyState": 4,
"responseText": "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang=\"en\">Server was unable to process request. ---&gt; Root element is missing.</soap:Text></soap:Reason><soap:Detail /></soap:Fault></soap:Body></soap:Envelope>",
"responseXML": {
"location": null
},
"status": 500,
"statusText": "Internal Server Error"
}

soap:Receiver


@PremRajani wrote:

{
"readyState": 4,
"responseText": "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang=\"en\">Server was unable to process request. ---&gt; Root element is missing.</soap:Text></soap:Reason><soap:Detail /></soap:Fault></soap:Body></soap:Envelope>",
"responseXML": {
"location": null
},
"status": 500,
"statusText": "Internal Server Error"
}

soap:Receiver


Thanks and the reason for the issue is right in the response, highlighted above.  The SOAP you're sending to Archer isn't correct.  Can you post the complete SOAP you're sending to Archer?

 Advisory Consultant