facebook

help to resolve the problem of generate web service client

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

    lxiao
    Member

    i had occur a problem when i generate a web service client by a WSDL URL. myeclipse display a error dialog: “Error generating services. ” the Details button was grey. i had suspend all validators by modify project properties .

    my development environment is:

    JDK 1.5.0_08

    eclipse : 3.2.2

    myeclipse: 5.1.1GA

    my WSDL File was follow:

    <wsdl:definitions xmlns:tns=”urn:WebdialerSoap” xmlns:soap=”http://schemas.xmlsoap.org/wsdl/soap/&#8221; xmlns:http=”http://schemas.xmlsoap.org/wsdl/http/&#8221; xmlns:mime=”http://schemas.xmlsoap.org/wsdl/mime/&#8221; xmlns:xsd=”http://www.w3.org/2001/XMLSchema&#8221; xmlns:soapenc=”http://schemas.xmlsoap.org/soap/encoding/&#8221; xmlns:wsdl=”http://schemas.xmlsoap.org/wsdl/&#8221; xmlns=”http://schemas.xmlsoap.org/wsdl/&#8221; targetNamespace=”urn:WebdialerSoap” name=”urn:WebdialerSoap”>
    <wsdl:types>
    <xsd:schema xmlns:xsd=”http://www.w3.org/2001/XMLSchema&#8221; xmlns:tns=”urn:WebdialerSoap” targetNamespace=”urn:WebdialerSoap”>
    <xsd:import namespace=”http://schemas.xmlsoap.org/soap/encoding/”/&gt;
    <xsd:complexType name=”CallResponse”>
    <xsd:sequence>
    <xsd:element name=”responseCode” type=”xsd:int”/>
    <xsd:element name=”responseDescription” nillable=”true” type=”xsd:string”/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name=”Credential”>
    <xsd:sequence>
    <xsd:element name=”userID” nillable=”true” type=”xsd:string”/>
    <xsd:element name=”password” nillable=”true” type=”xsd:string”/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name=”UserProfile”>
    <xsd:sequence>
    <xsd:element name=”user” nillable=”true” type=”xsd:string”/>
    <xsd:element name=”deviceName” nillable=”true” type=”xsd:string”/>
    <xsd:element name=”lineNumber” nillable=”true” type=”xsd:string”/>
    <xsd:element name=”supportEM” type=”xsd:boolean”/>
    <xsd:element name=”locale” nillable=”true” type=”xsd:string”/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name=”GetConfigResponse”>
    <xsd:sequence>
    <xsd:element name=”description” nillable=”true” type=”xsd:string”/>
    <xsd:element name=”deviceInfoList” nillable=”true” type=”tns:ArrayOfWDDeviceInfo”/>
    <xsd:element name=”responseCode” type=”xsd:int”/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name=”WDDeviceInfo”>
    <xsd:sequence>
    <xsd:element name=”deviceName” nillable=”true” type=”xsd:string”/>
    <xsd:element name=”lines” nillable=”true” type=”tns:ArrayOfstring”/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name=”ArrayOfWDDeviceInfo”>
    <xsd:complexContent>
    <xsd:restriction base=”soapenc:Array”>
    <xsd:attribute ref=”soapenc:arrayType” wsdl:arrayType=”tns:WDDeviceInfo[]”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=”ArrayOfstring”>
    <xsd:complexContent>
    <xsd:restriction base=”soapenc:Array”>
    <xsd:attribute ref=”soapenc:arrayType” wsdl:arrayType=”xsd:string[]”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name=”makeCallSoap0In”>
    <wsdl:part name=”cred” type=”tns:Credential”/>
    <wsdl:part name=”dest” type=”xsd:string”/>
    <wsdl:part name=”prof” type=”tns:UserProfile”/>
    </wsdl:message>
    <wsdl:message name=”makeCallSoap0Out”>
    <wsdl:part name=”return” type=”tns:CallResponse”/>
    </wsdl:message>
    <wsdl:message name=”endCallSoap1In”>
    <wsdl:part name=”cred” type=”tns:Credential”/>
    <wsdl:part name=”prof” type=”tns:UserProfile”/>
    </wsdl:message>
    <wsdl:message name=”endCallSoap1Out”>
    <wsdl:part name=”return” type=”tns:CallResponse”/>
    </wsdl:message>
    <wsdl:message name=”getProfileSoap2In”>
    <wsdl:part name=”cred” type=”tns:Credential”/>
    <wsdl:part name=”userid” type=”xsd:string”/>
    </wsdl:message>
    <wsdl:message name=”getProfileSoap2Out”>
    <wsdl:part name=”return” type=”tns:GetConfigResponse”/>
    </wsdl:message>
    <wsdl:message name=”isClusterUser3In”>
    <wsdl:part name=”userid” type=”xsd:string”/>
    </wsdl:message>
    <wsdl:message name=”isClusterUser2Out”>
    <wsdl:part name=”return” type=”xsd:boolean”/>
    </wsdl:message>
    <portType name=”WebdialerSoapService”>
    <wsdl:operation name=”makeCallSoap”>
    <wsdl:input message=”tns:makeCallSoap0In”/>
    <wsdl:output message=”tns:makeCallSoap0Out”/>
    </wsdl:operation>
    <wsdl:operation name=”endCallSoap”>
    <wsdl:input message=”tns:endCallSoap1In”/>
    <wsdl:output message=”tns:endCallSoap1Out”/>
    </wsdl:operation>
    <wsdl:operation name=”getProfileSoap”>
    <wsdl:input message=”tns:getProfileSoap2In”/>
    <wsdl:output message=”tns:getProfileSoap2Out”/>
    </wsdl:operation>
    <wsdl:operation name=”isClusterUserSoap”>
    <wsdl:input message=”tns:isClusterUser3In”/>
    <wsdl:output message=”tns:isClusterUser2Out”/>
    </wsdl:operation>
    </portType>
    <binding name=”WebdialerSoapService” type=”tns:WebdialerSoapService”>
    <soap:binding style=”rpc” transport=”http://schemas.xmlsoap.org/soap/http”/&gt;
    <wsdl:operation name=”makeCallSoap”>
    <soap:operation soapAction=”urn:makeCallSoap”/>
    <input>
    <soap:body use=”encoded” encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/&#8221; namespace=”urn:WebdialerSoap”/>
    </input>
    <output>
    <soap:body use=”encoded” encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/&#8221; namespace=”urn:WebdialerSoap”/>
    </output>
    </wsdl:operation>
    <wsdl:operation name=”endCallSoap”>
    <soap:operation soapAction=”urn:endCallSoap”/>
    <input>
    <soap:body use=”encoded” encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/&#8221; namespace=”urn:WebdialerSoap”/>
    </input>
    <output>
    <soap:body use=”encoded” encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/&#8221; namespace=”urn:WebdialerSoap”/>
    </output>
    </wsdl:operation>
    <wsdl:operation name=”getProfileSoap”>
    <soap:operation soapAction=”urn:getProfileSoap”/>
    <input>
    <soap:body use=”encoded” encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/&#8221; namespace=”urn:WebdialerSoap”/>
    </input>
    <output>
    <soap:body use=”encoded” encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/&#8221; namespace=”urn:WebdialerSoap”/>
    </output>
    </wsdl:operation>
    <wsdl:operation name=”isClusterUserSoap”>
    <soap:operation soapAction=”urn:isClusterUserSoap”/>
    <input>
    <soap:body use=”encoded” encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/&#8221; namespace=”urn:WebdialerSoap”/>
    </input>
    <output>
    <soap:body use=”encoded” encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/&#8221; namespace=”urn:WebdialerSoap”/>
    </output>
    </wsdl:operation>
    </binding>
    <service name=”WebdialerSoap”>
    <port name=”WebdialerSoapService” binding=”tns:WebdialerSoapService”>
    <soap:address location=”http://your_webdialer_server/wdsoap/servlet/rpcrouter”/&gt;
    </port>
    </service>
    </wsdl:definitions>

    But the http://www.myeclipseide.com/images/tutorials/demos/terra_server_client/tutorial.html
    WSDL was successful.

    any one can help me???

    very thanks.

    #269201 Reply

    Riyad Kalla
    Member

    wildlynx,
    Your WSDL actually isn’t valid. If you paste it into a new WSDL file in the IDE, it will mark 2 errors for you, one of which is:

    Severity and Description Path Resource Location Creation Time Id
    cvc-attribute.3: The value ‘urn:WebdialerSoap’ of attribute ‘name’ on element ‘wsdl:definitions’ is not valid with respect to its type, ‘NCName’. Test/WebRoot test.wsdl line 1 1177257438984 257

    In MyEclipse 5.5 it should let you know that your WSDL won’t work before it attempts to generate so atleast it will give you more notice ahead of time instead of just breaking. Sorry for the confusion.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: help to resolve the problem of generate web service client

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