You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "ALI,HANEEF (HP-Cupertino,ex1)" <ha...@hp.com> on 2003/03/28 01:08:33 UTC

Dynamic Invocation document style

Hi,
 
Iam trying to invoke an operation which is based on doc/literal dynamically.
 
What I did?
 
    * Create a  service object with wsdl location
    * Create a call object ( using the   createCall( portName,
operationName) )
    * Set  operation style = document
    *  // Now the call object is initialized with param details. I traced
through the code and it initializes param types as  org.w3c.dom.Element and
and name space as "java"
 
    * Now i invoked with param which is   org.w3c.Element representation of
the xml                  
        (ie)   call.invoke ( new Object { element} )  // Where element  is
of type org.w3c.dom.Element with value as ( "<GetOwner  xmls="http;/test" />
}
 
 
  But when i looked into the message in the wire -- the format is different
 
What i saw in wire
********************************
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
<http://schemas.xmlsoap.org/soap/envelope/> "
xmlns:xsd="http://www.w3.org/2001/XMLSchema
<http://www.w3.org/2001/XMLSchema> "
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance> ">
 <soapenv:Body>
  <document xsi:type="ns1:org.w3c.dom.Element" xmlns="" xmlns:ns1="java">
   <GetOwner xmlns="http://testt"/ <http://testt> >
  </document>
 </soapenv:Body>
</soapenv:Envelope>
***************************
 
Note there is a additional "document" element in SoapBody. Can any one point
me out what is going wrong. BTW Iam using Axis 1.0
 
 
Haneef