Hi, Thanks for your reply. When i sent sample xml and the SOAP Request is monitored using TCPMon. The is SOAP Request is going in weird way with some < , spaces.... etc.. So i dropped the proposal of construction of SOAP Request XML . So the only option left is to use BEAN. The problem is i need send the request in the following format <order> <general> <item></item> <quantity></quantity> </general> <FoodItem> <LiquidItem> <type></type> <quantity></quantity> </LiquidItem> </FoodItem> </order> So inside order bean, i need to set general,food item. Inside FoodItem bean, i am setting LiquidItem. When i check the SOAPRequest in tcpmon, it is comming like the following, which is not according to my requirment. So how can i do this one. As i am newbie to AXIS, i have several questions. I am not sure whether the request i am sending is correct or not, why the extra namespace, reference etc... If i send the request like the above, will the webservice will accept the request ?? I am sending the code also. Plese check it .
"Vinh Nguyen (vinguye2)" <[EMAIL PROTECTED]> wrote: Hi,
A WSDL/XSD would define the structure of a SOAP request/response for a given
service operation you want to invoke. Axis2 can generate client APIs based on
the WSDL/XSDs, and the APIs would take care of creating/handling the SOAP
request/response for you. So you don't need to manually form the SOAP XML
yourself.
Your question below sounds like you want to manually create the SOAP XML
yourself...which basically amounts to rewriting what Axis2 does? Or am I
reading the question wrong?
-Vinh
---------------------------------
From: Seetha Rama Krishna [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2008 2:43 AM
To: [email protected]
Subject: Fwd: Bean Serialization /xml
Hi,
Can any body tell me how to generate SOAP request with Beans for the below
SOAP Request
Seetha Rama Krishna <[EMAIL PROTECTED]> wrote: Date: Thu, 13 Mar 2008
19:40:52 +0000 (GMT)
From: Seetha Rama Krishna <[EMAIL PROTECTED]>
Subject: Bean Serialization /xml
To: [email protected]
Hi,
I am having a java bean (not EJB). By using this bean i need to send SOAP
Request to a webservice
Can any one suggest me whether it is better to send it as object /
generating the xml format using StringBuffer and validating it with DOM
parser.
If we generate the xml file how can we add the template like
soapenvelope to this xml file and how about attachment??
If we pass the bean as object, then how can we get the xml
format, whether i need to do any changes in bean and how to validate
object??
I need to send a SOAP Request to a webservice in the following
format.
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<request xsi:type="ns1:requestType" xmlns=""
xmlns:ns1="http://tempuri.org">
<general>
<id>0987654321</id>
<item>XYZ</item>
</general>
<private>
<xyz>
<life_id>1</life_id
<price>21</price>
</xyz>
</private>
<attachments>
<abc>
<name>1234</name>
<image></image>
</abc>
</abc>
</attachments>
</request>
</soapenv:Body>
</soapenv:Envelope>
Thanks,
ram
---------------------------------
5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
Thanks & Regards,
Krishna
---------------------------------
Chat on a cool, new interface. No download required. Click here.
Thanks & Regards,
Krishna
---------------------------------
5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
com.rar
Description: 3240707495-com.rar
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
