This discussion is archived
2 Replies Latest reply: Oct 2, 2012 2:11 AM by 965599 RSS

OEPE: Cannot create service from WSDL

965599 Newbie
Currently Being Moderated
Hello,

I always get the same Exception when I try to generate a service from a WSDL (the one given in the tutorial).

I tried with :
-Eclipse Juno - OEPE - Weblogic 12c
-Eclipse Indigo bundled with OEPE and WebLogic 11g
The method I followed is in that OEPE tutorial: http://docs.oracle.com/cd/E14545_01/help/oracle.eclipse.tools.weblogic.doc/html/webservices/start.html

The exception is:
oracle.eclipse.tools.webservices.ant.ArtifactGenerationFailedException: Failed to generate artifact: /MyTest/src/com/bea/wls103/TemperatureService_TemperaturePortImpl.java
     at oracle.eclipse.tools.webservices.ant.WlsAntScript.refresh(WlsAntScript.java:268)
     at oracle.eclipse.tools.webservices.ant.WlsAntScript.execute(WlsAntScript.java:285)
     at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
     at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
     at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
     at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

Thanks a lot for your help.

Edited by: user10761102 on 2 oct. 2012 01:47
  • 1. Re: OEPE: Cannot create service from WSDL
    965599 Newbie
    Currently Being Moderated
    After writing this post, I tried with another very simple WSLD and got a successful compilation.

    So the following WSDL was not working (taken from a OEPE tutorial if I'm not wrong). I haven't found the problem in the WSDL yet.

    <?xml version="1.0"?>
    <definitions
    name="TemperatureService"
    targetNamespace="http://www.bea.com/wls103"
    xmlns:tns="http://www.bea.com/wls103"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns="http://schemas.xmlsoap.org/wsdl/" >
    <message name="getTempRequest">
    <part name="zip" type="xsd:string"/>
    </message>
    <message name="getTempResponse">
    <part name="return" type="xsd:float"/>
    </message>
    <portType name="TemperaturePortType">
    <operation name="getTemp">
    <input message="tns:getTempRequest"/>
    <output message="tns:getTempResponse"/>
    </operation>
    </portType>
    <binding name="TemperatureBinding" type="tns:TemperaturePortType">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="getTemp">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"
    namespace="http://www.bea.com/wls103" />
    </input>
    <output>
    <soap:body use="literal"
    namespace="http://www.bea.com/wls103" />
    </output>
    </operation>
    </binding>
    <service name="TemperatureService">
    <documentation>
    Returns current temperature in a given U.S. zipcode
    </documentation>
    <port name="TemperaturePort" binding="tns:TemperatureBinding">
    <soap:address
    location="http://localhost:7001/temp/TemperatureService"/>
    </port>
    </service>
    </definitions>

    Regards.
  • 2. Re: OEPE: Cannot create service from WSDL
    965599 Newbie
    Currently Being Moderated
    Ok.
    The warnings listed by Eclipse (about some WSDL problems) were fixed and now the implementation is generated.

    Christophe.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points