I didn't use any data binding mechanism. Which one is used by default in Axis?

Ok, Here is what i did:-

1. Generated the stubs with command  "java org.apache.axis.wsdl.WSDL2Java  -v  
-o c:\abc.wsdl "

2. Now i got following classes generated by WSDL2Java tool

    abc.java (request class)
    abcResponse.java (response object)
    abcPort.java
    abcStub.java
    abcService.java
    abcServiceLocator.java

3. // set request for service
   abc abReq = new abc ();
   // fill abReq with some request params..
   
   abcService ab1 = new abcServiceLocator();
   abcPort binding = ab1.getabc(new java.net.URL(url));
   ((abcStub)binding).setTimeout(axisTimeout);
  
   //calling web service
   abcResponse abcResp = binding.abcOper(abReq);
   
4. Now as you see in Step 3, I get web service response filled in Java object 
abcResponse. Axis must have serialized the XML to Java object internally.
Now my question is how to get a copy of XML response?? I now have only Java 
object but I want a copy of XML too ?

Though XML is printed out in XML logs by Axis..But i dont know which method of 
Axis is doign that?









----- Original Message ----
From: Shehan Simen <[EMAIL PROTECTED]>
To: "axis-user@ws.apache.org" <axis-user@ws.apache.org>
Sent: Tuesday, September 16, 2008 4:51:34 PM
Subject: RE: How to get Response XML from Axis stubs?

What is the data binding mechanism that you used when generating the client 
stub (using wsdl2java)? Xmlbeans or adb?
U don't need to regenerate anything. I said that if u have used adb, then u can 
use the method that I said before.
Good luck!

-----Original Message-----
From: kapil pruthi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 17 September 2008 6:45 AM
To: axis-user@ws.apache.org
Subject: Re: How to get Response XML from Axis stubs?

Do i need to regenerate Response objects for ADB? Can't i use same Axis objects 
which were generated as part of WSDL2java execution?



----- Original Message ----
From: Shehan Simen <[EMAIL PROTECTED]>
To: "axis-user@ws.apache.org" <axis-user@ws.apache.org>
Sent: Monday, September 15, 2008 10:34:12 PM
Subject: RE: How to get Response XML from Axis stubs?

Hi,
I am using ADB as data binding.
Try using the following, if you are using ADB:
String responseXml = MyResponse.getOMElement(
                    MyResponse.MY_QNAME, OMAbstractFactory
                    .getOMFactory()).toStringWithConsume();

Regards,
Shehan


-----Original Message-----
From: kapil pruthi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 16 September 2008 3:15 PM
To: axis-user@ws.apache.org
Subject: How to get Response XML from Axis stubs?

I have axis client stubs generated (using WSDL2Java) tool and able to
hit a web service. The response is retrieved in Response object which i
generated using WSDL2Java. Seems like Axis serialization is converting
XML to Java response objects.

My question is how to get a copy of that response XML now?






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


      


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to