- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2016 09:20 AM
Hi All,
I am facing an issue when I try to set the endpoint dynamically and override it. If i try to remove the endpoint from the below code and run, it takes the endpoint from the soap message and it runs smooth.
=====================================================================================
var s = new sn_ws.SOAPMessageV2('Dell Dispatch', 'CreateDispatch');
s.setEndpoint("https://sandbox.api.dell.com/support/dispatch/v2/service?wsdl");
s.setStringParameterNoEscape('Dispatch.RequestCompleteCare', 'false');
s.setStringParameterNoEscape('ShipToAddress.CountryISOCode', '250');
s.setStringParameterNoEscape('ShipToAddress.City', 'Savannah');
var response = s.execute();
var status = response.getStatusCode();
======================================================================================
When I execute the above code, I get the below response:
------------------------------------------------------------------------------------------------
Resource does not exist: /scs/snc_node_disable.html
<?xml version='1.0' ?>
<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Body>
<env:Fault>
<faultcode>env:Client</faultcode>
<faultstring>Internal Error</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
-------------------------------------------------------------------------------------------------
Surely something is wrong at my end but am unable to find it. Please help
Kind regards,
Sourabh D
Solved! Go to Solution.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2016 10:19 AM
Hi Sourabh,
SOAP Web Service - ServiceNow Wiki
..
For instance, a generated SOAP Endpoint may look like this:
https://instance.service-now.com/incident.do?SOAP
the soap endpoint you have defined actually ends in ?WSDL
..
Should end in ?SOAP
Best Regards
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2016 10:19 AM
Hi Sourabh,
SOAP Web Service - ServiceNow Wiki
..
For instance, a generated SOAP Endpoint may look like this:
https://instance.service-now.com/incident.do?SOAP
the soap endpoint you have defined actually ends in ?WSDL
..
Should end in ?SOAP
Best Regards
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2016 10:27 AM
Indeed that was the thing I was missing. I was entering the wsdl instead of the endpoint.
Thanks a lot Tony. That made my day.
Kind regards,
Sourabh D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2016 12:29 AM
Hi Sourabh.
Excellent! Your update has made my day!
Don't forget to mark the correct answer so others can find it easily in the future.
Best Regards
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2016 03:28 PM
Hi Tony,
How should I mark this as a correct answer. I cant see any button anywhere on my screen.
Kind regards,
Sourabh D