facebook

Generation of WS Client

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

    fboisseau
    Member

    I am having a problem with the generation of the client code. The process starts and then fails with not specific message. I opened the WSDL (after copying it under the workspace) directory in the design/source view. It show the correct information, but in the error message box I get the following messsage The WSDL File: <file-name> could not be read. I also have the following warning messages in the problem box and do not know what they mean. The file cannot be validated as the XML Schema “<workspace>\com_list\WebRoot\WEB-INF\web.xml (The system cannot find the path specified)” that is specified as describing the syntax of the file cannot be located., and the same error for the file <workspace>\com_list\WebServices\services.xml. Can you provide me some help on these issues?

    #268409 Reply

    Russ
    Member

    fboisseau:

    You don’t say what version of ME you are using but I assume it is version 5.1.1. How did you create your project for web services? Is this a top-down or bottom-up approach?

    It might be helpful for you to post your WSDL–changing the names to protect the innocent. 🙂 What I find interesting is ME is complaining about the web.xml file….

    You might want to turn on WSDL validation in hopes it will isolate come of the issues involving the WSDL for you. If at all possible, you could upgrade to ME5.5M1 as it has some very good tools for checking the WSDL and validating it for you.

    Russ

    #268456 Reply

    fboisseau
    Member

    I am not sure what you mean about top down or bottom up. I created the webservice project by selection New–>WebService project and (to the best of my ablitity) filling in the information requested.

    Here is the WSDL file that I am using. It is just a test procedure to get the basics down.

    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions name="StockQuote" targetNamespace="urn:smsgroup:QuoteServer" xmlns:tns="urn:smsgroup:QuoteServer" xmlns:S2="urn:smsgroup:QuoteServer:StockQuote" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:S1="urn:soap-fault:details" xmlns="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:documentation>Author=Us, EncodingType=DOC_LITERAL, Proxygen_Product=Progress Version 10.1B</wsdl:documentation>
      <wsdl:types>
    <schema elementFormDefault="unqualified" targetNamespace="urn:soap-fault:details" xmlns="http://www.w3.org/2001/XMLSchema"><element name="FaultDetail"><complexType><sequence><element name="errorMessage" type="xsd:string"/><element name="requestID" type="xsd:string"/></sequence></complexType></element></schema>
    <schema elementFormDefault="qualified" targetNamespace="urn:smsgroup:QuoteServer:StockQuote" xmlns="http://www.w3.org/2001/XMLSchema"><element name="GetQuote"><complexType><sequence><element name="cSymbol" nillable="true" type="xsd:string"/></sequence></complexType></element><element name="GetQuoteResponse"><complexType><sequence><element name="result" nillable="true" type="xsd:string"/><element name="dPrice" nillable="true" type="xsd:decimal"/></sequence></complexType></element></schema>
      </wsdl:types>
      <wsdl:message name="StockQuote_GetQuote">
        <wsdl:part name="parameters" element="S2:GetQuote"/>
      </wsdl:message>
      <wsdl:message name="StockQuote_GetQuoteResponse">
        <wsdl:part name="parameters" element="S2:GetQuoteResponse"/>
      </wsdl:message>
      <wsdl:message name="FaultDetailMessage">
        <wsdl:part name="FaultDetail" element="S1:FaultDetail"/>
      </wsdl:message>
      <wsdl:portType name="StockQuoteObj">
        <wsdl:operation name="GetQuote">
          <wsdl:input message="tns:StockQuote_GetQuote"/>
          <wsdl:output message="tns:StockQuote_GetQuoteResponse"/>
          <wsdl:fault name="StockQuoteFault" message="tns:FaultDetailMessage"/>
        </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="StockQuoteObj" type="tns:StockQuoteObj">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="GetQuote">
          <soap:operation soapAction="" style="document"/>
          <wsdl:input>
            <soap:body use="literal"/>
          </wsdl:input>
          <wsdl:output>
            <soap:body use="literal"/>
          </wsdl:output>
          <wsdl:fault name="StockQuoteFault">
            <soap:fault name="StockQuoteFault" use="literal"/>
          </wsdl:fault>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="StockQuoteService">
        <wsdl:port name="StockQuoteObj" binding="tns:StockQuoteObj">
    <wsdl:documentation></wsdl:documentation>
          <soap:address location="http://10.1.1.6:8080/wsa/wsa1"/>
        </wsdl:port>
      </wsdl:service>
    </wsdl:definitions>
    

    Just some more information. This WSDL was generated by a tool from Progress Software that generates WSDL proxies for code written in the OpenEdge programming language. I have been able to open and generate .java files from this WSDL using Apache Axis. I have also accessed this code from the web service component from Tibco.

    From what I can tell the WSDL validation is on.

    #268463 Reply

    Riyad Kalla
    Member

    fboisseau,
    When you open the project properties do you have a MyEclipse > Web Services preference panel?

    The reason I ask is because if you have WTP installed or enabled, both MyEclipse and WTP contribute a “Web Service Project”, so we could be confusing the two here possibly.

    #268471 Reply

    fboisseau
    Member

    Yes, I do have a MyEclipse Web Services perference panel. It basically shows an XFire Web Services Configuration, that points to WebServices/services.xml file, as the service.xml location.

    #268473 Reply

    Riyad Kalla
    Member

    I am seeing an exception while using that WSDL. I’ll pass it along and see what is goin gon. Thanks for posting that.

    #268484 Reply

    Riyad Kalla
    Member

    fboisseau,
    Ok after looking into this deeper it looks to have been a bug in 5.1.1 that was fixed in our preview 5.5 Milestone 1 release. We are working on 5.5 Milestone 2 release that we hope to have out in a week or so right now.

    To get this to work you could install 5.5M1 right now if you like, but I’d suggest installing it along side your existing 5.1.1 install incase you need to move back to 5.1.1 for some reason.

    #268692 Reply

    fboisseau
    Member

    I just installed MyEclipse 5.5 Milestone 1 and I am having the same problem. I am getting a error message on the validate step, but can read what the problem is.

    #268701 Reply

    Riyad Kalla
    Member

    What was the error? I didn’t encounter one using 5.5M1…

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Generation of WS Client

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