Soap Message error

SME
Giga Guru

Hi, my SNOW is trying to consume external web service but after I provide the wsdl in SOAP message module and click on Generate Sample SOAP messages. I get the below error :-

Unable to load WSDL: java.lang.RuntimeException: java.net.UnknownHostException: vtordaxdv02:java.net.UnknownHostException: vtordaxdv02

Can anyone tell what is the issue...how to fix it? Also, there is no place here where I can provide the mid server....?

1 ACCEPTED SOLUTION

Thanks Mike.



what we did now is because ServiceNow is not able to create those functions automatically. I manually created the function and used basic authentication. But the soap endpoint and function did not look correct thats why it gave bad request error.



To get over this error, AX guys are giving us soap message envelope and by using that we are able to get the response successfully. and status code 200.



Thanks for all help and support.


View solution in original post

33 REPLIES 33

ChrisBurks
Mega Sage

Hi Mansi,



That error means that either the url you provided is incorrect or it can't get to it (usually in the case if the endpoint is behind a closed firewall).


The mid server setting is set in the Soap Message Function.



If opening up the firewall is not possible so that ServiceNow can get to the WSDL url then you'll have to uncheck the Download WSDL box and copy paste your WSDL document in the WSDL XML field.


From there you use the "Generate sample SOAP messages" UI action to create SOAP message functions. Or if you already know how to create the functions then just use the "New" button under the SOAP Message Functions section. Within setting up the function you'll be able to select the MID Server to use.


Thanks for replying.



I am getting this error even if I paste the wsdl in wsdl xml field.


Can you tell what else is required?



Sent from my iPhone


Bharat23
Kilo Guru

FOr better troubleshooting install SOAP UI (Download SoapUI Open Source | Downloads ) on your machine and try to load and authenticate this WSDL. It will be very helpful. YOu may also test the functions available as part of this wsdl using soap ui


Kalaiarasan Pus
Giga Sage
Is your's a on premise instance?