cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to import wsdl generated from Oracle JDeveloper

Former Member
0 Kudos

Hi experts, does anyone has the experience of importing wsdl generated from the Oracle Jdeveloper? Mine is not able to import the wsdl. It gives me this error:

"com.sap.aii.utilxi.misc.api.UnexpectedException: Internal Error: An unexpected error occurred (com.sap.aii.utilxi.wsdl.api.InvalidExtensionException: Tag schema is in the WSDL namespace and therefore cannot be used as an enhancement)"

Maybe if anyone could try to their XI that would be very helpful. I have tried importing the wsdl into webMethods and it works fine. Thus, my conclusion is that XI does not support the format of the Oracle Jdeveloper wsdl? Anyone could try? Thank you....The wsdl is below:

<?xml version = '1.0' encoding = 'UTF-8'?>

<!Generated by the Oracle JDeveloper 10g Web Services WSDL Generator>

<!Date Created: Wed Sep 05 03:27:22 GMT 2007>

<definitions

name="AmWebServiceService"

targetNamespace="http://com/ahm/ws/am/server/webservice/AmWebServiceServer.wsdl"

xmlns="http://schemas.xmlsoap.org/wsdl/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:tns="http://com/ahm/ws/am/server/webservice/AmWebServiceServer.wsdl"

xmlns:ns1="http://com.ahm.ws.am.server.webservice/IAmWebServiceService.xsd">

<types>

<ns0:schema

targetNamespace="http://com.ahm.ws.am.server.webservice/IAmWebServiceService.xsd"

xmlns="http://www.w3.org/2001/XMLSchema"

xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://schemas.xmlsoap.org/wsdl/"/>

</types>

<message name="add0Request">

<part name="var1" type="xsd:float"/>

<part name="var2" type="xsd:float"/>

</message>

<message name="add0Response">

<part name="return" type="xsd:float"/>

</message>

<message name="getVersion1Request"/>

<message name="getVersion1Response">

<part name="return" type="xsd:string"/>

</message>

<portType name="AmWebServiceServerPortType">

<operation name="add">

<input name="add0Request" message="tns:add0Request"/>

<output name="add0Response" message="tns:add0Response"/>

</operation>

<operation name="getVersion">

<input name="getVersion1Request" message="tns:getVersion1Request"/>

<output name="getVersion1Response" message="tns:getVersion1Response"/>

</operation>

</portType>

<binding name="AmWebServiceServerBinding" type="tns:AmWebServiceServerPortType">

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

<operation name="add">

<soap:operation soapAction="" style="rpc"/>

<input name="add0Request">

<soap:body use="encoded" namespace="AmWebServiceService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

</input>

<output name="add0Response">

<soap:body use="encoded" namespace="AmWebServiceService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

</output>

</operation>

<operation name="getVersion">

<soap:operation soapAction="" style="rpc"/>

<input name="getVersion1Request">

<soap:body use="encoded" namespace="AmWebServiceService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

</input>

<output name="getVersion1Response">

<soap:body use="encoded" namespace="AmWebServiceService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

</output>

</operation>

</binding>

<service name="AmWebServiceService">

<port name="AmWebServiceServerPort" binding="tns:AmWebServiceServerBinding">

<soap:address location="http://n00028:8988/AhmModel-context-root/AmWebServiceService"/>

</port>

</service>

</definitions>

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Made Wishnu,

Here is your correct WSDL:

<?xml version = '1.0' encoding = 'UTF-8'?>

<!--Generated by the Oracle JDeveloper 10g Web Services WSDL

Generator-->

<!Date Created: Wed Sep 05 03:27:22 GMT 2007>

<wsdl:definitions name="AmWebServiceService"

targetNamespace="http://com/ahm/ws/am/server/webservice/AmWebSer

viceServer.wsdl"

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:tns="http://com/ahm/ws/am/server/webservice/AmWebServiceServ

er.wsdl"

xmlns:ns1="http://com.ahm.ws.am.server.webservice/IAmWebServiceSer

vice.xsd">

<wsdl:types>

<xsd:schema

targetNamespace="http://com.ahm.ws.am.server.webservice/IAmWebSe

rviceService.xsd"

xmlns="http://www.w3.org/2001/XMLSchema"

xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"

xmlns:ns0="http://schemas.xmlsoap.org/wsdl/"/>

</wsdl:types>

<wsdl:message name="add0Request">

<wsdl:part name="var1" type="xsd:float"/>

<wsdl:part name="var2" type="xsd:float"/>

</wsdl:message>

<wsdl:message name="add0Response">

<wsdl:part name="return" type="xsd:float"/>

</wsdl:message>

<wsdl:message name="getVersion1Request"/>

<wsdl:message name="getVersion1Response">

<wsdl:part name="return" type="xsd:string"/>

</wsdl:message>

<wsdl:portType name="AmWebServiceServerPortType">

<wsdl:operation name="add">

<wsdl:input name="add0Request" message="tns:add0Request"/>

<wsdl:output name="add0Response" message="tns:add0Response"/>

</wsdl:operation>

<wsdl:operation name="getVersion">

<wsdl:input name="getVersion1Request"

message="tns:getVersion1Request"/>

<wsdl:output name="getVersion1Response"

message="tns:getVersion1Response"/>

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="AmWebServiceServerBinding"

type="tns:AmWebServiceServerPortType">

<soap:binding style="rpc"

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

<wsdl:operation name="add">

<soap:operation soapAction="" style="rpc"/>

<wsdl:input name="add0Request">

<soap:body use="encoded" namespace="AmWebServiceService"

encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

</wsdl:input>

<wsdl:output name="add0Response">

<soap:body use="encoded" namespace="AmWebServiceService"

encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getVersion">

<soap:operation soapAction="" style="rpc"/>

<wsdl:input name="getVersion1Request">

<soap:body use="encoded" namespace="AmWebServiceService"

encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

</wsdl:input>

<wsdl:output name="getVersion1Response">

<soap:body use="encoded" namespace="AmWebServiceService"

encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="AmWebServiceService">

<wsdl:port name="AmWebServiceServerPort"

binding="tns:AmWebServiceServerBinding">

<soap:address

location="http://n00028:8988/AhmModel-context-root/AmWebServiceS

ervice"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

I imported the WSDL given by you and got the same errors, later on compairing your wsdl with an example wsdl, i found out that many tags in your wsdl were missing prefix 'wsdl:'

I have appended those tags in your wsdl manually and imported it into SAP PI, it is working fine now.

you can also test @ ur end.

I do expect good points for this much work in case it works for you

Thanks,

Varun