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

No its not on premise instance… our SNow is cloud application and I am trying to call AX web service which is in my company's environment behind firewall…


Behind the firewall is the answer to your question.  

I have not done this personally but you will need to work with your internal network team and open the firewall rules for ServiceNow to access it. As I said, I have not done this personally but I know this is done at firewall rules. (Guess its known as whitelisting or something)

ChrisBurks
Mega Sage

Did you uncheck the "Download WSDL" checkbox? If this is still checked the system will try to use the provided link.


Yes its unchecked…….


Are you sure it's the sam e exact error that you received before?


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



The error is saying that it's unable to load the WSDL because it can't find the server (host) vtordaxdv02, where vtordaxdv02 is supplied from the url you placed in the URL field. From that error it may be that you're not providing a fully qualified path. Here is an example of a fictitious domain name that I know it won't find:


soap_error.png



I can leave that url in there and paste a WSDL in the WSDL/XML field and generate the soap functions as long as I uncheck the Download WSDL check box.


The example below I have pasted a WSDL from a demo instance but I will leave the URL in there and uncheck the Download WSDL check box. You can see a successful SOAP Messages generated message even though the URL is not a good one.


Note: I used the inspect element to get the URL to display because when the Download WSDL is unchecked baseline settings doesn't display the URL field.



download_wsdl_unchecked.png



Maybe try clearing out the WSDL URL field.