Hi I am developing an AXIS 1.4 client for a remote server (AXIS 1.3). The axis guide: http://ws.apache.org/axis/java/user-guide.html#ServiceStylesRPCDocumentWrapp edAndMessage details a message structure (which is similar to what I want):
 <soap:Body>
   <myNS:PurchaseOrder xmlns:myNS="http://commerce.com/PO";>
     <item>SK001</item>
     <quantity>1</quantity>
     <description>Sushi Knife</description>
   </myNS:PurchaseOrder>
</soap:Body> The guide says:
"For a document style service, this would map to a method like this:
public void method(PurchaseOrder po)" However using the stub generated by wsdl2java I am getting a message structure like:
 <soap:Body>
        <method>
                <myNS:PurchaseOrder xmlns:myNS="http://commerce.com/PO";>
                        <item>SK001</item>
                        <quantity>1</quantity>
                        <description>Sushi Knife</description>
                </myNS:PurchaseOrder>
        </method>
 </soap:Body>

where I have populated the part passed to the invoke method with an org.w3c.dom.Element containing an xml fragment:
                <myNS:PurchaseOrder xmlns:myNS="http://commerce.com/PO";>
                        <item>SK001</item>
                        <quantity>1</quantity>
                        <description>Sushi Knife</description>
                </myNS:PurchaseOrder>
                
wsdl binding is:
        <wsdl:binding name="....." type="impl:....">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
                <wsdl:operation name="process">
                        <wsdlsoap:operation soapAction=""/>
                        <wsdl:input name="processRequest">
                                <wsdlsoap:body use="literal"/>
                        </wsdl:input>
                
wsdl types:
        <wsdl:types>
                <schema targetNamespace="......">
                        <import namespace="...."/>
                        <element name="process" type="xsd:anyType"/>
                </schema>         
                
So in my case I am getting a message on the wire like:
 <soap:Body>
        <process>
                <myNS:PurchaseOrder xmlns:myNS="http://commerce.com/PO";>
                        <item>SK001</item>
                        <quantity>1</quantity>
                        <description>Sushi Knife</description>
                </myNS:PurchaseOrder>
        </process>
</soap:Body>
Where I don't want the process elements
                
Thanks John

Reply via email to