1 Reply Latest reply on Oct 27, 2008 6:55 PM by peterj

    Which wconsume artefacts are for the test client?

    pxstein

      I created a sample web service with the WSDL shown at the bottom of this post.

      wsconsume now creates all relevant artefacts. In detail:

      - Greet.java
      - GreetResponse.java
      - ObjectFactory.java
      - package-info.java
      - TestWs.java
      - TestWsService.java

      Which of these files (resp. the classes) should be put into the client *.jar file
      (which in turn call the web service later) ?

      Are really all *.classes necessary FOR THE CLIENT?





      <definitions name="TestWsService" targetNamespace="http://dhanago.test.com/"
      xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:tns="http://dhanago.test.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

      <xs:schema targetNamespace="http://dhanago.test.com/" version="1.0"
      xmlns:tns="http://dhanago.test.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="greet" type="tns:greet" />
      <xs:element name="greetResponse" type="tns:greetResponse" />
      <xs:complexType name="greet">
      <xs:sequence>
      <xs:element minOccurs="0" name="name" type="xs:string" />
      </xs:sequence>
      </xs:complexType>
      <xs:complexType name="greetResponse">
      <xs:sequence>
      <xs:element minOccurs="0" name="return" type="xs:string" />
      </xs:sequence>
      </xs:complexType>
      </xs:schema>














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

      <soap:operation soapAction="" />

      <soap:body use="literal" />


      <soap:body use="literal" />





      <soap:address location="http://127.0.0.1:8080/testWsProject/TestWs" />








        • 1. Re: Which wconsume artefacts are for the test client?
          peterj

          All of the generated classes should be placed into your client's JAR file.

          By the way, when posting XML source, enclose your XML text in UBBCode "code" tags - you can do this by selecting the XML text and clicking the Code button above the editor window. Also, click the Preview button to ensure that the formatting is correct and the XML text shows up before posting