Thanks for the response,

I made a simple sample, so you can look at it and you'll be able to repeat 
my test case.

1. generate java client with wsdl2java - see below
2. compile java files - see below
3. run the client and catch the request with tcpmon listening on the port 
8081 - see below

I'm not able to send files to the mailing list, so I will post it here - 
see below.

Thanks for any help,
Jan

-----------------------------------------------------------------------------

WSDL file:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<definitions name="wmapserv" targetNamespace="http://tempuri.org/wmapserv"; 
xmlns="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:tns="http://tempuri.org/wmapserv"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsi="http://ws-i.org/schemas/conformanceClaim/"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
    <!-- Micro Focus ServerExpress generated WSDL document-->
    <types>
      <schema elementFormDefault="qualified" 
targetNamespace="http://tempuri.org/wmapserv"; 
xmlns="http://www.w3.org/2001/XMLSchema"; 
xmlns:tns="http://tempuri.org/wmapserv";>
        <complexType name="Details">
          <sequence>
            <element name="Text_details">
              <complexType>
                <sequence>
                  <element name="Title" type="string"/>
                  <element name="Type" type="string"/>
                  <element name="Author" type="string"/>
                </sequence>
              </complexType>
            </element>
            <element name="Stockno" type="string"/>
            <element name="Retail" type="decimal"/>
            <element name="Onhand" type="decimal"/>
            <element name="Sold" type="unsignedInt"/>
          </sequence>
        </complexType>
        <simpleType name="BookStockno">
          <restriction base="string"/>
        </simpleType>
        <element name="Read">
          <complexType>
            <sequence>
              <element name="BookStockno" type="tns:BookStockno"/>
            </sequence>
          </complexType>
        </element>
        <element name="ReadResponse">
          <complexType>
            <sequence>
              <element name="FileStatus" type="string"/>
              <element name="Details" type="tns:Details"/>
            </sequence>
          </complexType>
        </element>
      </schema>
    </types>
    <message name="ReadInput">
      <part element="tns:Read" name="parameters"/>
    </message>
    <message name="ReadOutput">
      <part element="tns:ReadResponse" name="parameters"/>
    </message>
    <portType name="wmapserv">
      <operation name="Read">
        <input message="tns:ReadInput"/>
        <output message="tns:ReadOutput"/>
      </operation>
    </portType>
    <binding name="wmapserv" type="tns:wmapserv">
      <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
      <operation name="Read">
        <soap:operation soapAction=""/>
        <input>
          <soap:body use="literal"/>
        </input>
        <output>
          <soap:body use="literal"/>
        </output>
      </operation>
    </binding>
    <service name="wmapserv">
      <port binding="tns:wmapserv" name="wmapserv">
        <documentation>
          <wsi:Claim conformsTo="http://ws-i.org/profiles/basic/1.0"/>
        </documentation>
        <soap:address location="http://localhost:8081"/>
      </port>
    </service>
  </definitions>

--------------------------------------------------------------------------------

command to generate java client:

c:\utils\apache-cxf-2.0.4-incubator\bin\wsdl2java -client wmapserv.wsdl

--------------------------------------------------------------------------------

batch to compile java files:

set CXF=C:\utils\apache-cxf-2.0.4-incubator
"C:\Program Files\Java\jdk1.6.0_04\bin\javac.exe" -classpath 
%CXF%\lib\cxf-2.0.4-incubator.jar;%CXF%\lib\geronimo-activation_1.1_spec-1.0-M1.jar;%CXF%\lib\geronimo-annotation_1.0_spec-1.1.jar;%CXF%\lib\geronimo-stax-api_1.0_spec-1.0.jar;%CXF%\lib\geronimo-ws-metadata_2.0_spec-1.1.1.jar;%CXF%\lib\jaxws-api-2.0.jar;%CXF%\lib\jaxb-api-2.0.jar;%CXF%\lib\jaxb-impl-2.0.5.jar;%CXF%\lib\saaj-api-1.3.jar;%CXF%\lib\saaj-impl-1.3.jar;%CXF%\lib\wsdl4j-1.6.1.jar;%CXF%\lib\wstx-asl-3.2.1.jar;%CXF%\lib\xml-resolver-1.2.jar;%CXF%\lib\XmlSchema-1.3.2.jar
 
./org/tempuri/wmapserv/*.java

--------------------------------------------------------------------------------

batch to run the client:

set CXF=C:\utils\apache-cxf-2.0.4-incubator
"C:\Program Files\Java\jdk1.6.0_04\bin\javaw.exe" -classpath 
.;%CXF%\lib\cxf-2.0.4-incubator.jar;%CXF%\lib\geronimo-activation_1.1_spec-1.0-M1.jar;%CXF%\lib\geronimo-annotation_1.0_spec-1.1.jar;%CXF%\lib\geronimo-stax-api_1.0_spec-1.0.jar;%CXF%\lib\geronimo-ws-metadata_2.0_spec-1.1.1.jar;%CXF%\lib\jaxws-api-2.0.jar;%CXF%\lib\jaxb-api-2.0.jar;%CXF%\lib\jaxb-impl-2.0.5.jar;%CXF%\lib\saaj-api-1.3.jar;%CXF%\lib\saaj-impl-1.3.jar;%CXF%\lib\wsdl4j-1.6.1.jar;%CXF%\lib\wstx-asl-3.2.1.jar;%CXF%\lib\xml-resolver-1.2.jar;%CXF%\lib\XmlSchema-1.3.2.jar
 
org.tempuri.wmapserv.Wmapserv_Wmapserv_Client file:wmapserv.wsdl

--------------------------------------------------------------------------------

and the result request SOAP message ("b9" depends on parameters of web 
service):

POST / HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Accept: *
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.6.0_04
Host: localhost:8081
Connection: keep-alive
Transfer-Encoding: chunked

b9
<soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><Read 
xmlns="http://tempuri.org/wmapserv";><BookStockno></BookStockno></Read></soap:Body></soap:Envelope>
0

Reply via email to