axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinh Nguyen (vinguye2)" <vingu...@cisco.com>
Subject RE: difference b/w bean mapping using SOAPBody
Date Fri, 14 Mar 2008 19:20:05 GMT
Hi,
 
When you receive a SOAP response from a web service, the contents must
match the WSDL/XSD schema defined for that service operation.  I believe
what you want is to take that XML and send it back out in another
slightly different format.  That amounts to changing from one schema to
another, and I believe that's outside the scope of Axis2.
 
You might be able to write a simple translator framework that converts
one XML to another using mappings between one property to another, but
it might not be straightforward as that.
 
Keep in mind that Axis2 primaly handles sending/receiving SOAP.  It does
comes with various data binding options built-in.  The actual data
binding tool used (i.e. XmlBeans) mainly handles serialization between
XML and the Java type for a given XSD schema.  To change from one schema
to another, you'd have do write additional code for that.
 
-Vinh
 

________________________________

From: Seetha Rama Krishna [mailto:ram_kurra@yahoo.co.in] 
Sent: Friday, March 14, 2008 11:46 AM
To: axis-user@ws.apache.org
Subject: difference b/w bean mapping using SOAPBody


Hi,
     I am new bie to AXIS.  I have to send a SOAP Request in the
following format 
<general>
   <item>SOAP</item>
  <version>1.1</version>
</general>
<item>
  <foodItem>
     <type>liquid</type>
     <quantity>1</quantity>
   </fooditem>
 </item>
         I had gone through SAAJ API and found that it is very easy to
construct the  same SOAP Request. 
         My question is the same can be build using bean mapping concept
in AXIS..
           Is there any difference in sending the SOAP Request using
AXIS with bean serialization an by using SAAJ API.
    Can any body suggest me how to proceed further
 
Thanks,
ram

________________________________

Chat on a cool, new interface. No download required. Click here.
<http://in.rd.yahoo.com/tagline_webmessenger_10/*http://in.messenger.yah
oo.com/webmessengerpromo.php> 

Mime
View raw message