facebook

Error generating services

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #264960 Reply

    Chandra
    Member

    I am trying to build webservice client. facing the below issue with Xfire.
    the webservices are belonging to our vendor (agile) they build the webservices on Axis 1.2.
    please give me some ideas to get rid of this problem.

    Eclipse Log file:
    !ENTRY org.eclipse.wst.internet.cache 1 0 2007-01-22 22:19:07.313
    !MESSAGE wtp.autotest.noninteractive is set. Licenses dialogs will not be displayed.

    !ENTRY com.genuitec.eclipse.ws.xfire 4 0 2007-01-22 22:19:44.641
    !MESSAGE Error generating services
    !STACK 0
    org.codehaus.xfire.gen.GenerationException: Could not find type {http://www.agile.com/ws/SampleWsx}invokePXReturn
    at org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport.getType(JAXBSchemaSupport.java:160)
    at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.getReturnType(AbstractServiceGenerator.java:344)
    at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:101)
    at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:62)
    at org.codehaus.xfire.gen.jsr181.ServiceInterfaceGenerator.generate(ServiceInterfaceGenerator.java:48)
    at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:49)
    at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:132)
    at com.genuitec.eclipse.ws.xfire.generator.WSGenJob.run(WSGenJob.java:92)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

    WSDL File:
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <wsdl:definitions targetNamespace=”http://www.agile.com/ws/SampleWsx&#8221; xmlns:impl=”http://www.agile.com/ws/SampleWsx&#8221; xmlns:intf=”http://www.agile.com/ws/SampleWsx&#8221; xmlns:apachesoap=”http://xml.apache.org/xml-soap&#8221; xmlns:wsdlsoap=”http://schemas.xmlsoap.org/wsdl/soap/&#8221; xmlns:soapenc=”http://schemas.xmlsoap.org/soap/encoding/&#8221; xmlns:xsd=”http://www.w3.org/2001/XMLSchema&#8221; xmlns:tns1=”http://www.w3.org/1999/XMLSchema&#8221; xmlns:wsdl=”http://schemas.xmlsoap.org/wsdl/&#8221; xmlns=”http://schemas.xmlsoap.org/wsdl/”&gt;
    <!–WSDL created by Apache Axis version: 1.2alpha
    Built on Mar 10, 2006 (12:28:53 PST)–>

    <wsdl:message name=”invokePXResponse”>

    <wsdl:part name=”invokePXReturn” type=”soapenc:string”/>

    </wsdl:message>

    <wsdl:message name=”invokePXRequest”>

    <wsdl:part name=”pxId” type=”soapenc:string”/>

    <wsdl:part name=”compositeKey” type=”soapenc:string”/>

    </wsdl:message>

    <wsdl:portType name=”InvokePXWebService”>

    <wsdl:operation name=”invokePX” parameterOrder=”pxId compositeKey”>

    <wsdl:input name=”invokePXRequest” message=”impl:invokePXRequest”/>

    <wsdl:output name=”invokePXResponse” message=”impl:invokePXResponse”/>

    </wsdl:operation>

    </wsdl:portType>

    <wsdl:binding name=”InvokePXSoapBinding” type=”impl:InvokePXWebService”>

    <wsdlsoap:binding style=”rpc” transport=”http://schemas.xmlsoap.org/soap/http”/&gt;

    <wsdl:operation name=”invokePX”>

    <wsdlsoap:operation soapAction=””/>

    <wsdl:input name=”invokePXRequest”>

    <wsdlsoap:body use=”encoded” encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/&#8221; namespace=”http://webservices.ui.agile.com”/&gt;

    </wsdl:input>

    <wsdl:output name=”invokePXResponse”>

    <wsdlsoap:body use=”encoded” encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/&#8221; namespace=”http://www.agile.com/ws/SampleWsx”/&gt;

    </wsdl:output>

    </wsdl:operation>

    </wsdl:binding>

    <wsdl:service name=”InvokePXWebServiceService”>

    <wsdl:port name=”InvokePX” binding=”impl:InvokePXSoapBinding”>

    <wsdlsoap:address location=”http://ntplmprod03.micron.com/Agile/integration/services/InvokePX”/&gt;

    </wsdl:port>

    </wsdl:service>

    </wsdl:definitions>

    MyEclipse Install log:

    __________________________________________________________________________

    Mon Jan 22 21:06:22 MST 2007

    Free Memory: 49792 kB
    Total Memory: 65152 kB

    java.class.path:
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\InstallerData\IAClasses.zip
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\resource\jdglue.zip
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\InstallerData\Execute.zip
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\InstallerData\Execute.zip
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\InstallerData\Resource1.zip
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\InstallerData\Resource1.zip
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\InstallerData
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\InstallerData

    ZGUtil.CLASS_PATH:
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\InstallerData\IAClasses.zip
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\resource\jdglue.zip
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\InstallerData\Execute.zip
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\InstallerData

    sun.boot.class.path:
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\resource\jre\lib\rt.jar
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\resource\jre\lib\i18n.jar
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\resource\jre\lib\sunrsasign.jar
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\resource\jre\lib\jsse.jar
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\resource\jre\lib\jce.jar
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\resource\jre\lib\charsets.jar
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\resource\jre\classes

    java.ext.dirs:
    C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\resource\jre\lib\ext

    java.version == 1.5.0_08 (Java 2+)
    java.vm.name == Java HotSpot(TM) Client VM
    java.vm.vendor == Sun Microsystems Inc.
    java.vm.version == 1.5.0_08-b03
    java.vm.specification.name == Java Virtual Machine Specification
    java.vm.specification.vendor == Sun Microsystems Inc.
    java.vm.specification.version == 1.0
    java.specification.name == Java Platform API Specification
    java.specification.vendor == Sun Microsystems Inc.
    java.specification.version == 1.5
    java.vendor == Sun Microsystems Inc.
    java.vendor.url == http://java.sun.com/
    java.class.version == 49.0
    java.compiler == null
    java.home == C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows\resource\jre
    java.io.tmpdir == C:\DOCUME~1\cudatha\LOCALS~1\Temp\
    os.name == Windows XP
    os.arch == x86
    os.version == 5.1
    path.separator == ;
    file.separator == \
    file.encoding == Cp1252
    user.name == cudatha
    user.home == C:\Documents and Settings\cudatha
    user.dir == C:\Documents and Settings\cudatha\Local Settings\Temp\I1169524681\Windows
    user.language == en
    user.region == null
    __________________________________________________________________________

    Install Begin: Mon Jan 22 21:01:29 MST 2007
    Install End: Mon Jan 22 21:05:29 MST 2007

    Installed by InstallAnywhere 8.0 Enterprise Build 3063, by Macrovision

    User Interactions
    —————–

    #Choose Install Folder
    #———————
    USER_INSTALL_DIR=C:\\Program Files\\MyEclipse Enterprise Workbench 5.1.0 GA

    #Choose Shortcut Folder
    #———————-
    USER_SHORTCUTS=C:\\Documents and Settings\\cudatha\\Start Menu\\Programs\\MyEclipse 5.1.0

    #Release Notes?
    #————–
    SHOW_RELEASE_NOTES=\”Yes – Open the release notes\”,\”\”
    SHOW_RELEASE_NOTES_1=Yes – Open the release notes
    SHOW_RELEASE_NOTES_2=
    SHOW_RELEASE_NOTES_BOOLEAN_1=1
    SHOW_RELEASE_NOTES_BOOLEAN_2=0

    Summary
    ——-

    Installation: Successful.

    6568 Successes
    0 Warnings
    0 NonFatalErrors
    0 FatalErrors

    Action Notes:

    None

    Install Log Detail:

    Check Disk Space: C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA
    Status: SUCCESSFUL
    Additional Notes: NOTE – Required Disk Space: 413,977,930; Free Disk Space: 36,093,726,720

    Install Directory: C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\jre
    Status: SUCCESSFUL

    Install Directory: C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\
    Status: SUCCESSFUL
    Additional Notes: NOTE – Directory already existed

    Install Directory: C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\MyEclipse-UninstallerData\
    Status: SUCCESSFUL

    Install File: C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-netrexx.jar
    Status: SUCCESSFUL
    —-

    #265186 Reply

    Riyad Kalla
    Member

    Sorry for the delay in responding. The reason this WSDL doesn’t work is because it is in rpc/encoded format which is a deprecated WSDL format that MyEclipse doesn’t support. Everything is moving to doc/literal for the time being and we are doing a better job of validation in the future 5.5 release to warn users of incompatabilities ahead of time instead of just dying during the generation phase. Sorry for the confusion.

    #265356 Reply

    AnothrNmbr
    Member

    I have this same problem too, and it is coming from a very actively developed web service (from f5.com). If there are no plans to support this style of wsdl, can you please recommend an alternative wsdl -> code generator that may be able to do the job?

    thanks,
    ji

    #265390 Reply

    Riyad Kalla
    Member

    ji,
    Is the WSDL rpc/encoded? (search for the text “rpc” in the WSDL)

    If it is, I unfortunately don’t have a suggestion. As this older format of web services is phased out less and less tools are supporting it (Axis 2, XFire, etc.)

    #267062 Reply

    I’m trying to use an WSDL generated in WSAD in MyEclipse 5.1. I’m getting an error saying “WSWS3166E: Error: No client transport named ‘http’ found”.
    Is this error occuring because the WSDL is rpc/encoded. Please help me out in this issue.

    Thanks,
    Satish.

    #267075 Reply

    Brian Fernandes
    Moderator

    Satish,
    Where do you see this message?
    If your WSDL is RPC / Encoded, generation will not work as Riyad mentioned above.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Error generating services

You must be logged in to post in the forum log in