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

The reference to the xsd is to be provided within the WSDL or the SOAP message function.


Hey Chris, even after removing that line I am getting error :-



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


Mansi try to download WSDL through MID server. Use background script to download it.



1. Activate an Elevated Privilege


2. search for background scripts


3. enter the below script. change the WSDL end point. and hit run



//ENTER THE WSDL URL IN THE LINE BELOW


var wsdl = "http://137.65.1.25/jjasys/WSDL/public/mapping02/Create_GMP_WSDL";



var httpclient = Packages.org.apache.commons.httpclient;


var HttpClient = httpclient.HttpClient;


var GetMethod = httpclient.methods.GetMethod;



var client = new HttpClient();


var get = new GetMethod( wsdl );


var status = client.executeMethod( get );



// print the status and response


var result = ("\n\n"+get.getResponseBodyAsString());


ms.log(result);


get.releaseConnection();



4. once it's completed. copy WSDL file



Ref: Getting a WSDL from behind a firewall-John Andersen



5. Once you uncheck download and paste the WSDL. save it



6. Download update set and commit it from http://www.john-james-andersen.com/file-download/Remote+WSDL+Flattener



7. Refer to Load and Flatten a Remote WSDL-John Andersen



hope it will help


Instead of all of this.



I manually created the soap message function. I think it is able to connect via mid server but I am getting the attached error "Socket Error" :-



Any idea why this error comes up?



Capture.JPG


Hi, I am still trying to get it work.



I manually created the function and when I test it, I get 401 Unauthorize access error. We checked with AX guys and they are saying that the user have full admin rights but when SNOW makes a request to AX web service they do not see the credentials passed in URL.



I just enabled basic authentication. Is there anyother thing I need to do to pass credentials in SOAP message? Also AX do not have SSL enabled but it is enabled in SNOW. Is this an issue?