cancel
Showing results for 
Search instead for 
Did you mean: 

Error: When importing a Webserive using AWS Model

Former Member
0 Kudos

Hi Experts,

The webservice is created in .NET and i am able to test the same.

When i try to import the same into Webdynpro, i am getting the following error.

Even i tried to import the webservice after saving it locally also, i am getting the following error.

Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model. See nested exception for details.

at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:149)

at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:49)

at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)

at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:411)

... 53 more

Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Problem with WSDL file parsing. See nested message.

at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:182)

at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:146)

... 56 more

Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Cannot connect to http://xxx/ws/service.asmx?Config1.WSDL, passing via http proxy: :80: Connection refused: connect -> java.io.IOException: Cannot connect to http://xxxx/ws/service.asmx?Config1.WSDL, passing via http proxy: :80: Connection refused: connect

at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1028)

at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1115)

at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:178)

... 57 more

Caused by: java.io.IOException: Cannot connect to http://xxxx/ws/service.asmx?Config1.WSDL, passing via http proxy: :80: Connection refused: connect

at com.sap.engine.services.webservices.tools.WSDLDownloadResolver.resolveEntity(WSDLDownloadResolver.java:161)

at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1008)

... 59 more

Thanks & Regards,

Palani

Edited by: Palaniappan A on Jan 5, 2010 6:05 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi. Obviously your NWDS is not able to get the WSDL from the http address. If your are using a proxy Server in your company, try to set the correct address while starting up eclipse. Or, as a workaround, save the WSDL locally and import from file.

Jan

Former Member
0 Kudos

Hi,

We are not using any proxy server.

Also, i tried with saving the WSDL locally and import the file.

But then also, i am not able to import the web service model.

I am getting the same error.

Thanks in advance.

Regards,

Palani

Former Member
0 Kudos

Strange ... two more ideas:

1. I was having trouble in the past when I did not have local admin rights on XP, since the wsdl import tries to start a sub-process which is not allowed in some companies for security reasons.

2. The wsdl itself refernces unreachable urls or contains lements that are not compatible with SAP/Java.

Try posting the WSDL, maybe someone else can spot possible problems.

Jan

Former Member
0 Kudos

Hi,

This is my WSDL,

Please help me to solve the problem.

[...]

<?xml version="1.0" encoding="utf-8" ?>

- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="XXXX.WebServices.APP" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="XXXX.WebServices.APP" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

- <wsdl:types>

- <s:schema elementFormDefault="qualified" targetNamespace="XXXX.WebServices.APP">

- <s:element name="GetMaterialInfo">

- <s:complexType>

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="materialNumber" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="materialDescription" type="s:string" />

</s:sequence>

</s:complexType>

</s:element>

- <s:element name="GetMaterialInfoResponse">

- <s:complexType>

- <s:sequence>

- <s:element minOccurs="0" maxOccurs="1" name="GetMaterialInfoResult">

- <s:complexType>

- <s:sequence>

<s:element ref="s:schema" />

<s:any />

</s:sequence>

</s:complexType>

</s:element>

</s:sequence>

</s:complexType>

</s:element>

- <s:element name="DataSet" nillable="true">

- <s:complexType>

- <s:sequence>

<s:element ref="s:schema" />

<s:any />

</s:sequence>

</s:complexType>

</s:element>

</s:schema>

</wsdl:types>

- <wsdl:message name="GetMaterialInfoSoapIn">

<wsdl:part name="parameters" element="tns:GetMaterialInfo" />

</wsdl:message>

- <wsdl:message name="GetMaterialInfoSoapOut">

<wsdl:part name="parameters" element="tns:GetMaterialInfoResponse" />

</wsdl:message>

- <wsdl:message name="GetMaterialInfoHttpGetIn">

<wsdl:part name="materialNumber" type="s:string" />

<wsdl:part name="materialDescription" type="s:string" />

</wsdl:message>

- <wsdl:message name="GetMaterialInfoHttpGetOut">

<wsdl:part name="Body" element="tns:DataSet" />

</wsdl:message>

- <wsdl:message name="GetMaterialInfoHttpPostIn">

<wsdl:part name="materialNumber" type="s:string" />

<wsdl:part name="materialDescription" type="s:string" />

</wsdl:message>

- <wsdl:message name="GetMaterialInfoHttpPostOut">

<wsdl:part name="Body" element="tns:DataSet" />

</wsdl:message>

- <wsdl:portType name="ServiceSoap">

- <wsdl:operation name="GetMaterialInfo">

<wsdl:input message="tns:GetMaterialInfoSoapIn" />

<wsdl:output message="tns:GetMaterialInfoSoapOut" />

</wsdl:operation>

</wsdl:portType>

- <wsdl:portType name="ServiceHttpGet">

- <wsdl:operation name="GetMaterialInfo">

<wsdl:input message="tns:GetMaterialInfoHttpGetIn" />

<wsdl:output message="tns:GetMaterialInfoHttpGetOut" />

</wsdl:operation>

</wsdl:portType>

- <wsdl:portType name="ServiceHttpPost">

- <wsdl:operation name="GetMaterialInfo">

<wsdl:input message="tns:GetMaterialInfoHttpPostIn" />

<wsdl:output message="tns:GetMaterialInfoHttpPostOut" />

</wsdl:operation>

</wsdl:portType>

- <wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">

<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />

- <wsdl:operation name="GetMaterialInfo">

<soap:operation soapAction="XXXX.WebServices.APP/GetMaterialInfo" style="document" />

- <wsdl:input>

<soap:body use="literal" />

</wsdl:input>

- <wsdl:output>

<soap:body use="literal" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">

<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />

- <wsdl:operation name="GetMaterialInfo">

<soap12:operation soapAction="XXXX.WebServices.APP/GetMaterialInfo" style="document" />

- <wsdl:input>

<soap12:body use="literal" />

</wsdl:input>

- <wsdl:output>

<soap12:body use="literal" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:binding name="ServiceHttpGet" type="tns:ServiceHttpGet">

<http:binding verb="GET" />

- <wsdl:operation name="GetMaterialInfo">

<http:operation location="/GetMaterialInfo" />

- <wsdl:input>

<http:urlEncoded />

</wsdl:input>

- <wsdl:output>

<mime:mimeXml part="Body" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:binding name="ServiceHttpPost" type="tns:ServiceHttpPost">

<http:binding verb="POST" />

- <wsdl:operation name="GetMaterialInfo">

<http:operation location="/GetMaterialInfo" />

- <wsdl:input>

<mime:content type="application/x-www-form-urlencoded" />

</wsdl:input>

- <wsdl:output>

<mime:mimeXml part="Body" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:service name="Service">

- <wsdl:port name="ServiceSoap" binding="tns:ServiceSoap">

<soap:address location="http://COMP.com/ws/service.asmx" />

</wsdl:port>

- <wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12">

<soap12:address location="http://COMP.com/ws/service.asmx" />

</wsdl:port>

- <wsdl:port name="ServiceHttpGet" binding="tns:ServiceHttpGet">

<http:address location="http://COMP.com/ws/service.asmx" />

</wsdl:port>

- <wsdl:port name="ServiceHttpPost" binding="tns:ServiceHttpPost">

<http:address location="http://COMP.com/ws/service.asmx" />

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

[...]

Thanks & Regards,

Palani

Edited by: Palaniappan A on Jan 7, 2010 6:44 AM

Edited by: Palaniappan A on Jan 7, 2010 6:45 AM

Edited by: Palaniappan A on Jan 7, 2010 6:45 AM

Edited by: Palaniappan A on Jan 7, 2010 6:46 AM

Edited by: Palaniappan A on Jan 11, 2010 6:45 AM

Edited by: Palaniappan A on Jan 11, 2010 6:47 AM

Former Member
0 Kudos

Hi Experts,

I am not able to Paste, WSDL code here.

Please help me to sort out this problem.

<?xml version="1.0" encoding="utf-8" ?>

- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="Wartsila.PTIP.WebServices.CatalogueServices" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="Wartsila.PTIP.WebServices.CatalogueServices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

- <wsdl:types>

- <s:schema elementFormDefault="qualified" targetNamespace="Wartsila.PTIP.WebServices.CatalogueServices">

- <s:element name="GetMaterialInfo">

- <s:complexType>

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="materialNumber" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="materialDescription" type="s:string" />

</s:sequence>

</s:complexType>

</s:element>

- <s:element name="GetMaterialInfoResponse">

- <s:complexType>

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="GetMaterialInfoResult" type="tns:ArrayOfMaterialInfo" />

</s:sequence>

</s:complexType>

</s:element>

- <s:complexType name="ArrayOfMaterialInfo">

- <s:sequence>

<s:element minOccurs="0" maxOccurs="unbounded" name="MaterialInfo" nillable="true" type="tns:MaterialInfo" />

</s:sequence>

</s:complexType>

- <s:complexType name="MaterialInfo">

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="VendorNumber" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="CurrencyCode" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="MaterialNumber" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="ShortText" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="OrderUnit" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="NetPrice" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="PriceUnit" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="MaterialGroup" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="DeliveryTime" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="GlAccount" type="s:string" />

</s:sequence>

</s:complexType>

<s:element name="ArrayOfMaterialInfo" nillable="true" type="tns:ArrayOfMaterialInfo" />

</s:schema>

</wsdl:types>

- <wsdl:message name="GetMaterialInfoSoapIn">

<wsdl:part name="parameters" element="tns:GetMaterialInfo" />

</wsdl:message>

- <wsdl:message name="GetMaterialInfoSoapOut">

<wsdl:part name="parameters" element="tns:GetMaterialInfoResponse" />

</wsdl:message>

- <wsdl:message name="GetMaterialInfoHttpGetIn">

<wsdl:part name="materialNumber" type="s:string" />

<wsdl:part name="materialDescription" type="s:string" />

</wsdl:message>

- <wsdl:message name="GetMaterialInfoHttpGetOut">

<wsdl:part name="Body" element="tns:ArrayOfMaterialInfo" />

</wsdl:message>

- <wsdl:message name="GetMaterialInfoHttpPostIn">

<wsdl:part name="materialNumber" type="s:string" />

<wsdl:part name="materialDescription" type="s:string" />

</wsdl:message>

- <wsdl:message name="GetMaterialInfoHttpPostOut">

<wsdl:part name="Body" element="tns:ArrayOfMaterialInfo" />

</wsdl:message>

- <wsdl:portType name="ServiceSoap">

- <wsdl:operation name="GetMaterialInfo">

<wsdl:input message="tns:GetMaterialInfoSoapIn" />

<wsdl:output message="tns:GetMaterialInfoSoapOut" />

</wsdl:operation>

</wsdl:portType>

- <wsdl:portType name="ServiceHttpGet">

- <wsdl:operation name="GetMaterialInfo">

<wsdl:input message="tns:GetMaterialInfoHttpGetIn" />

<wsdl:output message="tns:GetMaterialInfoHttpGetOut" />

</wsdl:operation>

</wsdl:portType>

- <wsdl:portType name="ServiceHttpPost">

- <wsdl:operation name="GetMaterialInfo">

<wsdl:input message="tns:GetMaterialInfoHttpPostIn" />

<wsdl:output message="tns:GetMaterialInfoHttpPostOut" />

</wsdl:operation>

</wsdl:portType>

- <wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">

<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />

- <wsdl:operation name="GetMaterialInfo">

<soap:operation soapAction="Wartsila.PTIP.WebServices.CatalogueServices/GetMaterialInfo" style="document" />

- <wsdl:input>

<soap:body use="literal" />

</wsdl:input>

- <wsdl:output>

<soap:body use="literal" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">

<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />

- <wsdl:operation name="GetMaterialInfo">

<soap12:operation soapAction="Wartsila.PTIP.WebServices.CatalogueServices/GetMaterialInfo" style="document" />

- <wsdl:input>

<soap12:body use="literal" />

</wsdl:input>

- <wsdl:output>

<soap12:body use="literal" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:binding name="ServiceHttpGet" type="tns:ServiceHttpGet">

<http:binding verb="GET" />

- <wsdl:operation name="GetMaterialInfo">

<http:operation location="/GetMaterialInfo" />

- <wsdl:input>

<http:urlEncoded />

</wsdl:input>

- <wsdl:output>

<mime:mimeXml part="Body" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:binding name="ServiceHttpPost" type="tns:ServiceHttpPost">

<http:binding verb="POST" />

- <wsdl:operation name="GetMaterialInfo">

<http:operation location="/GetMaterialInfo" />

- <wsdl:input>

<mime:content type="application/x-www-form-urlencoded" />

</wsdl:input>

- <wsdl:output>

<mime:mimeXml part="Body" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:service name="Service">

- <wsdl:port name="ServiceSoap" binding="tns:ServiceSoap">

<soap:address location="http://ptipqa.wartsila.com/ws/service.asmx" />

</wsdl:port>

- <wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12">

<soap12:address location="http://ptipqa.wartsila.com/ws/service.asmx" />

</wsdl:port>

- <wsdl:port name="ServiceHttpGet" binding="tns:ServiceHttpGet">

<http:address location="http://ptipqa.wartsila.com/ws/service.asmx" />

</wsdl:port>

- <wsdl:port name="ServiceHttpPost" binding="tns:ServiceHttpPost">

<http:address location="http://ptipqa.wartsila.com/ws/service.asmx" />

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Regards,

Palani

Edited by: Palaniappan A on Jan 11, 2010 6:49 AM

Former Member
0 Kudos

Why don't you publish your WSDL file anywhere else and just post the link?

gill367
Active Contributor
0 Kudos

Have you tried importing some other web service.?

Sarbjeet

Answers (0)