RE: [Axis2] MTOM binary content
XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(inputFile)); OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXOMBuilder(OMAbstractFactory.getOMFactory(), parser); OMElement xmlDocElement = builder.getDocumentElement(); This assumes that inputFile is a java.io.File. This code can be found at: http://ws.apache..org/axis2/0_95/OMTutorial.html -Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 6:36 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] MTOM binary content Hi Ajith, thanks for your reply. My questions, actually, is: In the MTOM sample application, the client has this metho private OMElement createEnvelope(String fileName) throws Exception { DataHandler expectedDH; OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace omNs = fac.createOMNamespace(http://localhost/my, my); OMElement data = "" omNs); OMElement image = fac.createOMElement(image, omNs); Image expectedImage; expectedImage = new ImageIO() .loadImage(new FileInputStream(inputFile)); ImageDataSource dataSource = new ImageDataSource(test.jpg, expectedImage); expectedDH = new DataHandler(dataSource); OMText textData = fac.createOMText(expectedDH, true); image.addChild(textData); OMElement imageName = fac.createOMElement(fileName, omNs); if (fileName != null) { imageName.setText(fileName); } //OMElement wrap = fac.createOMElement(wrap,omNs); // data.addChild(image); data.addChild(imageName); data.addChild(image); //data.addChild(wrap); return data; } If I need to send something different from an image, what function should I call instead of Image expectedImage; expectedImage = new ImageIO().loadImage(new FileInputStream(inputFile)); FileOutputStream imageOutStream = new FileOutputStream(fileName); new ImageIO().saveImage(image/jpeg, actualObject, imageOutStream); ? And on the server side, what function should I call instead of Image actualObject = new ImageIO().loadImage(actualDH.getDataSource() ..getInputStream()); ? Thanks, Michele Ajith Ranabahu wrote: Hi, As far as the content is concerned the zip file is a binary file just like the image file. All you have to do is read the file through a file input stream and then create a new DataSource using that inputstream. Ajith On 5/4/06, Michele Mazzucco [EMAIL PROTECTED] wrote: Hi all, the tutorial show how to send images with MTOM, but how can I send binary files with MTOM (say .zip files)? Thanks in advance, Michele -- Ajith Ranabahu This e-mail and any files transmitted with it are intended solely for the use of the entity or individual(s) to whom they are addressed and not for reliance upon by unintended recipients. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail and any files transmitted are strictly prohibited. If you have received this e-mail in error please delete the entire email and immediately notify us by email to the sender or by telephone to the AOC main office number, (404) 656-5171. Thank you.
RE: [Axis2] MTOM binary content
My solution only loads binary content into an OMElement (not really my solution... just copied and pasted from the online docs). For MTOM compliance see http://ws.apache.org/axis2/0_95/mtom-guide.html -Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 7:38 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] MTOM binary content Hi Micheal, thanks for your reply. Is your solution MTOM compliant? Michael Robinson wrote: XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(inputFile)); OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXOMBuilder(OMAbstractFactory.getOMFactory() , parser); OMElement xmlDocElement = builder.getDocumentElement(); This assumes that inputFile is a java.io.File. This code can be found at: *MailScanner has detected a possible fraud attempt from ws.apache.org claiming to be* http://ws.apache..org/axis2/0_95/OMTutorial.html http://ws.apache.org/axis2/0_95/OMTutorial.html -Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 6:36 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] MTOM binary content Hi Ajith, thanks for your reply. My questions, actually, is: In the MTOM sample application, the client has this metho private OMElement createEnvelope(String fileName) throws Exception { DataHandler expectedDH; OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace omNs = fac.createOMNamespace(http://localhost/my;, my); OMElement data = fac.createOMElement(mtomSample, omNs); OMElement image = fac.createOMElement(image, omNs); Image expectedImage; expectedImage = new ImageIO() .loadImage(new FileInputStream(inputFile)); ImageDataSource dataSource = new ImageDataSource(test.jpg, expectedImage); expectedDH = new DataHandler(dataSource); OMText textData = fac.createOMText(expectedDH, true); image.addChild(textData); OMElement imageName = fac.createOMElement(fileName, omNs); if (fileName != null) { imageName.setText(fileName); } //OMElement wrap = fac.createOMElement(wrap,omNs); //data.addChild(image); data.addChild(imageName); data.addChild(image); //data.addChild(wrap); return data; } If I need to send something different from an image, what function should I call instead of Image expectedImage; expectedImage = new ImageIO().loadImage(new FileInputStream(inputFile)); FileOutputStream imageOutStream = new FileOutputStream(fileName); new ImageIO().saveImage(image/jpeg, actualObject, imageOutStream); ? And on the server side, what function should I call instead of Image actualObject = new ImageIO().loadImage(actualDH.getDataSource() ..getInputStream()); ? Thanks, Michele Ajith Ranabahu wrote: Hi, As far as the content is concerned the zip file is a binary file just like the image file. All you have to do is read the file through a file input stream and then create a new DataSource using that inputstream. Ajith On 5/4/06, Michele Mazzucco [EMAIL PROTECTED] wrote: Hi all, the tutorial show how to send images with MTOM, but how can I send binary files with MTOM (say .zip files)? Thanks in advance, Michele -- Ajith Ranabahu * This e-mail and any files transmitted with it are intended solely for the use of the entity or individual(s) to whom they are addressed and not for reliance upon by unintended recipients. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail and any files transmitted are strictly prohibited. If you have received this e-mail in error please delete the entire email and immediately notify us by email to the sender or by telephone to the AOC main office number, (404) 656-5171. Thank you. *
RE: [Axis2] MTOM binary content
Instead of the ImageDataSource used in the online example try it with the ByteArrayDataSource to load your binary content. There is a constructor that takes a byte[] that works very nicely. API docs for this class are at: http://ws.apache.org/commons/axiom/apidocs/index.html -Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 9:35 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] MTOM binary content Micheal, my question comes from there, since the sample shown at http://ws.apache.org/axis2/0_95/mtom-guide.html loads and sends jpg files using the org.apache.axis2.attachments.utils classes, while it seems there's nothing similar to handle other formats. Michele Michael Robinson wrote: My solution only loads binary content into an OMElement (not really my solution... just copied and pasted from the online docs). For MTOM compliance see http://ws.apache.org/axis2/0_95/mtom-guide.html -Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 7:38 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] MTOM binary content Hi Micheal, thanks for your reply. Is your solution MTOM compliant? Michael Robinson wrote: XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(inputFile)); OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXOMBuilder(OMAbstractFactory.getOMFactory() , parser); OMElement xmlDocElement = builder.getDocumentElement(); This assumes that inputFile is a java.io.File. This code can be found at: *MailScanner has detected a possible fraud attempt from ws.apache.org claiming to be* http://ws.apache..org/axis2/0_95/OMTutorial.html http://ws.apache.org/axis2/0_95/OMTutorial.html -Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 6:36 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] MTOM binary content Hi Ajith, thanks for your reply. My questions, actually, is: In the MTOM sample application, the client has this metho private OMElement createEnvelope(String fileName) throws Exception { DataHandler expectedDH; OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace omNs = fac.createOMNamespace(http://localhost/my;, my); OMElement data = fac.createOMElement(mtomSample, omNs); OMElement image = fac.createOMElement(image, omNs); Image expectedImage; expectedImage = new ImageIO() .loadImage(new FileInputStream(inputFile)); ImageDataSource dataSource = new ImageDataSource(test.jpg, expectedImage); expectedDH = new DataHandler(dataSource); OMText textData = fac.createOMText(expectedDH, true); image.addChild(textData); OMElement imageName = fac.createOMElement(fileName, omNs); if (fileName != null) { imageName.setText(fileName); } //OMElement wrap = fac.createOMElement(wrap,omNs); //data.addChild(image); data.addChild(imageName); data.addChild(image); //data.addChild(wrap); return data; } If I need to send something different from an image, what function should I call instead of Image expectedImage; expectedImage = new ImageIO().loadImage(new FileInputStream(inputFile)); FileOutputStream imageOutStream = new FileOutputStream(fileName); new ImageIO().saveImage(image/jpeg, actualObject, imageOutStream); ? And on the server side, what function should I call instead of Image actualObject = new ImageIO().loadImage(actualDH.getDataSource() ..getInputStream()); ? Thanks, Michele Ajith Ranabahu wrote: Hi, As far as the content is concerned the zip file is a binary file just like the image file. All you have to do is read the file through a file input stream and then create a new DataSource using that inputstream. Ajith On 5/4/06, Michele Mazzucco [EMAIL PROTECTED] wrote: Hi all, the tutorial show how to send images with MTOM, but how can I send binary files with MTOM (say .zip files)? Thanks in advance, Michele -- Ajith Ranabahu * This e-mail and any files transmitted with it are intended solely for the use of the entity or individual(s) to whom they are addressed and not for reliance upon by unintended recipients. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail and any files transmitted are strictly prohibited. If you have received this e-mail
RE: [Axis2] How to get MessageContext
Does this mean that the example at http://ws.apache.org/axis2/0_95/mtom-guide.html does not work? The section titled SOAP with Attachments (SwA) with Axis2 has a code fragment that seems to use an init method to set the MessageContext instead of a setter method. Is this incorrect? -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 7:47 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] How to get MessageContext An example for such a service impl class is here : [1] Thanks, Ruchith [1] https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/se curity/interop/org/apache/axis2/oasis/ping/PingPortSkeleton.java On 5/3/06, Deepal Jayasinghe [EMAIL PROTECTED] wrote: ya , just add that method in to service impl class and that method will be called using java reflection. So you can keep a ref to operatoionConetx in side your class instance. And when you get the actual method call you can access that. Michele Mazzucco wrote: Hi Deepal, could you be more explicit please? Do you mean public void setOperationContext(OperationContext opctx) { // empty content } (and I don't need to call it)? Michele Deepal Jayasinghe wrote: you have to add a method called setOperationContext(OperationContext opctx) { } in to your sevrice impl class , and that method will be called whenever you get a req . Using opctx you can get the messagecontext Michele Mazzucco wrote: Hi all, how can I get the MessageContext from a OMelement? (I'm using the primary interface APIs, that is my methods have the following signature: OMelement operation(OMElement arg1, OMElelent arg2,..., OMElement argN) { ... } ) Thanks, Michele -- Thanks, Deepal ~Future is Open~ - This e-mail and any files transmitted with it are intended solely for the use of the entity or individual(s) to whom they are addressed and not for reliance upon by unintended recipients. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail and any files transmitted are strictly prohibited. If you have received this e-mail in error please delete the entire email and immediately notify us by email to the sender or by telephone to the AOC main office number, (404) 656-5171. Thank you.
[axis2] SwA example
Im attempting to process a request from a SwA client using Axis2 but am having some problems with the sample at http://ws.apache.org/axis2/0_95/mtom-guide.html#3 MIMEHelper attachments = (MIMEHelper)msgcts.getProperty(MIMEHelper.ATTACHMENTS); MIMEHelper.ATTACHMENTS seems to not exist. What is the string equivalent of this constant? Is there any other examples of accessing SwA messges? This e-mail and any files transmitted with it are intended solely for the use of the entity or individual(s) to whom they are addressed and not for reliance upon by unintended recipients. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail and any files transmitted are strictly prohibited. If you have received this e-mail in error please delete the entire email and immediately notify us by email to the sender or by telephone to the AOC main office number, (404) 656-5171. Thank you.
RE: [axis2] SwA example
Ok, thanks for the MTOMConstants class reference. Is the Attachments object that you created just an example or is that also a part of some API? I am a little confused about what exactly will be returned from the msgcts.getProperty(MTOMConstants.ATTACHMENTS). -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 12:12 PM To: axis-user@ws.apache.org Subject: Re: [axis2] SwA example Attachments attachment = (Attachments) msgcts.getProperty(MTOMConstants.ATTACHMENTS); thanks, dims On 4/26/06, Michael Robinson [EMAIL PROTECTED] wrote: I'm attempting to process a request from a SwA client using Axis2 but am having some problems with the sample at http://ws.apache.org/axis2/0_95/mtom-guide.html#3 MIMEHelper attachments = (MIMEHelper)msgcts.getProperty(MIMEHelper.ATTACHMENTS); MIMEHelper.ATTACHMENTS seems to not exist. What is the string equivalent of this constant? Is there any other examples of accessing SwA messges? This e-mail and any files transmitted with it are intended solely for the use of the entity or individual(s) to whom they are addressed and not for reliance upon by unintended recipients. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail and any files transmitted are strictly prohibited. If you have received this e-mail in error please delete the entire email and immediately notify us by email to the sender or by telephone to the AOC main office number, (404) 656-5171. Thank you. -- Davanum Srinivas : http://wso2.com/blogs/
RE: [axis2] SwA example
Thanks for your help. I just downloaded Axis2 RC3 and now have org.apache.axiom.attachments.Attachments. Before I was using RC1 and could not find this class. Thanks again. -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 1:07 PM To: axis-user@ws.apache.org Subject: Re: [axis2] SwA example It will return org.apache.axiom.attachments.Attachments. See the test case: http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/int egration/test/org/apache/axis2/swa/ thanks, dims On 4/26/06, Michael Robinson [EMAIL PROTECTED] wrote: Ok, thanks for the MTOMConstants class reference. Is the Attachments object that you created just an example or is that also a part of some API? I am a little confused about what exactly will be returned from the msgcts.getProperty(MTOMConstants.ATTACHMENTS). -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 12:12 PM To: axis-user@ws.apache.org Subject: Re: [axis2] SwA example Attachments attachment = (Attachments) msgcts.getProperty(MTOMConstants.ATTACHMENTS); thanks, dims On 4/26/06, Michael Robinson [EMAIL PROTECTED] wrote: I'm attempting to process a request from a SwA client using Axis2 but am having some problems with the sample at http://ws.apache.org/axis2/0_95/mtom-guide.html#3 MIMEHelper attachments = (MIMEHelper)msgcts.getProperty(MIMEHelper.ATTACHMENTS); MIMEHelper.ATTACHMENTS seems to not exist. What is the string equivalent of this constant? Is there any other examples of accessing SwA messges? This e-mail and any files transmitted with it are intended solely for the use of the entity or individual(s) to whom they are addressed and not for reliance upon by unintended recipients. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail and any files transmitted are strictly prohibited. If you have received this e-mail in error please delete the entire email and immediately notify us by email to the sender or by telephone to the AOC main office number, (404) 656-5171. Thank you. -- Davanum Srinivas : http://wso2.com/blogs/ -- Davanum Srinivas : http://wso2.com/blogs/
RE: [Axis2] Axis2 class loader and RC1
I have downloaded the axis2.0 RC1 distribution and still have a problem with the classloader being very slow and in some cases failing to find the correct class file(s). I have a jar file of my own that contains JAXB 2.0 compiled schema objects. I have tested this jar file outside of Axis2 and everything is fine. When I package a project for axis deployment and include the jar(s) inside the .aar files lib directory I get class not found errors. I also tested what a previous post said about including the jars in Tomcats global classloading path (and as the previous post mentioned, not the correct place) and this solved the problem. Any suggestions? From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 1:12 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] Axis2 class loader and RC1 Download locations : * binary and source distributions - http://people.apache.org/~deepal/axis2/1.0-RC1/ * jars http://people.apache.org/~deepal/maven/ws/axis2/jars/ * mars (addressing and security) http://people.apache.org/~deepal/maven/ws/axis2/mars/ HTH, Robert http://www.braziloutsource.com/ On 4/20/06, Mar, Kheng Kok [EMAIL PROTECTED] wrote: I have the same problem that Robert has in 0.95 as well. And by the way why is RC1 not available through Axis2 main project page as previous releases. And also, from the link deepal provided, I don't seem to see the security module. Rgds Kheng Kok -Original Message- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]] Sent: Monday, April 17, 2006 7:05 PM To: axis-user@ws.apache.org Subject: Re: Axis2 class loader I think it is fixed now , Axis2 1.0 RC1 is available to download , so why dont you have a look at that :) Hudson Robert wrote: Hello all, I (think) I've got an issue with the classloader in axis2-0.94 When I try and run sendReceive(request) on a ServiceClient object for the first time (since axis2 running inside tomcat) has been started the operation takes so long that I get a HTTP timeout. When I then run the same command again it works fine. After doing some debugging I came to the conclusion that it was the Axis2 classloader. My web service uses quite a few jaxb jars and it is the loading of these that takes time. When I specify these inside tomcat (commons/lib - not the correct place I know but it works) there is no delay and the client works fine from the start. I've also tested this code outside of Axis2 and it works fine whether the jars are in the webapp lib directory or within tomcat. Does it sounds like I'm right? Is this issue fixed in later versions of Axis2? Will there be some way to initialise a webservice before a client call is made (like you can with servlets) so that this kind of issue can be dealt with? Cheers Rob The information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s).The information in this communication may be confidential and/or legally privileged.Nothing in this e-mail is intended to conclude a contract on behalf of QinetiQ or make QinetiQ subject to any other legally binding commitments, unless the e-mail contains an express statement to the contrary or incorporates a formal Purchase Order. For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. Emails and other electronic communication with QinetiQ may be monitored and recorded for business purposes including security, audit and archival purposes.Any response to this email indicates consent to this. Telephone calls to QinetiQ may be monitored or recorded for quality control, security and other business purposes. -- Thanks, Deepal . ~Future is Open~ This e-mail and any files transmitted with it are intended solely for the use of the entity or individual(s) to whom they are addressed and not for reliance upon by unintended recipients. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail and any files transmitted are strictly prohibited. If you have received this e-mail in error please delete the entire email and immediately notify us by email to the sender or by telephone to the AOC main office number, (404) 656-5171. Thank you.
RE: [Axis2] Axis2 class loader and RC1
Deploying the service as a directory solved most of the problems. Thanks! The jar(s) load MUCH faster now. Is it possible that the .aar file access will ever be more efficient? I do still have one problem. The project is currently using the JAXB 2.0 RI. It seems that the Axis classloader will not load the needed jar files even if they are in the lib directory ( of a service deployed as a directory). Will axis load all jar(s) in the lib directory of a service or is it selective base on what's inside the jar files? We are currently using Tomcat 5.5.x. If I have to put the JAXB jars somewhere else what would be the best location to avoid conflicts? I'm guessing my options are: axis2/WEB-INF/lib:: Verified that this works axis2/WEB-INF/services/projectName/lib:: NOT working {catalina_home}/shared/lib :: works {catalina_home}/common/lib :: works -Original Message- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: Friday, April 21, 2006 8:40 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] Axis2 class loader and RC1 Hi Michael; In Axis2 you can deploy service as directory as well, so please try to deploy your service as a directory. The structure of that same as and .aar file and you can have third party lib there as well. In the case of .aar case class loading can be slow due to its reading mechanism and we are not recommended to use that if you have large number of third party jars. SO your service directory will look like follows services/foo META-INF services.xml lib absd.jar .jar org apache axis . Directoy based deployment is not slow as archive based deployment. Michael Robinson wrote: I have downloaded the axis2.0 RC1 distribution and still have a problem with the classloader being very slow and in some cases failing to find the correct class file(s). I have a jar file of my own that contains JAXB 2.0 compiled schema objects. I have tested this jar file outside of Axis2 and everything is fine. When I package a project for axis deployment and include the jar(s) inside the .aar file's lib directory I get class not found errors. I also tested what a previous post said about including the jars in Tomcat's global classloading path (and as the previous post mentioned, not the correct place) and this solved the problem. Any suggestions? *From:* robert lazarski [mailto:[EMAIL PROTECTED] *Sent:* Thursday, April 20, 2006 1:12 PM *To:* axis-user@ws.apache.org *Subject:* Re: [Axis2] Axis2 class loader and RC1 Download locations : * binary and source distributions - http://people.apache.org/~deepal/axis2/1.0-RC1/ http://people.apache.org/%7Edeepal/axis2/1.0-RC1/ * jars http://people.apache.org/~deepal/maven/ws/axis2/jars/ http://people.apache.org/%7Edeepal/maven/ws/axis2/jars/ * mars (addressing and security) http://people.apache.org/%7Edeepal/maven/ws/axis2/mars/ _http://people.apache.org/~deepal/maven/ws/axis2/mars/ http://people.apache.org/%7Edeepal/maven/ws/axis2/mars/_ HTH, Robert http://www.braziloutsource.com/ On 4/20/06, *Mar, Kheng Kok* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have the same problem that Robert has in 0.95 as well. And by the way why is RC1 not available through Axis2 main project page as previous releases. And also, from the link deepal provided, I don't seem to see the security module. Rgds Kheng Kok -Original Message- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] Sent: Monday, April 17, 2006 7:05 PM To: axis-user@ws.apache.org mailto:axis-user@ws.apache.org Subject: Re: Axis2 class loader I think it is fixed now , Axis2 1.0 RC1 is available to download , so why dont you have a look at that :) Hudson Robert wrote: Hello all, I (think) I've got an issue with the classloader in axis2-0.94 When I try and run sendReceive(request) on a ServiceClient object for the first time (since axis2 running inside tomcat) has been started the operation takes so long that I get a HTTP timeout. When I then run the same command again it works fine. After doing some debugging I came to the conclusion that it was the Axis2 classloader. My web service uses quite a few jaxb jars and it is the loading of these that takes time. When I specify these inside tomcat (commons/lib - not the correct place I know but it works) there is no delay and the client works fine from the start. I've also tested this code outside of Axis2 and it works fine whether the jars are in the webapp lib directory or within tomcat. Does it sounds like I'm right? Is this issue fixed in later versions of Axis2? Will there be some way to initialise a webservice before a client call is made (like you can with servlets) so that this kind of issue can be dealt with? Cheers Rob The information contained in this E-Mail
RE: Axis2 class loader
I have the same issue using Axis2 0.94 with axis2.war file deployed in Tomcat5.5.x. The service consists of numerous jar files for JAXB, Hibernate, etc. The first time that the service is invoked via a client it processes for over 30 minutes! (I was able to not let my test client timeout by using the saaj apis to write it). I see that 0.95 is available for download but do not see 1.0 RC1 anywhere. Does the 1.0 have to be built from source? -Original Message- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 7:05 AM To: axis-user@ws.apache.org Subject: Re: Axis2 class loader I think it is fixed now , Axis2 1.0 RC1 is available to download , so why dont you have a look at that :) Hudson Robert wrote: Hello all, I (think) I've got an issue with the classloader in axis2-0.94 When I try and run sendReceive(request) on a ServiceClient object for the first time (since axis2 running inside tomcat) has been started the operation takes so long that I get a HTTP timeout. When I then run the same command again it works fine. After doing some debugging I came to the conclusion that it was the Axis2 classloader. My web service uses quite a few jaxb jars and it is the loading of these that takes time. When I specify these inside tomcat (commons/lib - not the correct place I know but it works) there is no delay and the client works fine from the start. I've also tested this code outside of Axis2 and it works fine whether the jars are in the webapp lib directory or within tomcat. Does it sounds like I'm right? Is this issue fixed in later versions of Axis2? Will there be some way to initialise a webservice before a client call is made (like you can with servlets) so that this kind of issue can be dealt with? Cheers Rob The information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). The information in this communication may be confidential and/or legally privileged. Nothing in this e-mail is intended to conclude a contract on behalf of QinetiQ or make QinetiQ subject to any other legally binding commitments, unless the e-mail contains an express statement to the contrary or incorporates a formal Purchase Order. For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. Emails and other electronic communication with QinetiQ may be monitored and recorded for business purposes including security, audit and archival purposes. Any response to this email indicates consent to this. Telephone calls to QinetiQ may be monitored or recorded for quality control, security and other business purposes. -- Thanks, Deepal . ~Future is Open~ - This e-mail and any files transmitted with it are intended solely for the use of the entity or individual(s) to whom they are addressed and not for reliance upon by unintended recipients. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail and any files transmitted are strictly prohibited. If you have received this e-mail in error please delete the entire email and immediately notify us by email to the sender or by telephone to the AOC main office number, (404) 656-5171. Thank you.
RE: Can you default the SOAPAction as being ?
I have had a similar issue when trying to use a JAXP/SAAJ client to call an Axis service. By programmatically setting the SOAPAction MIME header from the client I was able to make it work. Not what youre looking for but thought it might help. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 19, 2006 2:19 PM To: axis-user@ws.apache.org Subject: Re: Can you default the SOAPAction as being ? Robert, Thanks for the reply. What I was hoping to do was default the value of the SOAPAction because my client is not sending it. Axis blows up as a result. Joshua robert [EMAIL PROTECTED] 04/19/2006 02:16 PM Please respond to axis-user To:axis-user@ws.apache.org cc: Subject:Re: Can you default the SOAPAction as being ? Sure, soap action can be . However, that typically is only valid for a wsdl using RPC encoded style. I've never seen Doc / lit wsdl without a soap action. HTH, Robert http://www.braziloutsource.com/ Em Quarta 19 Abril 2006 15:08, o [EMAIL PROTECTED] escreveu: Can you configure axis to default the SOAPAction as being ? I have a client which is sending me a message without the SOAPAction header. Joshua * This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. * -- This e-mail and any files transmitted with it are intended solely for the use of the entity or individual(s) to whom they are addressed and not for reliance upon by unintended recipients. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail and any files transmitted are strictly prohibited. If you have received this e-mail in error please delete the entire email and immediately notify us by email to the sender or by telephone to the AOC main office number, (404) 656-5171. Thank you.
[Axis2] Correct location for third party lib(s)
What is the correct location for third party libraries within an Axis 2 service? Should these be packaged within the .aar file? I seem to remember reading this information somewhere in the documentation but was unable to find it today. If it does in fact exist could someone please point me in the correct direction? This e-mail and any files transmitted with it are intended solely for the use of the entity or individual(s) to whom they are addressed and not for reliance upon by unintended recipients. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail and any files transmitted are strictly prohibited. If you have received this e-mail in error please delete the entire email and immediately notify us by email to the sender or by telephone to the AOC main office number, (404) 656-5171. Thank you.