Re: Obtain the SOAP envelope as DOM document or String
Thank you. This worked for me. 2008/11/6 Amila Suriarachchi [EMAIL PROTECTED]: Have a look at here[1]. you can use the toString of the soap envelop to get the soap envelop. But since ADB consume the stream you may not see the body there. thanks, Amila. [1] http://amilachinthaka.blogspot.com/2008/11/accessing-axis2-information-at-client.html On Thu, Nov 6, 2008 at 10:43 AM, Amila Suriarachchi [EMAIL PROTECTED] wrote: sorry forget the link :) [1] http://wso2.org/library/2068 On Thu, Nov 6, 2008 at 10:42 AM, Amila Suriarachchi [EMAIL PROTECTED] wrote: Hope this[1] helps you to get the xml string using returned ADB classes. thanks, Amila. On Wed, Nov 5, 2008 at 9:00 PM, Matt Friedman [EMAIL PROTECTED] wrote: That is correct. Thanks, Matt. 2008/11/5 Amila Suriarachchi [EMAIL PROTECTED]: On Wed, Nov 5, 2008 at 4:19 AM, Matt Friedman [EMAIL PROTECTED] wrote: Hi Amila, Thanks for this but I wonder if you could be a little more specific. I tried calling toString on the stub and on the search request parameter object, both of which return the Object's implementation of toString Could you let me know which object I should be calling toString on? Are you using a Client with ADB data binding and you want to get the soap envelop at your client. is that your requirement? thanks, Amila. Thanks, Matt 2008/11/4 Amila Suriarachchi [EMAIL PROTECTED]: use toString method. thanks, Amila. On Tue, Nov 4, 2008 at 6:42 AM, Matt Friedman [EMAIL PROTECTED] wrote: I'm writing some code to produce xml files that contain the XML SOAP envelope. I'm doing this because I'm creating random search requests for part of our testing/benchmarking etc... I can create the client stub, configure it, and execute the search request, but I need to grab the SOAP envelope somehow. Is there a bit of the API that I can hook into so that I can do this? -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Obtain the SOAP envelope as DOM document or String
That is correct. Thanks, Matt. 2008/11/5 Amila Suriarachchi [EMAIL PROTECTED]: On Wed, Nov 5, 2008 at 4:19 AM, Matt Friedman [EMAIL PROTECTED] wrote: Hi Amila, Thanks for this but I wonder if you could be a little more specific. I tried calling toString on the stub and on the search request parameter object, both of which return the Object's implementation of toString Could you let me know which object I should be calling toString on? Are you using a Client with ADB data binding and you want to get the soap envelop at your client. is that your requirement? thanks, Amila. Thanks, Matt 2008/11/4 Amila Suriarachchi [EMAIL PROTECTED]: use toString method. thanks, Amila. On Tue, Nov 4, 2008 at 6:42 AM, Matt Friedman [EMAIL PROTECTED] wrote: I'm writing some code to produce xml files that contain the XML SOAP envelope. I'm doing this because I'm creating random search requests for part of our testing/benchmarking etc... I can create the client stub, configure it, and execute the search request, but I need to grab the SOAP envelope somehow. Is there a bit of the API that I can hook into so that I can do this? -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Obtain the SOAP envelope as DOM document or String
sorry forget the link :) [1] http://wso2.org/library/2068 On Thu, Nov 6, 2008 at 10:42 AM, Amila Suriarachchi [EMAIL PROTECTED] wrote: Hope this[1] helps you to get the xml string using returned ADB classes. thanks, Amila. On Wed, Nov 5, 2008 at 9:00 PM, Matt Friedman [EMAIL PROTECTED]wrote: That is correct. Thanks, Matt. 2008/11/5 Amila Suriarachchi [EMAIL PROTECTED]: On Wed, Nov 5, 2008 at 4:19 AM, Matt Friedman [EMAIL PROTECTED] wrote: Hi Amila, Thanks for this but I wonder if you could be a little more specific. I tried calling toString on the stub and on the search request parameter object, both of which return the Object's implementation of toString Could you let me know which object I should be calling toString on? Are you using a Client with ADB data binding and you want to get the soap envelop at your client. is that your requirement? thanks, Amila. Thanks, Matt 2008/11/4 Amila Suriarachchi [EMAIL PROTECTED]: use toString method. thanks, Amila. On Tue, Nov 4, 2008 at 6:42 AM, Matt Friedman [EMAIL PROTECTED] wrote: I'm writing some code to produce xml files that contain the XML SOAP envelope. I'm doing this because I'm creating random search requests for part of our testing/benchmarking etc... I can create the client stub, configure it, and execute the search request, but I need to grab the SOAP envelope somehow. Is there a bit of the API that I can hook into so that I can do this? -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
Re: Obtain the SOAP envelope as DOM document or String
Hope this[1] helps you to get the xml string using returned ADB classes. thanks, Amila. On Wed, Nov 5, 2008 at 9:00 PM, Matt Friedman [EMAIL PROTECTED]wrote: That is correct. Thanks, Matt. 2008/11/5 Amila Suriarachchi [EMAIL PROTECTED]: On Wed, Nov 5, 2008 at 4:19 AM, Matt Friedman [EMAIL PROTECTED] wrote: Hi Amila, Thanks for this but I wonder if you could be a little more specific. I tried calling toString on the stub and on the search request parameter object, both of which return the Object's implementation of toString Could you let me know which object I should be calling toString on? Are you using a Client with ADB data binding and you want to get the soap envelop at your client. is that your requirement? thanks, Amila. Thanks, Matt 2008/11/4 Amila Suriarachchi [EMAIL PROTECTED]: use toString method. thanks, Amila. On Tue, Nov 4, 2008 at 6:42 AM, Matt Friedman [EMAIL PROTECTED] wrote: I'm writing some code to produce xml files that contain the XML SOAP envelope. I'm doing this because I'm creating random search requests for part of our testing/benchmarking etc... I can create the client stub, configure it, and execute the search request, but I need to grab the SOAP envelope somehow. Is there a bit of the API that I can hook into so that I can do this? -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
Re: Obtain the SOAP envelope as DOM document or String
Have a look at here[1]. you can use the toString of the soap envelop to get the soap envelop. But since ADB consume the stream you may not see the body there. thanks, Amila. [1] http://amilachinthaka.blogspot.com/2008/11/accessing-axis2-information-at-client.html On Thu, Nov 6, 2008 at 10:43 AM, Amila Suriarachchi [EMAIL PROTECTED] wrote: sorry forget the link :) [1] http://wso2.org/library/2068 On Thu, Nov 6, 2008 at 10:42 AM, Amila Suriarachchi [EMAIL PROTECTED] wrote: Hope this[1] helps you to get the xml string using returned ADB classes. thanks, Amila. On Wed, Nov 5, 2008 at 9:00 PM, Matt Friedman [EMAIL PROTECTED]wrote: That is correct. Thanks, Matt. 2008/11/5 Amila Suriarachchi [EMAIL PROTECTED]: On Wed, Nov 5, 2008 at 4:19 AM, Matt Friedman [EMAIL PROTECTED] wrote: Hi Amila, Thanks for this but I wonder if you could be a little more specific. I tried calling toString on the stub and on the search request parameter object, both of which return the Object's implementation of toString Could you let me know which object I should be calling toString on? Are you using a Client with ADB data binding and you want to get the soap envelop at your client. is that your requirement? thanks, Amila. Thanks, Matt 2008/11/4 Amila Suriarachchi [EMAIL PROTECTED]: use toString method. thanks, Amila. On Tue, Nov 4, 2008 at 6:42 AM, Matt Friedman [EMAIL PROTECTED] wrote: I'm writing some code to produce xml files that contain the XML SOAP envelope. I'm doing this because I'm creating random search requests for part of our testing/benchmarking etc... I can create the client stub, configure it, and execute the search request, but I need to grab the SOAP envelope somehow. Is there a bit of the API that I can hook into so that I can do this? -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
Re: Obtain the SOAP envelope as DOM document or String
Hi Amila, Thanks for this but I wonder if you could be a little more specific. I tried calling toString on the stub and on the search request parameter object, both of which return the Object's implementation of toString Could you let me know which object I should be calling toString on? Thanks, Matt 2008/11/4 Amila Suriarachchi [EMAIL PROTECTED]: use toString method. thanks, Amila. On Tue, Nov 4, 2008 at 6:42 AM, Matt Friedman [EMAIL PROTECTED] wrote: I'm writing some code to produce xml files that contain the XML SOAP envelope. I'm doing this because I'm creating random search requests for part of our testing/benchmarking etc... I can create the client stub, configure it, and execute the search request, but I need to grab the SOAP envelope somehow. Is there a bit of the API that I can hook into so that I can do this? -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Betr.: Obtain the SOAP envelope as DOM document or String
Hi Arien, Thanks for this. How do I get Axis2 to recognize/find my class file? For instance, I found a similar example at: http://courses.cs.tau.ac.il/databases/workshop/axis2/axis2-1.4/samples/userguide/src/userguide/loggingmodule/LogHandler.java The package is specified as: package userguide.loggingmodule; How does the class loader know how to find the class in that package? I'm asking because I created my own logging module class and tried to load it using the Axis2.xml file, but I get class loader problems. It can't find the logging module class that I created. Thanks very much, Matt. 2008/11/4 Arien Kock [EMAIL PROTECTED]: I'm writing some code to produce xml files that contain the XML SOAPenvelope. ... Is there a bit of the API that I can hook into so that I can do this? You can create a handler and add it to a desired Phase in the axis2.xml Using the calling getEnvelope().toString() on the MessageContext will get you the what you want. Check out the sample application axis2-1.4\samples\userguide\src\userguide\loggingmodule which does the same thing. -Arien === The information contained in this message and its attachments, if any, is confidential and privileged. It may be read, copied and used only by the intended recipient. If you have received this message in error, please contact the sender immediately by return e-mail and please in that case delete this message and its attachments, if any, without disclosure to any third party/person. The company does not accept liability for any errors or omissions in this message or its attachments, if any. The company does not guarantee that the integrity of this message or its attachments, if any, has been maintained or that this message or its attachments, if any, are free of viruses, interceptions or interference. Any recipient of this message or of its attachments, if any, is responsible for maintaining adequate protection-measures of its own systems against any incidents. === -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Obtain the SOAP envelope as DOM document or String
On Wed, Nov 5, 2008 at 4:19 AM, Matt Friedman [EMAIL PROTECTED]wrote: Hi Amila, Thanks for this but I wonder if you could be a little more specific. I tried calling toString on the stub and on the search request parameter object, both of which return the Object's implementation of toString Could you let me know which object I should be calling toString on? Are you using a Client with ADB data binding and you want to get the soap envelop at your client. is that your requirement? thanks, Amila. Thanks, Matt 2008/11/4 Amila Suriarachchi [EMAIL PROTECTED]: use toString method. thanks, Amila. On Tue, Nov 4, 2008 at 6:42 AM, Matt Friedman [EMAIL PROTECTED] wrote: I'm writing some code to produce xml files that contain the XML SOAP envelope. I'm doing this because I'm creating random search requests for part of our testing/benchmarking etc... I can create the client stub, configure it, and execute the search request, but I need to grab the SOAP envelope somehow. Is there a bit of the API that I can hook into so that I can do this? -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
Obtain the SOAP envelope as DOM document or String
I'm writing some code to produce xml files that contain the XML SOAP envelope. I'm doing this because I'm creating random search requests for part of our testing/benchmarking etc... I can create the client stub, configure it, and execute the search request, but I need to grab the SOAP envelope somehow. Is there a bit of the API that I can hook into so that I can do this? -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Betr.: Obtain the SOAP envelope as DOM document or String
I'm writing some code to produce xml files that contain the XML SOAPenvelope. ... Is there a bit of the API that I can hook into so that I can do this? You can create a handler and add it to a desired Phase in the axis2.xml Using the calling getEnvelope().toString() on the MessageContext will get you the what you want. Check out the sample application axis2-1.4\samples\userguide\src\userguide\loggingmodule which does the same thing. -Arien === The information contained in this message and its attachments, if any, is confidential and privileged. It may be read, copied and used only by the intended recipient. If you have received this message in error, please contact the sender immediately by return e-mail and please in that case delete this message and its attachments, if any, without disclosure to any third party/person. The company does not accept liability for any errors or omissions in this message or its attachments, if any. The company does not guarantee that the integrity of this message or its attachments, if any, has been maintained or that this message or its attachments, if any, are free of viruses, interceptions or interference. Any recipient of this message or of its attachments, if any, is responsible for maintaining adequate protection-measures of its own systems against any incidents. ===
Re: Obtain the SOAP envelope as DOM document or String
use toString method. thanks, Amila. On Tue, Nov 4, 2008 at 6:42 AM, Matt Friedman [EMAIL PROTECTED]wrote: I'm writing some code to produce xml files that contain the XML SOAP envelope. I'm doing this because I'm creating random search requests for part of our testing/benchmarking etc... I can create the client stub, configure it, and execute the search request, but I need to grab the SOAP envelope somehow. Is there a bit of the API that I can hook into so that I can do this? -- -- Matt Friedman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/