Re : Re : Re : Re : ClassCastException when enabling MTOM
Hi Andreas, I've started to look at the source code but unfortunatly, Axis2 code is tighly dependent on OMStAXWrapper especially in ConverterUtil.java. I will try to checkout Axiom code and see if there is a way to avoid that. Also, modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Base64Binary.java modules/adb/src/org/apache/axis2/databinding/types/xsd/Base64Binary.java look like generated code. Do you confirm? Regards, Julien De : Julien HENRY À : axis-user@ws.apache.org Envoyé le : Mercredi, 3 Juin 2009, 11h48mn 53s Objet : Re : Re : Re : ClassCastException when enabling MTOM OK, let me try. I'll keep you informed of my progress. Regards, Julien De : Andreas Veithen À : axis-user@ws.apache.org Envoyé le : Mardi, 2 Juin 2009, 23h51mn 34s Objet : Re: Re : Re : ClassCastException when enabling MTOM Julien, I added an analysis of the problem the the JIRA issue. If you feel confident enough, then you can try do the required changes and submit a patch. Andreas On Tue, Jun 2, 2009 at 18:06, Julien HENRY wrote: > Done: AXIS2-4363 > > I can definitly help. Let me know what you need. > > Regards, > > Julien > > > De : Andreas Veithen > À : axis-user@ws.apache.org > Envoyé le : Mardi, 2 Juin 2009, 17h30mn 16s > Objet : Re: Re : ClassCastException when enabling MTOM > > Yes, please go ahead an open a JIRA issue. > > BTW, I have a pretty clear idea where the problem is located. It's in > the stylesheet used by codegen for ADB. Are you motivated to help us > to fix it and test the change? > > Andreas > > On Tue, Jun 2, 2009 at 17:14, Julien HENRY wrote: >> Hi Andreas, >> >> Thanks for the tip. It works fine with log level > DEBUG. >> >> FYI I have tested with Axis2 1.5 and we still have the classcast exception >> when running in debug mode. >> >> Should I open a JIRA issue for tracking? >> >> Thanks, >> >> Julien >> >> >> De : Andreas Veithen >> À : axis-user@ws.apache.org >> Envoyé le : Mardi, 2 Juin 2009, 14h13mn 47s >> Objet : Re: ClassCastException when enabling MTOM >> >> Julien, >> >> Can you check if the problem disappears if you set the log level for >> org.apache.axiom to something higher than DEBUG? >> >> Andreas >> >> PS: If that question sounds strange to you, please have a look at the >> code in OMElementImpl#getXMLStreamReader; you will understand... >> >> On Tue, Jun 2, 2009 at 14:04, Julien HENRY wrote: >>> Hi everybody, >>> >>> When I try to enable MTOM for handling big attachments, I receive the >>> following error when using the generated client stub: >>> >>> java.lang.ClassCastException: >>> org.apache.axiom.om.util.OMXMLStreamReaderValidator cannot be cast to >>> org.apache.axiom.om.impl.llom.OMStAXWrapper >>> at >>> >>> >>> com.xxx.vaultwebservice.client.Vault_WebServiceStub$XXXBundleType$Factory.parse(Vault_WebServiceStub.java:21236) >>> at >>> >>> >>> com.xxx.vaultwebservice.client.Vault_WebServiceStub$DownloadXXXResponse$Factory.parse(Vault_WebServiceStub.java:56454) >>> at >>> >>> >>> com.xxx.vaultwebservice.client.Vault_WebServiceStub.fromOM(Vault_WebServiceStub.java:64390) >>> >>> I'm using Axis2 1.4.1 with following Maven dependencies: >>> >>> >>> org.apache.axis2 >>> axis2-kernel >>> 1.4.1 >>> >>> >>> org.apache.axis2 >>> axis2-adb >>> 1.4.1 >>> >>> >>> org.apache.ws.commons.axiom >>> axiom-api >>> 1.2.8 >>> >>> >>> org.apache.ws.commons.axiom >>> axiom-impl >>> 1.2.8 >>> >>> >>> wsdl4j >>> wsdl4j >>> 1.6.2 >>> >>> >>> Any idea of what is the issue? >>> >>> Thanks >>> >>> Julien >>> >>> >> >> > >
Content-Length header not set
Hi, I'm trying to get size of the big attachment I'm downloading using Axis2. Axis2 is used on both side (client and server). The issue is the server is not sending content-size header so I can't estimate the progress of my download. Here are the headers: DEBUG 18:30:51.184 c.t.i.p.c.service.impl.HttpConnection- Open connection to xx.sud.mycompany.fr:8085 DEBUG 18:30:51.199 httpclient.wire.header - >> "POST /project-vault-local/services/VaultService HTTP/1.1[\r][\n]" DEBUG 18:30:51.199 o.a.commons.httpclient.HttpMethodBase- Adding Host request header DEBUG 18:30:51.199 httpclient.wire.header - >> "Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_8E481CB0C6ECBADFA21244478651319; type="application/xop+xml"; start="<0.urn:uuid:8e481cb0c6ecbadfa21244478651...@apache.org>"; start-info="text/xml"[\r][\n]" DEBUG 18:30:51.199 httpclient.wire.header - >> "SOAPAction: "downloadPPF"[\r][\n]" DEBUG 18:30:51.230 httpclient.wire.header - >> "User-Agent: Axis2[\r][\n]" DEBUG 18:30:51.230 httpclient.wire.header - >> "Host: xx.sud.mycompany.fr:8085[\r][\n]" DEBUG 18:30:51.230 httpclient.wire.header - >> "Transfer-Encoding: chunked[\r][\n]" DEBUG 18:30:51.230 httpclient.wire.header - >> "[\r][\n]" DEBUG 18:30:51.230 o.a.c.h.methods.EntityEnclosingMethod- Request body sent DEBUG 18:30:51.262 httpclient.wire.header - << "HTTP/1.1 200 OK[\r][\n]" DEBUG 18:30:51.262 httpclient.wire.header - << "HTTP/1.1 200 OK[\r][\n]" DEBUG 18:30:51.262 httpclient.wire.header - << "Server: Apache-Coyote/1.1[\r][\n]" DEBUG 18:30:51.262 httpclient.wire.header - << "Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_2A7DE541ADE50F0A3C1244478647998; type="application/xop+xml"; start="<0.urn:uuid:2a7de541ade50f0a3c1244478647...@apache.org>"; start-info="text/xml"[\r][\n]" DEBUG 18:30:51.262 httpclient.wire.header - << "Transfer-Encoding: chunked[\r][\n]" DEBUG 18:30:51.262 httpclient.wire.header - << "Date: Mon, 08 Jun 2009 16:30:47 GMT[\r][\n]" DEBUG 18:30:51.262 httpclient.wire.header - << "[\r][\n]" DEBUG 18:31:12.485 httpclient.wire.header - << "[\r][\n]" I have read [1] that it may be solved by disabling chunked transfert encoding and I also tried by forcing to HTTP 1.0: stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE); stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.HTTP_PROTOCOL_VERSION, org.apache.axis2.transport.http.HTTPConstants.HEADER_PROTOCOL_10); But the result is not better: DEBUG 18:36:44.294 o.a.c.h.params.DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.0 DEBUG 18:36:44.294 c.t.i.p.c.service.impl.HttpConnection- Open connection to x.sud.mycompany.fr:8085 DEBUG 18:36:44.326 httpclient.wire.header - >> "POST /project-vault-local/services/VaultService HTTP/1.0[\r][\n]" DEBUG 18:36:44.326 o.a.commons.httpclient.HttpMethodBase- Adding Host request header DEBUG 18:36:44.341 httpclient.wire.header - >> "Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_A1E117B6C0A256F56A1244479004429; type="application/xop+xml"; start="<0.urn:uuid:a1e117b6c0a256f56a1244479004...@apache.org>"; start-info="text/xml"[\r][\n]" DEBUG 18:36:44.341 httpclient.wire.header - >> "SOAPAction: "downloadPPF"[\r][\n]" DEBUG 18:36:44.341 httpclient.wire.header - >> "User-Agent: Axis2[\r][\n]" DEBUG 18:36:44.341 httpclient.wire.header - >> "Host: x1.sud.mycompany.fr:8085[\r][\n]" DEBUG 18:36:44.341 httpclient.wire.header - >> "Content-Length: 840[\r][\n]" DEBUG 18:36:44.341 httpclient.wire.header - >> "[\r][\n]" DEBUG 18:36:44.341 o.a.c.h.methods.EntityEnclosingMethod- Request body sent DEBUG 18:36:44.373 httpclient.wire.header - << "HTTP/1.1 200 OK[\r][\n]" DEBUG 18:36:44.373 httpclient.wire.header - << "HTTP/1.1 200 OK[\r][\n]" DEBUG 18:36:44.373 httpclient.wire.header - << "Server: Apache-Coyote/1.1[\r][\n]" DEBUG 18:36:44.373 httpclient.wire.header - << "Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_2A7DE541ADE50F0A3C1244479000711; type="application/xop+xml"; start="<0.urn:uuid:2a7de541ade50f0a3c1244479000...@apache.org>"; start-info="text/xml"[\r][\n]" DEBUG 18:36:44.373 httpclient.wire.header - << "Date: Mon, 08 Jun 2009 16:36:40 GMT[\r][\n]" DEBUG 18:36:44.373 httpclient.wire.header - << "Connection: close[\r][\n]" DEBUG 18:3
Re : Re : Re : ClassCastException when enabling MTOM
OK, let me try. I'll keep you informed of my progress. Regards, Julien De : Andreas Veithen À : axis-user@ws.apache.org Envoyé le : Mardi, 2 Juin 2009, 23h51mn 34s Objet : Re: Re : Re : ClassCastException when enabling MTOM Julien, I added an analysis of the problem the the JIRA issue. If you feel confident enough, then you can try do the required changes and submit a patch. Andreas On Tue, Jun 2, 2009 at 18:06, Julien HENRY wrote: > Done: AXIS2-4363 > > I can definitly help. Let me know what you need. > > Regards, > > Julien > > > De : Andreas Veithen > À : axis-user@ws.apache.org > Envoyé le : Mardi, 2 Juin 2009, 17h30mn 16s > Objet : Re: Re : ClassCastException when enabling MTOM > > Yes, please go ahead an open a JIRA issue. > > BTW, I have a pretty clear idea where the problem is located. It's in > the stylesheet used by codegen for ADB. Are you motivated to help us > to fix it and test the change? > > Andreas > > On Tue, Jun 2, 2009 at 17:14, Julien HENRY wrote: >> Hi Andreas, >> >> Thanks for the tip. It works fine with log level > DEBUG. >> >> FYI I have tested with Axis2 1.5 and we still have the classcast exception >> when running in debug mode. >> >> Should I open a JIRA issue for tracking? >> >> Thanks, >> >> Julien >> >> >> De : Andreas Veithen >> À : axis-user@ws.apache.org >> Envoyé le : Mardi, 2 Juin 2009, 14h13mn 47s >> Objet : Re: ClassCastException when enabling MTOM >> >> Julien, >> >> Can you check if the problem disappears if you set the log level for >> org.apache.axiom to something higher than DEBUG? >> >> Andreas >> >> PS: If that question sounds strange to you, please have a look at the >> code in OMElementImpl#getXMLStreamReader; you will understand... >> >> On Tue, Jun 2, 2009 at 14:04, Julien HENRY wrote: >>> Hi everybody, >>> >>> When I try to enable MTOM for handling big attachments, I receive the >>> following error when using the generated client stub: >>> >>> java.lang.ClassCastException: >>> org.apache.axiom.om.util.OMXMLStreamReaderValidator cannot be cast to >>> org.apache.axiom.om.impl.llom.OMStAXWrapper >>> at >>> >>> >>> com.xxx.vaultwebservice.client.Vault_WebServiceStub$XXXBundleType$Factory.parse(Vault_WebServiceStub.java:21236) >>> at >>> >>> >>> com.xxx.vaultwebservice.client.Vault_WebServiceStub$DownloadXXXResponse$Factory.parse(Vault_WebServiceStub.java:56454) >>> at >>> >>> >>> com.xxx.vaultwebservice.client.Vault_WebServiceStub.fromOM(Vault_WebServiceStub.java:64390) >>> >>> I'm using Axis2 1.4.1 with following Maven dependencies: >>> >>> >>> org.apache.axis2 >>> axis2-kernel >>> 1.4.1 >>> >>> >>> org.apache.axis2 >>> axis2-adb >>> 1.4.1 >>> >>> >>> org.apache.ws.commons.axiom >>> axiom-api >>> 1.2.8 >>> >>> >>> org.apache.ws.commons.axiom >>> axiom-impl >>> 1.2.8 >>> >>> >>> wsdl4j >>> wsdl4j >>> 1.6.2 >>> >>> >>> Any idea of what is the issue? >>> >>> Thanks >>> >>> Julien >>> >>> >> >> > >
Re : Re : ClassCastException when enabling MTOM
Done: AXIS2-4363 I can definitly help. Let me know what you need. Regards, Julien De : Andreas Veithen À : axis-user@ws.apache.org Envoyé le : Mardi, 2 Juin 2009, 17h30mn 16s Objet : Re: Re : ClassCastException when enabling MTOM Yes, please go ahead an open a JIRA issue. BTW, I have a pretty clear idea where the problem is located. It's in the stylesheet used by codegen for ADB. Are you motivated to help us to fix it and test the change? Andreas On Tue, Jun 2, 2009 at 17:14, Julien HENRY wrote: > Hi Andreas, > > Thanks for the tip. It works fine with log level > DEBUG. > > FYI I have tested with Axis2 1.5 and we still have the classcast exception > when running in debug mode. > > Should I open a JIRA issue for tracking? > > Thanks, > > Julien > > > De : Andreas Veithen > À : axis-user@ws.apache.org > Envoyé le : Mardi, 2 Juin 2009, 14h13mn 47s > Objet : Re: ClassCastException when enabling MTOM > > Julien, > > Can you check if the problem disappears if you set the log level for > org.apache.axiom to something higher than DEBUG? > > Andreas > > PS: If that question sounds strange to you, please have a look at the > code in OMElementImpl#getXMLStreamReader; you will understand... > > On Tue, Jun 2, 2009 at 14:04, Julien HENRY wrote: >> Hi everybody, >> >> When I try to enable MTOM for handling big attachments, I receive the >> following error when using the generated client stub: >> >> java.lang.ClassCastException: >> org.apache.axiom.om.util.OMXMLStreamReaderValidator cannot be cast to >> org.apache.axiom.om.impl.llom.OMStAXWrapper >> at >> >> com.xxx.vaultwebservice.client.Vault_WebServiceStub$XXXBundleType$Factory.parse(Vault_WebServiceStub.java:21236) >> at >> >> com.xxx.vaultwebservice.client.Vault_WebServiceStub$DownloadXXXResponse$Factory.parse(Vault_WebServiceStub.java:56454) >> at >> >> com.xxx.vaultwebservice.client.Vault_WebServiceStub.fromOM(Vault_WebServiceStub.java:64390) >> >> I'm using Axis2 1.4.1 with following Maven dependencies: >> >> >> org.apache.axis2 >> axis2-kernel >> 1.4.1 >> >> >> org.apache.axis2 >> axis2-adb >> 1.4.1 >> >> >> org.apache.ws.commons.axiom >> axiom-api >> 1.2.8 >> >> >> org.apache.ws.commons.axiom >> axiom-impl >> 1.2.8 >> >> >> wsdl4j >> wsdl4j >> 1.6.2 >> >> >> Any idea of what is the issue? >> >> Thanks >> >> Julien >> >> > >
Re : ClassCastException when enabling MTOM
Hi Andreas, Thanks for the tip. It works fine with log level > DEBUG. FYI I have tested with Axis2 1.5 and we still have the classcast exception when running in debug mode. Should I open a JIRA issue for tracking? Thanks, Julien De : Andreas Veithen À : axis-user@ws.apache.org Envoyé le : Mardi, 2 Juin 2009, 14h13mn 47s Objet : Re: ClassCastException when enabling MTOM Julien, Can you check if the problem disappears if you set the log level for org.apache.axiom to something higher than DEBUG? Andreas PS: If that question sounds strange to you, please have a look at the code in OMElementImpl#getXMLStreamReader; you will understand... On Tue, Jun 2, 2009 at 14:04, Julien HENRY wrote: > Hi everybody, > > When I try to enable MTOM for handling big attachments, I receive the > following error when using the generated client stub: > > java.lang.ClassCastException: > org.apache.axiom.om.util.OMXMLStreamReaderValidator cannot be cast to > org.apache.axiom.om.impl.llom.OMStAXWrapper > at > com.xxx.vaultwebservice.client.Vault_WebServiceStub$XXXBundleType$Factory.parse(Vault_WebServiceStub.java:21236) > at > com.xxx.vaultwebservice.client.Vault_WebServiceStub$DownloadXXXResponse$Factory.parse(Vault_WebServiceStub.java:56454) > at > com.xxx.vaultwebservice.client.Vault_WebServiceStub.fromOM(Vault_WebServiceStub.java:64390) > > I'm using Axis2 1.4.1 with following Maven dependencies: > > > org.apache.axis2 > axis2-kernel > 1.4.1 > > > org.apache.axis2 > axis2-adb > 1.4.1 > > > org.apache.ws.commons.axiom > axiom-api > 1.2.8 > > > org.apache.ws.commons.axiom > axiom-impl > 1.2.8 > > > wsdl4j > wsdl4j > 1.6.2 > > > Any idea of what is the issue? > > Thanks > > Julien > >
ClassCastException when enabling MTOM
Hi everybody, When I try to enable MTOM for handling big attachments, I receive the following error when using the generated client stub: java.lang.ClassCastException: org.apache.axiom.om.util.OMXMLStreamReaderValidator cannot be cast to org.apache.axiom.om.impl.llom.OMStAXWrapper at com.xxx.vaultwebservice.client.Vault_WebServiceStub$XXXBundleType$Factory.parse(Vault_WebServiceStub.java:21236) at com.xxx.vaultwebservice.client.Vault_WebServiceStub$DownloadXXXResponse$Factory.parse(Vault_WebServiceStub.java:56454) at com.xxx.vaultwebservice.client.Vault_WebServiceStub.fromOM(Vault_WebServiceStub.java:64390) I'm using Axis2 1.4.1 with following Maven dependencies: org.apache.axis2 axis2-kernel 1.4.1 org.apache.axis2 axis2-adb 1.4.1 org.apache.ws.commons.axiom axiom-api 1.2.8 org.apache.ws.commons.axiom axiom-impl 1.2.8 wsdl4j wsdl4j 1.6.2 Any idea of what is the issue? Thanks Julien
Monitor download/upload progress when transferring big files
Hi all, Some WS methods I use are transferring big files. My client application is a Swing app and I would like to display a progress bar with possibly an estimated time left for the download and give the user the possibility to cancel the download/upload. Do you know how I can do that? Is there any code sample available. Thanks Julien
Display user WSDL with embedded Axis2
Hi all, I'm using Axis 2 (1.4.1) embedded inside my web application (like it is explained here: http://wso2.org/library/90). My service classes are generated from WSDL and I would like to display this WSDL (with updated port adress) when I browse to http://localhost:8080/mywebapp/services/MyService?wsdl Currently, I only get: Unable to generate WSDL 1.1 for this service If you wish Axis2 to automatically generate the WSDL 1.1, then please +set useOriginalwsdl as false in your services.xml I tried to copy the service.wsdl file everywhere in my WAR (root, META-INF, WEB-INF, ...) but I always receive the previous message. Can you tell me what I need to do to have my custom wsdl file picked up by axis2? Thanks Julien
Re : Re : Axis2 / Maven 2
Hi Karl, Did you read this document: http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing In substance Maven 2.0.x is not very clear about running both unit and integration testing. Choose the way you prefere but if you can keep only one module I suggest you do because multi-modules still don't play well with reporting plugins. Best regards, Julien - Message d'origine De : Karl Heinz Marbaise <[EMAIL PROTECTED]> À : axis-user@ws.apache.org Envoyé le : Mercredi, 11 Juin 2008, 10h10mn 53s Objet : Re: Re : Axis2 / Maven 2 Hi Julien, first of all thanks for your answer > mvn test is for unit testing. Should your tests require a running server > it is no more a unit test but integration/acceptance test. That depends on the point of view...but you are right... > There is a > dedicated Maven phase for this concern: integration-test That was the hint which took me on the right track... > > You can setup your server during the pre-integration-test phase and > cleanup during post-integration-test. Now i have created a pom which will build my war, download Tomcat, start Tomcat, deploy my war to Tomcat(this works in relationship with cargo plugin)... Now i have read a bit around and often there has pointed out that an integration test should have it's own moduleis this correct? May be you know a little bit about it... Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
Re : Axis2 / Maven 2
Hi, mvn test is for unit testing. Should your tests require a running server it is no more a unit test but integration/acceptance test. There is a dedicated Maven phase for this concern: integration-test You can setup your server during the pre-integration-test phase and cleanup during post-integration-test. Regards, Julien - Message d'origine De : Karl Heinz Marbaise <[EMAIL PROTECTED]> À : axis-user@ws.apache.org Envoyé le : Vendredi, 6 Juin 2008, 16h32mn 17s Objet : Axis2 / Maven 2 Hi there, i'm working on a project which uses Axis2 and creates Web-Services... but I'm a little bit unhappy, cause currently if i would like to run the test (unit tests) i have to package the service and deploy this to an server (all by hand) and after that i can do the unit tests... But i would like to have the following situation: Maven 2 would build the artifact (e.g. aar file) start an suitable server (e.g. from axis2) and run the tests against this server. An ideal world would be to simply call "mvn test"... May be this is a more Axis2 centric questions.. Does some has created such scenario before? Any hints would be nice Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
Re : Re : Re : Re : [Axis2] Axis2 1.2 RC2 Released
Thanks for your consideration, but I'm looking for a Maven 2 repository. ++ Julien - Message d'origine De : Deepal Jayasinghe <[EMAIL PROTECTED]> À : axis-user@ws.apache.org Envoyé le : Vendredi, 6 Avril 2007, 10h20mn 31s Objet : Re: Re : Re : Re : [Axis2] Axis2 1.2 RC2 Released http://people.apache.org/~deepal/axis2/1.2-RC2/ Thanks Deepal Julien HENRY wrote: > In > http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2/ > I have : > 1.2-SNAPSHOT > SNAPSHOT > > In > http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/axis2/axis2/ > I have : > 1.1 > > In http://repo1.maven.org/maven2/org/apache/axis2/axis2/ I have : > 1.1 > 1.1.1 > > Could you please help me to find 1.2-rc2? > > Thanks > > Julien > > - Message d'origine > De : Patrick Houbaux <[EMAIL PROTECTED]> > À : axis-user@ws.apache.org > Envoyé le : Jeudi, 5 Avril 2007, 18h31mn 21s > Objet : Re: Re : Re : [Axis2] Axis2 1.2 RC2 Released > > Check links in this message below ;) > > Cheers, > Patrick. > > Julien HENRY wrote: > >>Can't manage to find 1.2-rc2 in releases. The latest release seems to be 1.1. >> >>++ >> >>Julien >> >>- Message d'origine >>De : Thilina Gunarathne <[EMAIL PROTECTED]> >>À : axis-user@ws.apache.org >>Envoyé le : Jeudi, 5 Avril 2007, 14h00mn 59s >>Objet : Re: Re : [Axis2] Axis2 1.2 RC2 Released >> >>Snapshots, >>http://people.apache.org/repo/m2-snapshot-repository/ >> >>Releases, >>http://people.apache.org/repo/m2-ibiblio-rsync-repository/ >> >>~Thilina >> >>On 4/5/07, >> Julien HENRY <[EMAIL PROTECTED]> wrote: >> >> >>>Do you plan to provide a Maven 2 repository ? >>> >>>++ >>> >>>Julien >>> >>>- Message d'origine >>>De : Deepal Jayasinghe <[EMAIL PROTECTED]> >>>À : "axis-dev@ws.apache.org" ; >>>"axis-user@ws.apache.org" >>>Envoyé le : Mardi, 3 Avril 2007, 12h59mn 49s >>>Objet : [Axis2] Axis2 1.2 RC2 Released >>> >>> >>> Hi all, >>> >>> I uploaded Axis2 1.2 RC2 release artifacts. Please >>> help us by downloading >>>and reviewing them. >>> >>> Download locations : >>> binary distributions- >>>http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2.zip >>> source distribution >>>http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2-src.zip >>> docs distribution >>>http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2-docs.zip >>> war distribution >>> http://people.apache.org/~deepal/axis2/1.2-RC2/axis2.war >>> >>> jars >>>http://people.apache.org/~deepal/maven/org.apache.axis2/jars/ >>> >>> mars (addressing and soapmonitor) >>>http://people.apache.org/~deepal/maven/org.apache.axis2/mars/ >>> >>> poms >>>http://people.apache.org/~deepal/maven/org.apache.axis2/poms/ >>> >>> >>> According to the release plan, I'm expecting to release Axis2 1.2 on >>> 6th April, 2007. >>> >>> >>> Features included in the release : >>> - WSDL 2.0 fully >>> support >>> (Reading , writing and codegen) >>> - POJO – annotation >>> - JAX-WS integration >>> - JAX-WS -annotation >>> - Un-wrapping (Response) >>> - ADB - missing schema support >>> - Maven2 support >>> - JSON support >>> - Binary serialization (Fast Inforset) >>> - Multiple services support in code gen >>> - HTTP code generation (both WSDL 1.1 and 2.0) >>> - Fix/update helper mode >>> - Custom deployers support >>> - Message formatters >>> - Message Builders >>> >>> In addition to above major features we have fixed numerous JIRA issues. >>> >>> >>> Thanks, >>> Deepal >>> >>> >>> >>> >>> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions >>>! Profitez des connaissances, des opinions et des expériences des >>>internautes sur Yahoo! Questions/Réponses. >>> >>> >> >> > > -- > -- > | *Patrick Houbaux* > | Senior Consultant > | Eurostep ABEmail: [EMAIL PROTECTED] > | Drottninggatan 68 Mobile: +33 611 192 943 >
Re : Re : Re : Re : [Axis2] Axis2 1.2 RC2 Released
Thanks for the explanation about differences between 1.2-SNAPSHOT and SNAPSHOT versions. I suppose I will have to wait for 1.2 final, as I don't want to use a snapshot repository in order to keep reproducible builds. For future RC (and even alpha, beta), perhaps Axis 2 team should try to "release" (Maven meaning) artifacts, to allow a maximum amount of people to test it in "real" production configuration (no snapshot). This could lead to discover some nasty dependency mistakes, like with 1.1.1, where 2 artifacts are not available on ibiblio (woden-1.0.0M6 et wsdl4j-1.6.2). ++ Julien - Message d'origine De : Asankha C. Perera <[EMAIL PROTECTED]> À : axis-user@ws.apache.org Envoyé le : Vendredi, 6 Avril 2007, 9h31mn 02s Objet : Re: Re : Re : Re : [Axis2] Axis2 1.2 RC2 Released Hi Julien As far as I know, an artifacts for RC releases have not been uploaded to the maven repos. What you would find in the m2-snapshot-repository are nightly build snapshots created off the 1.2 branch (i.e. if you are looking at version "1.2-SNAPSHOT") and the trunk (i.e. under "SNAPSHOT" version). I understand your concern, as I have a project dependent on Axis2 1.2 as well - and hence would suggest you point your pom to the 1.2-SNAPSHOT as its what will go into the 1.2 final release in the next few days. asankha Julien HENRY wrote: In http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2/ I have : 1.2-SNAPSHOT SNAPSHOT In http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/axis2/axis2/ I have : 1.1 In http://repo1.maven.org/maven2/org/apache/axis2/axis2/ I have : 1.1 1.1.1 Could you please help me to find 1.2-rc2? Thanks Julien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
Re : Re : Re : [Axis2] Axis2 1.2 RC2 Released
In http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2/ I have : 1.2-SNAPSHOT SNAPSHOT In http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/axis2/axis2/ I have : 1.1 In http://repo1.maven.org/maven2/org/apache/axis2/axis2/ I have : 1.1 1.1.1 Could you please help me to find 1.2-rc2? Thanks Julien - Message d'origine De : Patrick Houbaux <[EMAIL PROTECTED]> À : axis-user@ws.apache.org Envoyé le : Jeudi, 5 Avril 2007, 18h31mn 21s Objet : Re: Re : Re : [Axis2] Axis2 1.2 RC2 Released Check links in this message below ;) Cheers, Patrick. Julien HENRY wrote: Can't manage to find 1.2-rc2 in releases. The latest release seems to be 1.1. ++ Julien - Message d'origine De : Thilina Gunarathne <[EMAIL PROTECTED]> À : axis-user@ws.apache.org Envoyé le : Jeudi, 5 Avril 2007, 14h00mn 59s Objet : Re: Re : [Axis2] Axis2 1.2 RC2 Released Snapshots, http://people.apache.org/repo/m2-snapshot-repository/ Releases, http://people.apache.org/repo/m2-ibiblio-rsync-repository/ ~Thilina On 4/5/07, Julien HENRY <[EMAIL PROTECTED]> wrote: Do you plan to provide a Maven 2 repository ? ++ Julien - Message d'origine De : Deepal Jayasinghe <[EMAIL PROTECTED]> À : "axis-dev@ws.apache.org" ; "axis-user@ws.apache.org" Envoyé le : Mardi, 3 Avril 2007, 12h59mn 49s Objet : [Axis2] Axis2 1.2 RC2 Released Hi all, I uploaded Axis2 1.2 RC2 release artifacts. Please help us by downloading and reviewing them. Download locations : binary distributions- http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2.zip source distribution http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2-src.zip docs distribution http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2-docs.zip war distribution http://people.apache.org/~deepal/axis2/1.2-RC2/axis2.war jars http://people.apache.org/~deepal/maven/org.apache.axis2/jars/ mars (addressing and soapmonitor) http://people.apache.org/~deepal/maven/org.apache.axis2/mars/ poms http://people.apache.org/~deepal/maven/org.apache.axis2/poms/ According to the release plan, I'm expecting to release Axis2 1.2 on 6th April, 2007. Features included in the release : - WSDL 2.0 fully support (Reading , writing and codegen) - POJO – annotation - JAX-WS integration - JAX-WS -annotation - Un-wrapping (Response) - ADB - missing schema support - Maven2 support - JSON support - Binary serialization (Fast Inforset) - Multiple services support in code gen - HTTP code generation (both WSDL 1.1 and 2.0) - Fix/update helper mode - Custom deployers support - Message formatters - Message Builders In addition to above major features we have fixed numerous JIRA issues. Thanks, Deepal Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses. -- -- | Patrick Houbaux | Senior Consultant | Eurostep ABEmail: [EMAIL PROTECTED] | Drottninggatan 68 Mobile: +33 611 192 943 | SE-111 21 StockholmFax: +46 (0) 8-200 399 | Sweden URL: http://www.eurostep.com |Skype name: phoubaux | Home address: | BAT A11 | 12 Rue de Paris | F-78560 Le Port-Marly | France --- This message contains information that may be privileged or confidential and is the property of Eurostep Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
Re : Re : [Axis2] Axis2 1.2 RC2 Released
Can't manage to find 1.2-rc2 in releases. The latest release seems to be 1.1. ++ Julien - Message d'origine De : Thilina Gunarathne <[EMAIL PROTECTED]> À : axis-user@ws.apache.org Envoyé le : Jeudi, 5 Avril 2007, 14h00mn 59s Objet : Re: Re : [Axis2] Axis2 1.2 RC2 Released Snapshots, http://people.apache.org/repo/m2-snapshot-repository/ Releases, http://people.apache.org/repo/m2-ibiblio-rsync-repository/ ~Thilina On 4/5/07, Julien HENRY <[EMAIL PROTECTED]> wrote: > > Do you plan to provide a Maven 2 repository ? > > ++ > > Julien > > - Message d'origine > De : Deepal Jayasinghe <[EMAIL PROTECTED]> > À : "axis-dev@ws.apache.org" ; > "axis-user@ws.apache.org" > Envoyé le : Mardi, 3 Avril 2007, 12h59mn 49s > Objet : [Axis2] Axis2 1.2 RC2 Released > > > Hi all, > > I uploaded Axis2 1.2 RC2 release artifacts. Please help us by downloading > and reviewing them. > > Download locations : > binary distributions- > http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2.zip > source distribution > http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2-src.zip > docs distribution > http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2-docs.zip > war distribution > http://people.apache.org/~deepal/axis2/1.2-RC2/axis2.war > > jars > http://people.apache.org/~deepal/maven/org.apache.axis2/jars/ > > mars (addressing and soapmonitor) > http://people.apache.org/~deepal/maven/org.apache.axis2/mars/ > > poms > http://people.apache.org/~deepal/maven/org.apache.axis2/poms/ > > > According to the release plan, I'm expecting to release Axis2 1.2 on > 6th April, 2007. > > > Features included in the release : > - WSDL 2.0 fully support > (Reading , writing and codegen) > - POJO – annotation > - JAX-WS integration > - JAX-WS -annotation > - Un-wrapping (Response) > - ADB - missing schema support > - Maven2 support > - JSON support > - Binary serialization (Fast Inforset) > - Multiple services support in code gen > - HTTP code generation (both WSDL 1.1 and 2.0) > - Fix/update helper mode > - Custom deployers support > - Message formatters > - Message Builders > > In addition to above major features we have fixed numerous JIRA issues. > > > Thanks, > Deepal > > > > > Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions > ! Profitez des connaissances, des opinions et des expériences des > internautes sur Yahoo! Questions/Réponses. -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re : [Axis2] Axis2 1.2 RC2 Released
Do you plan to provide a Maven 2 repository ? ++ Julien - Message d'origine De : Deepal Jayasinghe <[EMAIL PROTECTED]> À : "axis-dev@ws.apache.org" ; "axis-user@ws.apache.org" Envoyé le : Mardi, 3 Avril 2007, 12h59mn 49s Objet : [Axis2] Axis2 1.2 RC2 Released Hi all, I uploaded Axis2 1.2 RC2 release artifacts. Please help us by downloading and reviewing them. Download locations : binary distributions- http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2.zip source distribution http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2-src.zip docs distribution http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2-docs.zip war distribution http://people.apache.org/~deepal/axis2/1.2-RC2/axis2.war jars http://people.apache.org/~deepal/maven/org.apache.axis2/jars/ mars (addressing and soapmonitor) http://people.apache.org/~deepal/maven/org.apache.axis2/mars/ poms http://people.apache.org/~deepal/maven/org.apache.axis2/poms/ According to the release plan, I'm expecting to release Axis2 1.2 on 6th April, 2007. Features included in the release : - WSDL 2.0 fully support (Reading , writing and codegen) - POJO – annotation - JAX-WS integration - JAX-WS -annotation - Un-wrapping (Response) - ADB - missing schema support - Maven2 support - JSON support - Binary serialization (Fast Inforset) - Multiple services support in code gen - HTTP code generation (both WSDL 1.1 and 2.0) - Fix/update helper mode - Custom deployers support - Message formatters - Message Builders In addition to above major features we have fixed numerous JIRA issues. Thanks, Deepal ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
Re : Writing POJO Web Service with MTOM support
Thanks for your help. I will try to write the WSDL. - Message d'origine De : Thilina Gunarathne <[EMAIL PROTECTED]> À : axis-user@ws.apache.org Envoyé le : Jeudi, 8 Mars 2007, 8h58mn 57s Objet : Re: Writing POJO Web Service with MTOM support Hi, There was an effort to support for DataHandler type variables in pojo's... Please try it with the latest snapshots, else you need to specify your variables as byte[] type.. I would strongly encourage you to manually write the WSDL If there is a possibility of doing so... Thanks, Thilina On 3/8/07, Julien HENRY <[EMAIL PROTECTED]> wrote: > Hi all, > > Is it possible to write a POJO Web Service that return an image as an > Attachment (with MTOM because I need WS-Security). Or should I manually write > the WSDL file and generate the Web Service stubs? > > Thanks for your reply > > Julien > > > > > > > > > ___ > Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! > Profitez des connaissances, des opinions et des expériences des internautes > sur Yahoo! Questions/Réponses > http://fr.answers.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thilina Gunarathne WSO2, Inc.; http://www.wso2.com/ Home page: http://webservices.apache.org/~thilina/ Blog: http://thilinag.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Writing POJO Web Service with MTOM support
Hi all, Is it possible to write a POJO Web Service that return an image as an Attachment (with MTOM because I need WS-Security). Or should I manually write the WSDL file and generate the Web Service stubs? Thanks for your reply Julien ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[MTOM] InstantiationException
Hi, I'm a newbie with Webservices, and I have to write a simple one that provide an image to the client. I want to use MTOM, and I tried to use mtom sample in Axis 2.1.1 distribution. I get the following exception when trying to retrieve the image: org.apache.axis2.AxisFault: javax.activation.DataHandler; nested exception is: java.lang.InstantiationException: javax.activation.DataHandler I think the server is working fine, because tcpmon trace looks good: >>>>>>>>> CLIENT SEND <<<<<<<<<<<< POST /axis2/services/MoleculeService HTTP/1.1 SOAPAction: "urn:anonOutInOp" User-Agent: Axis2 Host: localhost:8082 Transfer-Encoding: chunked Content-Type: text/xml; charset=UTF-8 17c CD12345/55A 0 gif 0 0 >>>>>>>>> SERVER RESPONSE <<<<<<<<<<<<<<< HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_34835FF6273C9CB40C1173256264993; type="application/xop+xml"; start="<0.urn:uuid:[EMAIL PROTECTED]>"; start-info="text/xml";charset=UTF-8 Transfer-Encoding: chunked Date: Wed, 07 Mar 2007 08:31:04 GMT 2000 --MIMEBoundaryurn_uuid_34835FF6273C9CB40C1173256264993 content-type: application/xop+xml; charset=UTF-8; type="text/xml"; content-transfer-encoding: binary content-id: <0.urn:uuid:[EMAIL PROTECTED]> test.gif'>http://ws.apache.org/axis2/mtomsample/";>test.gif A LOT OF BINARY CONTENT 0 >>>>>>>>>>>>>> HERE IS THE CODE OF MY CLIENT <<<<<<<<<<<<<<<<<< RPCServiceClient serviceClient = null; serviceClient = new RPCServiceClient(); Options options = serviceClient.getOptions(); EndpointReference targetEPR = new EndpointReference( "http://localhost:8082/axis2/services/MoleculeService";); options.setTo(targetEPR); QName opGetMoleculeImage = new QName( "http://webservice.rkp.galderma.com/xsd";, "getMoleculeImage"); MoleculeImageRequest moleculeImageRequest = new MoleculeImageRequest(); moleculeImageRequest.setCdCode("CD12345/55A"); moleculeImageRequest.setOutputFormat("gif"); Object[] opGetMoleculeImageArgs = new Object[] {moleculeImageRequest}; Class[] returnTypes = new Class[] {MoleculeImageResponse.class}; Object[] response = null; response = serviceClient.invokeBlocking(opGetMoleculeImage, opGetMoleculeImageArgs, returnTypes); // >>>>>>>>>>>>>> EXCEPTION THROWN HERE <<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>> COMPLETE STACK TRACE <<<<<<<<<<<<<<<<<<<<<<<<<<<<< org.apache.axis2.AxisFault: javax.activation.DataHandler; nested exception is: java.lang.InstantiationException: javax.activation.DataHandler at org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:28) at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:269) at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:299) at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:299) at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:299) at org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:557) at org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:507) at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:446) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:97) [...] Caused by: java.lang.InstantiationException: javax.activation.DataHandler at java.lang.Class.newInstance0(Class.java:335) at java.lang.Class.newInstance(Class.java:303) at org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:26) ... 27 more Could you please help me? Thanks Julien HENRY ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]