
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2015 09:53 AM
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....?
Solved! Go to Solution.
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2015 09:25 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2015 06:31 AM
Now I am getting this error :-
Unable to load WSDL: com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException:null
Also, I noticed that wsdl does not have any schema in it like the xsd tags......
This XML file does not appear to have any style information associated with it. The document tree is shown below.
</msf:WindowsTransportSecurity>
</wsp:Policy>
</sp:TransportToken>
</wsp:Policy>
</sp:AlgorithmSuite>
</wsp:Policy>
</sp:Layout>
</wsp:Policy>
</sp:TransportBinding>
<wsaw:UsingAddressing/>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
</msf:WindowsTransportSecurity>
</wsp:Policy>
</sp:TransportToken>
</wsp:Policy>
</sp:AlgorithmSuite>
</wsp:Policy>
</sp:Layout>
</wsp:Policy>
</sp:TransportBinding>
<wsaw:UsingAddressing/>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
</msf:WindowsTransportSecurity>
</wsp:Policy>
</sp:TransportToken>
</wsp:Policy>
</sp:AlgorithmSuite>
</wsp:Policy>
</sp:Layout>
</wsp:Policy>
</sp:TransportBinding>
<wsaw:UsingAddressing/>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
</msf:WindowsTransportSecurity>
</wsp:Policy>
</sp:TransportToken>
</wsp:Policy>
</sp:AlgorithmSuite>
</wsp:Policy>
</sp:Layout>
</wsp:Policy>
</sp:TransportBinding>
<wsaw:UsingAddressing/>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
</msf:WindowsTransportSecurity>
</wsp:Policy>
</sp:TransportToken>
</wsp:Policy>
</sp:AlgorithmSuite>
</wsp:Policy>
</sp:Layout>
</wsp:Policy>
</sp:TransportBinding>
<wsaw:UsingAddressing/>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
<wsdl:import namespace="http://schemas.microsoft.com/dynamics/2008/01/services" location="http://vtordaxdv02:8101/DynamicsAx/Services/AssetServices?wsdl=wsdl0"/>
<wsdl:types/>
<soap12:binding transport="http://schemas.microsoft.com/soap/tcp"/>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<soap12:binding transport="http://schemas.microsoft.com/soap/tcp"/>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<soap12:binding transport="http://schemas.microsoft.com/soap/tcp"/>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<soap12:binding transport="http://schemas.microsoft.com/soap/tcp"/>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<soap12:binding transport="http://schemas.microsoft.com/soap/tcp"/>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
<soap12:body use="literal"/>
</wsdl:input>
</wsdl:output>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
net.tcp://vtordaxdv02:8201/DynamicsAx/Services/AssetServices
</wsa10:Address>
</Identity>
</wsa10:EndpointReference>
</wsdl:port>
net.tcp://vtordaxdv02:8201/DynamicsAx/Services/AssetServices
</wsa10:Address>
</Identity>
</wsa10:EndpointReference>
</wsdl:port>
net.tcp://vtordaxdv02:8201/DynamicsAx/Services/AssetServices
</wsa10:Address>
</Identity>
</wsa10:EndpointReference>
</wsdl:port>
net.tcp://vtordaxdv02:8201/DynamicsAx/Services/AssetServices
</wsa10:Address>
</Identity>
</wsa10:EndpointReference>
</wsdl:port>
net.tcp://vtordaxdv02:8201/DynamicsAx/Services/AssetServices
</wsa10:Address>
</Identity>
</wsa10:EndpointReference>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2015 09:27 AM
This last error looks like you're using SOAPUI. Are you now using SOAPUI to test your WSDL?
If so, when creating the project are you using a url or pointing to a wsdl file locally on your computer?
If you're using a url are you able to get to that url in a browser?
if using a local file then the error could stem from but not limited to one of these reasons:
- incorrect with the WSDL
- SOAPUI doesn't support that WSDL format
- If you have other java applications there could be a cross between the java files
- You may need to do more configuring of your SOAP UI application
Note: I do use SOAP UI from time to time but I'm not an expert with it.
Are you able to post screenshots of your setup within ServiceNow?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2015 10:39 AM
Please find the screen shot attached.
I have created this soap message. and I get this error when click on generate sample soap messages.
Also, I am trying to consume AX web service. After, discussing with AX guys I came to know that they will be sending separate xsd file. that means schema information will not be in wsdl xml. Is it possible to have separate xsd in servicenow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2015 10:50 AM
The first thing that I notice is that you more than likely copied the WSDL information from viewing it in a web browser. The first line should be taken out: "This XML file does not appear to have any style information associated with it. The document tree is show below."
I believe that the xsd file can be separate but if so you'll have to include a reference to the schema definition within the namespace. The xsd file should be accessible.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2015 11:30 AM
Do I have to do anything in SNOW to include a reference to the schema definition within the namespace. or its the AX who have to give the reference of the xsd in their wsdl?