RE: Axis2-1.5.1 and user exceptions
Hello Li the biggest problem with a contract is you are bound to fixed record doc-literal-encoded has been around for 7 years and has been deployed numerous times on numerous production sites Here is a good whitepaper to read on the advantages of doc-literal over RPC http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/ also DOC-LITERAL (with encoding) is clearly the best choice for complex structures over any RPC based implementation ALSO rpc is using a remote procedure call to call the function with the parameters leaving a HUGE security hole in your webservice with the open port you are using to the RPC method AXIS2 is heavily favoring doc-literal over RPC for above stated reasons when you state ..it definitely worked under axis1 ..are you stating you must specify RPC over doc-literal? Is the use of RPC a stated business requirement? Martin Gainty __ please do not modify or disrupt this transmission. Thank You Date: Fri, 19 Feb 2010 09:15:03 -0500 Subject: Re: Axis2-1.5.1 and user exceptions From: lim...@gmail.com To: axis-user@ws.apache.org I have been puzzled by this issue for long time. Seams like at this point, using contract-first approach is the only solution for now. But it will still be very very helpful if something can be done so code-first approach can work too. Axis1 definitely worked. I can imagine lots of people are using code-first approach because of its simplicity. Thanks! Li On Fri, Feb 19, 2010 at 6:42 AM, Mauro Molinari mauro.molin...@cardinis.com wrote: Il 17/02/2010 3.53, glopezm ha scritto: Any thoughts/experiences with a similar issues with axis2? I use contract-first approach. My user exceptions extend Exception and have a field called faultMessage with getter getFaultMessage and setter setFaultMessage. The constructor prepares the faultMessage and sets it via setFaultMessage. The faultMessage is an object of a class generated by WSDL2Code from an XMLSchema type that describes my fault message, so that it implements ADBBean. In this way, when my code raises my user defined exception, Axis2 recognizes the existence of the fault message and attaches it correctly to the fault returned to the client code. This is the result of my trial-and-errors researches of some years ago with Axis2 1.3 and it is working with Axis2 1.5 too. I think that you may find something else in this mailing list archive by me on this subject. -- Mauro Molinari Software Designer Developer E-mail: mauro.molin...@cardinis.com -- Li Ma lim...@gmail.com _ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. http://clk.atdmt.com/GBL/go/201469229/direct/01/
RE: Please help on Axis2 Exception handling
the client needs to disable setExceptionToBeThrownOnSOAPFault ServiceClient.setExceptionToBeThrownOnSOAPFault now the client is free to handle any exception.. you will need to configure the client method to throw your exception which you can do at the phase level ConfigurationContext ctx=UtilServer.getConfigurationContext(); List phases_list=ctx.getAxisConfiguration().getInFlowPhases(); Phase phaseOne=(Phase) phases_list.get(0); //acquire the first phase phaseOne.addHandler(new FaultHandler()); Notice that the FaultHandler code has these 3 line which you can tweak to override the FaultHandler invoke(MsgContext msgContext) . org.apache.axiom.soap.SOAPFactory fac=msgContext.isSOAP11()? OMAbstractFactory.getSOAP11Factory() : OMAbstractFactory().getSOAP12Factory(); org.apache.axiom.soap.SOAPFaultCode PlaceNewLocalNameHere=fac.createSOAPFaultCode(); //override the value with whatever you need here assuming the new FaultCode overrides SOAPFaultCode msgContext.setProperty(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME,PlaceNewLocalNameHere); org.apache.axiom.soap.SOAPReasonName PlaceNewReasonHere=fac.createSOAPFaultReason(); ///override the reason with whatever you need here assuming the new ReasonName overrides SOAPReasonName msgContext.setProperty(SOAP12Constants.SOAP_FAULT_REASON_NAME,PlaceNewReasonHere); org.apache.axiom.soap.SOAPFaultDetail PlaceNewDetailHere=fac.createSOAPFaultDetail(); //override the PlaceNewDetailHere with whatever you need here assuming new SOAPFaultDetail overrides SOAPFaultDetail msgContext.setProperty(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME,PlaceNewDetailHere); throw new FaultThatOverridesAxisFault(FaultThatOverridesAxisFaultException has occured); Greetings , Martin Gainty USCitizen(contractor) Please do not alter or disrupt this transmission. Thank You Date: Mon, 15 Feb 2010 09:04:08 -0500 Subject: Please help on Axis2 Exception handling From: lim...@gmail.com To: axis-user@ws.apache.org Dear All, I ran into a very weird problem with Axis2 exception handling, which puzzled me for long time. Any help from you Axis2 expert will be greately appreciated! This is what I did: 1. Get my service POJO ready. All method throws a customized MyException which is derived from java.lang.Exception2. Use Axis2 java2wsdl to convert this POJO to WSDL,. I can see the wsdl:fault part of each service call has been created successfully with name as MyException 3. Then use wsdl2java to generate client side API with ADB binding. Suddenly Axis2 creates a bunch of exception related classes, such as:MyExceptionExceptionMyExceptionExsd/MyException The methods will throw MyExceptionException, which contains MyExceptionE, which contains xsd/MyException. The xsd/MyException has all properties I defined at server side. Method also throw AxisFault. When I run the client code and throw MyException on server, at client side, I could only catch AxisFault exception which reason string as return of MyException.getMessage() defined on server. I could never catch MyException nor MyExceptionException at client side. This is the bigest issue that troubled me. If Axis2 has to wrap everything in AxisFault at client side, fine, but whey wsdl2java still throws MyExceptionException in generated code and never throw it? Thanks a lot! Li _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/201469227/direct/01/
RE: xsi:type
we would need to see the schema instance namespace declaration such as schema xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance... Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Thu, 11 Feb 2010 16:38:58 -0800 From: ragul...@yahoo.com Subject: Re: xsi:type To: axis-user@ws.apache.org Hi Users, can anyone help me out please... Thanks,Raghav. --- On Thu, 2/11/10, Rahul Rulz ragul...@yahoo.com wrote: From: Rahul Rulz ragul...@yahoo.com Subject: xsi:type To: axis-user@ws.apache.org Date: Thursday, February 11, 2010, 11:03 AM Hi All, I am looking to include xsi:type in the responses from my server for a ling time :( .. Have not done it till now..Could anyone pl. help me as to do it..I have created a service from scratch(not from WSDL generated java code) which uses message receivers and send the responses. I am using axis2 1.5.1 Thanks for your help. Regards,Raghav. _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/201469227/direct/01/
RE: com.ctc.wstx.exc.WstxEOFException
can you publish the wsdl and the accompanying xsds? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: RE: com.ctc.wstx.exc.WstxEOFException Date: Fri, 12 Feb 2010 15:47:49 +1300 From: colin.sharp...@datacom.co.nz To: axis-user@ws.apache.org No, I’m pretty sure this is a problem in the generated client. When I used tcpmon, I couldn’t get the error at all. I don’t get the error when calling the web service from SoapUI, nor from the Eclipse Web Services Test explorer. I wrote a standalone Java program using the generated client stub to call the web service 10 times. It fails every second call, i.e. 5 out of the 10 calls fail, every time I run the program. I’m pretty sure I didn’t specify broken=”true” when I generated the client: taskdef name=wsdl2java classname=org.apache.axis2.tool.ant.AntCodegenTask classpath fileset dir=${axis2-lib} includes=*.jar/ /classpath /taskdef target name=gen-wsdl-client-sch wsdl2java wsdlfilename=ScheduleService.wsdl packagename=nz.co.datacom.foo databindingname=jibx synconly=true serverside=false generateservicexml=false unwrap=false targetsourcefolderlocation=../Client/src overwrite=true parameter name=bindingfile value=binding.xml/ /wsdl2java /target I’m just using the client stub generated by wsdl2java unchanged. From: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] Sent: Thursday, 11 February 2010 6:11 p.m. To: axis-user@ws.apache.org Subject: Re: com.ctc.wstx.exc.WstxEOFException On Thu, Feb 11, 2010 at 2:26 AM, Colin Sharples [DATACOM] colin.sharp...@datacom.co.nz wrote: I have an Axis2 web service that was working fine, but in the last couple of days has started misbehaving. Every now and then, the client gets a com.ctc.wstx.exc.WstxEOFException when calling OperationClient.execute(). The exception detail says: “Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0]” The stack trace showed the fault occurred in org.apache.axis2.description.OutInAxisOperationClient.handleResponse(), just after AxisEngine.receive(). I put some debugging into my service class, and it is clear that the incoming request never gets into the service, which suggests that it is the request from the client that is faulty. I think it gets this exception when it try to parse the response. see the response message. You can use tcpmon[1] for that. thanks, Amila. [1] http://ws.apache.org/commons/tcpmon/download.cgi Does anyone have any idea what might be causing this? Colin Sharples Solutions Architect | Datacom Systems Integration Email: colin.sharp...@datacom.co.nz | Mob: +64-27-457-6628 -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ _ Hotmail: Powerful Free email with security by Microsoft. http://clk.atdmt.com/GBL/go/201469230/direct/01/
Axis2-1.5.1 org.apache.axis2.deployment.respository.util.ArchiveReader displays META-INF not found
an anomaly as the service loads with no problem and all the elements and attributes of services.xml are read.. axis2-1.5.1 Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. _ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. http://clk.atdmt.com/GBL/go/196390709/direct/01/
RE: WS-Eventing
Good Evening Gilbert In the other apache projects we've registered listeners to predefined RIA events such as ContainerStart,SessionStart,SessionEnd..I would be very interested to know if this registration process for known RIA events is supported by WS-Eventing or is there some other algorithm implmenented to register the events and/or configure a custom dispatcher to dispatch to the correct listener thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 26 Dec 2009 16:26:24 -0800 From: gilbert.p...@oracle.com To: axis-user@ws.apache.org Subject: Re: WS-Eventing If you are interested in WS-Eventing, you might want to keep an eye on what is going on at the W3C Web Services Resource Access Working Group [1] which is working on standardizing (among other things) WS-Eventing. [1] http://www.w3.org/2002/ws/ra/ Gilbert Pilz | Standards Architect | Middleware Standards | Oracle Corporation On 12/23/2009 12:46 PM, Prabath Siriwardena wrote: Please have a look at [1]. Thanks regards. -Prabath [1]: http://blog.facilelogin.com/search/label/Savan Yashvant chauhan wrote: How I can develope a WS-Eventing in Axis2 _ Hotmail: Trusted email with Microsoft’s powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141664/direct/01/
RE: Axis2 and ApplicationContext
obtain the MessageContext first ..then get the ServletContext from the MessageContext e.g. org.apache.axis2.context.MessageContext msgContext =jaxwsMessageContext.getAxisMessageContext(); // If we are running within a servlet container, then JAX-WS requires that the // servlet related properties be set on the MessageContext javax.servlet.ServletContext servletContext = (ServletContext)jaxwsMessageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT); //then if you want the context name String context= servletContext.getServletContextName(); //Returns the name of this web application corresponding to this ServletContext as specified in the deployment descriptor for //this web application by the display-name element. Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Tue, 1 Dec 2009 12:18:08 -0800 From: andrewnbenja...@hotmail.com To: axis-user@ws.apache.org Subject: Axis2 and ApplicationContext Hi, I tried searching for ApplicationContext on the this site and found this thread: http://old.nabble.com/Axis2-service-and-spring-problem%2C-can%27t-find-Spring%27s-ApplicationContext.-ts22842176.html#a22842176 Basically I have an Axis2 skeleton class. In that class is the following code: ApplicationContext ctx = new ClassPathXmlApplicationContext(my-beans2.xml); myDAO theDAO = (myDAO) ctx.getBean(myDAO); The problem is that this doesn't apparently work if in Axis2. Standalone this code worked fine. I know that the Spring jars are in the classpath so I can't think of any reason why I would get this error. Since this is a textbook way of getting the application context I don't understand why this is happening. The problem that appears in the log is: [ERROR] org/springframework/context/ApplicationContext java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unk nown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) etc etc So at the end of the other thread there was the suggestion to create your own ApplicationContextHolder class. The problem is if I have my beans in a file, such as my-beans2.xml, how can I create an ApplicationContextHolder that reads from that file and gives me access to the beans? Thanks, Andy -- View this message in context: http://old.nabble.com/Axis2-and-ApplicationContext-tp26598402p26598402.html Sent from the Axis - User mailing list archive at Nabble.com. _ Get gifts for them and cashback for you. Try Bing now. http://www.bing.com/shopping/search?q=xbox+gamesscope=cashbackform=MSHYCBpubl=WLHMTAGcrea=TEXT_MSHYCB_Shopping_Giftsforthem_cashback_1x1
RE: deploying Axis under WebLogic
if i can convince you to use maven build environment i would suggest packaging all of the classes and service.xml into aar archive and then use the admin interface to deploy in which case you can use the maven-aar plugin http://ws.apache.org/axis2/tools/1_4/maven-plugins/maven-aar-plugin.html i would look at the pom.xml in $AXIS2_HOME/modules/samples/version for a running pom.xml to use hth Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: RE: deploying Axis under WebLogic Date: Fri, 20 Nov 2009 18:53:46 -0500 From: daniel.mc...@htsco.com To: axis-user@ws.apache.org Hello, I have written a custom handler to deal with a soap header with mustunderstand=1 The problem that I'm haviing is after the server (hosting the service) starts it deploys the service and upon deployment my customhandler causes a ClassNotFoundException Here's a partial stack trace I have changed some names for securioty purposes. I am deploying on Weblogic server 10.3 My question(s) is(are) this... What do I need in order for this class to be found by axis2? Should I be packging the handler under an apache package (org.apache.axis2.handlers)? Thanks! DFM org.apache.axis2.deployment.DeploymentException: com.company.level.utility.MyHandler at org.apache.axis2.deployment.util.Utils.loadHandler(Utils.java:183) at org.apache.axis2.deployment.AxisConfigBuilder.processPhaseList(AxisConfi gBuilder.java:513) at org.apache.axis2.deployment.AxisConfigBuilder.processPhaseOrders(AxisCon figBuilder.java:544) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigB uilder.java:145) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(D eploymentEngine.java:641) at org.apache.axis2.deployment.WarBasedAxisConfigurator.init(WarBasedAxis Configurator.java:157) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle t.java:516) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436) at org.apache.axis2.transport.http.AxisAdminServlet.init(AxisAdminServlet.j ava:55) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubS ecurityHelper.java:283) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu bject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityH elper.java:64) at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLife cycleHelper.java:58) at weblogic.servlet.internal.StubLifecycleHelper.init(StubLifecycleHelper .java:48) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl .java:521) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServ letContext.java:1893) at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(Web AppServletContext.java:1870) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppSe rvletContext.java:1790) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContex t.java:2999) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1 371) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateD river.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriv er.java:37) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDr iver.java:60) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModule Driver.java:200) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleLis tenerInvoker.java:117) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateD river.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriv
RE: Any way to configure a write timeout as an Axis2 client?
Andy- seems to be specific to the transport that the connector is using..which protocol are you using ..HTTP 1.0 or HTTP1.1? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: adys...@prospricing.com To: axis-user@ws.apache.org Date: Tue, 17 Nov 2009 18:17:44 -0600 Subject: RE: Any way to configure a write timeout as an Axis2 client? Hello Chinmoy – thanks for your quick reply. I have tried this and unfortunately it does not seem to work. It does effectively set the read timeout on the underlying socket, but if the server malfunctions and stops reading and the message is large enough to fill the socket flow control buffers, then the write ends up blocking and never times out. Has anyone else seen this issue or know of a solution? -andy From: Chinmoy Chakraborty [mailto:cch...@gmail.com] Sent: Tuesday, November 17, 2009 8:13 AM To: axis-user@ws.apache.org Subject: Re: Any way to configure a write timeout as an Axis2 client? From client side you can try this: Options options = new Options(); options.setTimeOutInMilliSeconds(60); HTH, Chinmoy On Tue, Nov 17, 2009 at 5:47 PM, Andy Dysart adys...@prospricing.com wrote: Hello all, We are having a problem with some Axis2 client code that is making a web service call to a server we do not control where that server gets locked up in some kind of bad state after having accepted a connection from us, but it does not read all of the request. The data is relatively large ( 2 megabytes) and our client code ends up getting blocked on a socket write call. We’ve successfully determined how to configure a timeout for the initial connection, and a timeout for the read of the response once the request is completely written. But we have not found a way to configure a timeout on the write of the request itself. The net result is that when the server fails in this way, our client code gets stuck on a socket write call which never times out. Does anyone know of a way to resolve this? Thanks in advance, -andy _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141665/direct/01/
RE: Any workaround?
i would suggest breaking up to smaller pieces to attempt to locate possible incorrect XSD possible incorrect entity and or attribute reference for the specified XSD keep us apprised thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 2 Nov 2009 06:36:53 -0500 Subject: Re: Any workaround? From: newax...@gmail.com To: axis-user@ws.apache.org Hi Martin, I don't think I can post the wsdl without getting into trouble (and also it's huge!) but I will try to cut it down to something smaller that shows the same problem. On Wed, Oct 28, 2009 at 4:59 PM, Martin Gainty mgai...@hotmail.com wrote: can you display both the XSD and the WSDL? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 28 Oct 2009 17:26:52 -0400 Subject: Any workaround? From: newax...@gmail.com To: axis-user@ws.apache.org Hi all, I've gotten back to looking at upgrading to Axis2 after a long hiatus. Feel free to tell me if I've done something stupid. I tried running sh $AXIS2_HOME/bin/wsdl2java.sh -uri wsdl/our_wsdl.wsdl -o gensrc -ss -sd using first Axis2 1.4.1 and then 1.5.1. our_wsdl.wsdl is the file I successfully used with Axis 1.4 the last time I worked with the services on our project. Both times, wsdl2java generated source files but one problem. The generated code wouldn't compile Cadm.java: if (reader.isStartElement()) { object.setDOC_APP_CALDT(org.apache.axiom.om.OMElement.Factory.parse(reader)); reader.next(); } // End of if for expected property start element and the problem is that OMElement.Factory doesn't exist. The matching part in the wsdl looks like xsd:complexType name=cadmType xsd:sequence xsd:element ref=cadm:DOC_APP_CALDT minOccurs=0/ xsd:element ref=cadm:ARCH_ID minOccurs=0/ /xsd:sequence /xsd:complexType I can make the compilation problem disappear by commenting out DOC_APP_CALDT which is defined as xsd:element name=DOC_APP_CALDT type=ddms:CombinedDateType/ simpleType name=CombinedDateType union memberTypes=dateTime date gYearMonth gYear/ /simpleType So ... am I doing something obviously wrong? does this mean that I can't use the default binding? Is there a workaround? Since it's only 1 file, I wouldn't mind manually fixing the code if I knew what was supposed to go there. Thanks for any help. Windows 7: It works the way you want. Learn more. _ New Windows 7: Find the right PC for you. http://www.microsoft.com/windows/pc-scout/default.aspx?CBID=wlocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_pcscout:112009
RE: Marketing Analysis GBA 490
Axis is opensource so there is no initial cost http://en.wikipedia.org/wiki/Open_source answer your question? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Date: Mon, 2 Nov 2009 10:58:44 -0800 From: uagba...@gmail.com To: axis-user@ws.apache.org Subject: Marketing Analysis GBA 490 As Seniors at the University of Alabama we have been assigned a marketing analysis of the software industry specifically in regards to Axis, Hydra, and Gsoap. We are currently searching for information in regards to who uses this product, what do you use it for and why Axis. Anyone who can aid in this information search would be greatly appreciated. Thank you for your time and consideration in this matter. Jessica Bush Team Leader GBAA 490 University of Alabama -- View this message in context: http://old.nabble.com/Marketing-Analysis-GBA-490-tp26157780p26157780.html Sent from the Axis - User mailing list archive at Nabble.com. _ Hotmail: Trusted email with Microsoft's powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141664/direct/01/ http://clk.atdmt.com/GBL/go/177141664/direct/01/
RE: Any workaround?
can you display both the XSD and the WSDL? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 28 Oct 2009 17:26:52 -0400 Subject: Any workaround? From: newax...@gmail.com To: axis-user@ws.apache.org Hi all, I've gotten back to looking at upgrading to Axis2 after a long hiatus. Feel free to tell me if I've done something stupid. I tried running sh $AXIS2_HOME/bin/wsdl2java.sh -uri wsdl/our_wsdl.wsdl -o gensrc -ss -sd using first Axis2 1.4.1 and then 1.5.1. our_wsdl.wsdl is the file I successfully used with Axis 1.4 the last time I worked with the services on our project. Both times, wsdl2java generated source files but one problem. The generated code wouldn't compile Cadm.java: if (reader.isStartElement()) { object.setDOC_APP_CALDT(org.apache.axiom.om.OMElement.Factory.parse(reader)); reader.next(); } // End of if for expected property start element and the problem is that OMElement.Factory doesn't exist. The matching part in the wsdl looks like xsd:complexType name=cadmType xsd:sequence xsd:element ref=cadm:DOC_APP_CALDT minOccurs=0/ xsd:element ref=cadm:ARCH_ID minOccurs=0/ /xsd:sequence /xsd:complexType I can make the compilation problem disappear by commenting out DOC_APP_CALDT which is defined as xsd:element name=DOC_APP_CALDT type=ddms:CombinedDateType/ simpleType name=CombinedDateType union memberTypes=dateTime date gYearMonth gYear/ /simpleType So ... am I doing something obviously wrong? does this mean that I can't use the default binding? Is there a workaround? Since it's only 1 file, I wouldn't mind manually fixing the code if I knew what was supposed to go there. Thanks for any help. _ Windows 7: It works the way you want. Learn more. http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:102009
RE: DIME, MTOM and Axis1
Joe and Co- here is Application/DIMEs header /*** Field HEADER_ACCEPT_APPLICATION_DIME*/ public static final String HEADER_ACCEPT_APPLICATION_DIME = application/dime; currently not supported in Axis so you might want to READ the HEADER_ACCEPT_APPLICATION_DIME header *if detected* pass to Microsoft DIME SOAP Service If you could Post the WSDL we provide some assistance Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Tue, 27 Oct 2009 15:07:44 -0700 From: thisisafakeemaila...@yahoo.com Subject: Re: DIME, MTOM and Axis1 To: axis-user@ws.apache.org It seems like this list isn't really M$ friendly. I've had to ask the same questions and got no responses either. MSDN had lots of write-ups on this. There are different solutions depending on what type of encoding and use you have. M$ supports RPC/Literal and Document/Literal (default). I ended up having to write a very generic WSE2 client, because I was consuming a ColdFusion component. I have some examples of C# using the generic SoapClient, but not so much anything robust that actually uses WSE3's abilities. -Joey From: Wishing Carebear wishing.careb...@gmail.com To: axis-user@ws.apache.org Sent: Tue, October 27, 2009 2:52:03 PM Subject: Re: DIME, MTOM and Axis1 Any pointers please. Thanks, cabear On Mon, Oct 26, 2009 at 7:45 PM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello: I have some legacy webservice application using axis1. Need to support attachment webservice using axis1 both sending and receiving. The consumer will be .NET WSE3 client. Is this possible with axis1. If so could someone point me to some examples. Thanks for your time and help, cabear _ Windows 7: Simplify your PC. Learn more. http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen1:102009
RE: Individual classloaders for each Web service
generally each service implements service-specific classloader http://ws.apache.org/axis2/faq.html is there a specific classloader you wanted to invoke? any projections on which appserver/container you will implement axis2 on? *gruss* Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. : Sun, 11 Oct 2009 15:41:59 +0200 From: bauer.hors...@gmx.de To: axis-user@ws.apache.org Subject: Individual classloaders for each Web service Hi! Is there a way to make Axis use individual classloaders for each Web service class to ease putting each into a Java sandbox? Thanks! _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141665/direct/01/
RE: xmlns
to understand namespace assignments for your XML messages please reference http://wso2.org/library/articles/differentiating-between-soap-versions-looking-soap-message hth Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: dida...@hotmail.fr To: axis-user@ws.apache.org Subject: xmlns Date: Fri, 9 Oct 2009 14:37:15 + Hello, When i have in a wsdl: xmlns:ax23=http://vo.coaching.de/xsd; or xmlns:ax24=http://vo.coaching.de/xsd; ax23 or ax24 specify the version of axis2 ?? so axis2 1.3 and axis2 1.4 ??? Thank you David Achetez un nouveau PC et bénéficiez de Windows 7 dès sa sortie ! En savoir plus Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici ! _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141665/direct/01/
Testing REST functionality
could someone determine if checking contentType to determine RESTRequest is sufficient? org.apache.axis2.transport.http.HttpTransportUtils{ public static final String MEDIA_TYPE_APPLICATION_XML = application/xml; public static final String MEDIA_TYPE_X_WWW_FORM = application/x-www-form-urlencoded; public static final String MEDIA_TYPE_MULTIPART_FORM_DATA = multipart/form-data; public static boolean isRESTRequest(String contentType) { return contentType != null (contentType.indexOf(HTTPConstants.MEDIA_TYPE_APPLICATION_XML) -1 || contentType.indexOf(HTTPConstants.MEDIA_TYPE_X_WWW_FORM) -1 || contentType.indexOf(HTTPConstants.MEDIA_TYPE_MULTIPART_FORM_DATA) -1); } } some other projects are mapping REST based on URL parse(and not necessarily contentType test) does REST have a spec to follow and if so is there any parsing of URL to determine if this is a REST request? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. _ Hotmail® has ever-growing storage! Don’t worry about storage limits. http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009
RE: aar and hibernate
check your ant or maven scripts to find out which container you're deploying to tomcat is a webapp container and axis as a war(WebApplicationArchive) will deploy there with minimal configuration..on the other hand if you have EJBs, persistence or timed services you're going to need Appserver such as Glassfish..in which case you'll need to use Glassfish admin interface to deploy your axis2 war Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: tony.en...@insightbb.com To: axis-user@ws.apache.org Subject: Re: aar and hibernate Date: Fri, 25 Sep 2009 19:12:51 -0400 On Sep 25, 2009, at 6:30 PM, robert lazarski wrote: On Fri, Sep 25, 2009 at 7:17 PM, Tony Ennis tony.en...@insightbb.com wrote: I'm at home now, so no checking for me. Thank God. Am I sure? As sure as I can be. Previously the aar had com at the root. I moved the entire com tree to WEB-INF/classes/... as per your suggestion. I ASSume WEB-INF should be at the root of the aar... Using the latest and greatest Axis2 and Jetspeed. When you say I ASSume WEB-INF should be at the root of the aar , that doesn't seem right. The aar goes in your WEB-INF/services , and the format of the aar should be just: ./myExample.aar ./META-INF ./META-INF/MANIFEST.MF ./META-INF/services.xml I have no idea about Axis2 compatability with Jetspeed - I'd try tomcat 6 first to see if that's the issue. - R I'm just talking about the structure of the aar file. If I understand the documentation correctly, the aar file should have a META-INF folder inside, at the root. There should be a services.xml file in the META-INF folder. Also at the root is a lib folder. Finally, I had my classes at the root under 'com.' All that was working fine before I tried getting a database connection. I deploy the aar file to axis2/WEB-INF/services and didn't change any other files. Everything the webapp needs is in the aar file. Jetspeed uses tomcat under the hood I believe. _ Bing™ brings you maps, menus, and reviews organized in one place. Try it now. http://www.bing.com/search?q=restaurantsform=MLOGENpubl=WLHMTAGcrea=TEXT_MLOGEN_Core_tagline_local_1x1
RE: Axis Soap Client using Kerberos System Credentials or NTLM using Current logged on user
can you supply a barebones Sharepoint WSDL which has one operation and one parameter returned? could you supply minimal set of NT credentials from your AD server that can access the Sharepoint Service? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Thu, 10 Sep 2009 23:00:27 +0200 Subject: Axis Soap Client using Kerberos System Credentials or NTLM using Current logged on user From: igaf...@googlemail.com To: axis-user@ws.apache.org; axis-...@ws.apache.org Hi! I need a Soap Client in Java to access WebServices on a SharePoint Server using Active Directory with Kerberos. We definately do not want the software to pop up for user:password and cannot specify it because the software is going to be used on many different accounts with different rules/rights. Using urlconnect works fine because it somehow grabs the stuff from windows. Using the service with axis does not work (401). I searched around the web how to make Axis work the way I want but it wont. Is the only way to fulfill the task to run a proxy server using urlconnect and specifying this proxy to Axis? That is not a very good solution. Even when I use random port and a random password for security and only open the socket as long as its needed it still is open for a moment (not really a security problem but still not a satisfieing solution... Can someone tell me a way to make Axis authenticate with the server using the current credentials? Thank you in advance! _ Get back to school stuff for them and cashback for you. http://www.bing.com/cashback?form=MSHYCBpubl=WLHMTAGcrea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
RE: Axis2, Jax-WS, and @HandlerChain
http://ws.apache.org/axis2/1_3/api/org/apache/axis2/jaxws/description/xml/handler/HandlerChainType.html The handler-chain element defines the handlerchain. Handlerchain can be defined such that the handlers in the handlerchain operate on ALL ports of a service, on a specific port, or on a LIST of protocol-bindings. The choice of elements service-name-pattern, port-name-pattern, and protocol-bindings are used to specify whether the handlers in the handler-chain are for a service, port or protocol binding. If none of these choices are specified with the handler-chain element, then the handlers specified in the handler-chain will be applied on everything. Java class for handler-chainType complex type. The following schema fragment specifies the expected content contained within this class. complexType name=handler-chainType complexContent restriction base={http://www.w3.org/2001/XMLSchema}anyType; sequence choice minOccurs=0 element name=service-name-pattern type={http://www.w3.org/2001/XMLSchema}QName/ element name=port-name-pattern type={http://www.w3.org/2001/XMLSchema}QName/ element name=protocol-bindings type={http://java.sun.com/xml/ns/javaee}protocol-bindingListType/ /choice element name=handler type={http://java.sun.com/xml/ns/javaee}handlerType; maxOccurs=unbounded/ /sequence attribute name=id type={http://www.w3.org/2001/XMLSchema}ID; / /restriction /complexContent /complexType as you have none of these specified you fallback to handlerChains defined in web.xml as something like handlerChains chain runAt=server handler className=service.ServerHandler1 headers=ns1:loginfo xmlns:ns1=http://example.com/headerprops; property name=name value=server1/ /handler handler className=service.ServerHandler2 property name=name value=server2/ /handler /chain /handlerChains /endpoint http://www.theserverside.com/news/thread.tss?thread_id=33831 what have you defined for handlerChains? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 9 Sep 2009 11:17:08 -0700 From: justin.fe...@gmail.com To: axis-user@ws.apache.org Subject: Axis2, Jax-WS, and @HandlerChain We are starting to develop web services using Axis2 v1.5 with JAX-WS annotations. We'd like to set up JAX-WS handlers using the @HandlerChain annotation but I can't seem to get the handler(s) to fire. No matter where I put handlers.xml in my .aar it never falls into AuthenticationSOAPHandler.handleMessage(). What am I missing? My code is as follows: //My web service class @HandlerChain(file=handlers.xml, name=handlers) @WebService(serviceName=MyService) public class MyService { @WebMethod public int add(int a, int b) { return a + b; } } //My handlers.xml javaee:handler-chains xmlns:javaee=http://java.sun.com/xml/ns/javaee; xmlns:xsd=http://www.w3.org/2001/XMLSchema; javaee:handler-chain name=handlers javaee:handler javaee:handler-nameAuthenticationSOAPHandler/javaee:handler-name javaee:handler-classcom.test.ws.AuthenticationSOAPHandler/javaee:handler-class /javaee:handler /javaee:handler-chain /javaee:handler-chains //AuthenticationSOAPHandler class public class AuthenticationSOAPHandler implements SOAPHandlerSOAPMessageContext{ public boolean handleMessage(SOAPMessageContext context) { return true; } public boolean handleFault(SOAPMessageContext context) { return false; } public SetQName getHeaders() { return null; } public void close(MessageContext context) { //Clean up any resources here } } -- View this message in context: http://www.nabble.com/Axis2%2C-Jax-WS%2C-and-%40HandlerChain
RE: AccessControlException from HttpClient - Causes ServiceClient instance to fail
that would be my suggestion // Here are permissions to connect to noaa.gov on Port 80 grant codeBase file:${catalina.home}/webapps/examples/- { permission java.net.SocketPermission *.noaa.gov:80, connect,resolve; }; you'll need those same permissions (connect,resolve) to connect to your own webservice host Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sun, 6 Sep 2009 14:18:50 -0700 From: yraja...@cisco.com To: axis-...@ws.apache.org; axis-user@ws.apache.org Subject: AccessControlException from HttpClient - Causes ServiceClient instance to fail Hi All: Have you used Axis2 web services on WebSphere with security turned on so you have to use was.policy file to grant the required permissions? If so you might be able to help. We have a Web Service (WS1) calling another WebService (WS2) using ServiceClient. However we get the following exception when WS1 calls WS2. [8/27/09 19:18:55:774 EDT] 42e54fb1 SystemErr R Aug 27, 2009 7:18:55 PM org.apache.axis2.deployment.ServiceDeployer deploy INFO: Deploying Web service: PartnerService [8/27/09 19:18:55:797 EDT] 42e54fb1 SystemErr R Aug 27, 2009 7:18:55 PM org.apache.axis2.deployment.ServiceDeployer deploy INFO: Deploying Web service: version-1.3.aar [8/27/09 19:23:27:132 EDT] 66cbcfb1 SystemErr R java.security.AccessControlException: access denied (java.net.SocketPermission xxx.xx.xx.xxx:80 connect,resolve) [8/27/09 19:23:27:132 EDT] 66cbcfb1 SystemErr R at java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled Code)) [8/27/09 19:23:27:132 EDT] 66cbcfb1 SystemErr R at java.security.AccessController.checkPermission(AccessController.java(Compiled Code)) [8/27/09 19:23:27:133 EDT] 66cbcfb1 SystemErr R at java.lang.SecurityManager.checkPermission(SecurityManager.java(Compiled Code)) [8/27/09 19:23:27:133 EDT] 66cbcfb1 SystemErr R at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java(Compiled Code)) [8/27/09 19:23:27:133 EDT] 66cbcfb1 SystemErr R at java.lang.SecurityManager.checkConnect(SecurityManager.java:1040) [8/27/09 19:23:27:133 EDT] 66cbcfb1 SystemErr R at java.net.Socket.connect(Socket.java:473) [8/27/09 19:23:27:133 EDT] 66cbcfb1 SystemErr R at java.net.Socket.connect(Socket.java:429) [8/27/09 19:23:27:133 EDT] 66cbcfb1 SystemErr R at java.net.Socket.init(Socket.java:336) [8/27/09 19:23:27:133 EDT] 66cbcfb1 SystemErr R at java.net.Socket.init(Socket.java:212) [8/27/09 19:23:27:133 EDT] 66cbcfb1 SystemErr R at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79) [8/27/09 19:23:27:133 EDT] 66cbcfb1 SystemErr R at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$1.doit(ControllerThreadSocketFactory.java:90) [8/27/09 19:23:27:133 EDT] 66cbcfb1 SystemErr R at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$SocketTask.run(ControllerThreadSocketFactory.java:157) [8/27/09 19:23:27:133 EDT] 66cbcfb1 SystemErr R at java.lang.Thread.run(Thread.java:571) [8/27/09 19:23:27:134 EDT] 65520fb0 SystemErr R java.lang.NullPointerException [8/27/09 19:23:27:134 EDT] 65520fb0 SystemErr R at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:720) [8/27/09 19:23:27:134 EDT] 65520fb0 SystemErr R at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321) [8/27/09 19:23:27:134 EDT] 65520fb0 SystemErr R at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) [8/27/09 19:23:27:134 EDT] 65520fb0 SystemErr R at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) [8/27/09 19:23:27:134 EDT] 65520fb0 SystemErr R
RE: Unable to get Header tags in custom module's inflow handler
did you supply code for com.cisco.mesha.MeshaMessageReceiver ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 31 Aug 2009 05:03:09 -0700 From: sws...@cisco.com To: axis-user@ws.apache.org Subject: Re: Unable to get Header tags in custom module's inflow handler Hi Nandana, I have tried in the same way, how you have dont. But stil i am getting the same error. I have attached the outflowhandler, inflowhandler, module.xml and service.xml. I have rampart engageand custom module engaged in my client program also. soni swapna wrote: Hi Nandana, Yes, i am doing the similar thing. I am using Axis2 1.4 and Rampart 1.3. In I am adding the headers in custom module's Outflow handler, then it goes to rampart and custom modules inflow handler gets executed. and in this i am reading header tags added in outflow handler. But no header tags are coming. I have custom module and rampart module engage both at client and service side. Thanks, Swapna Soni. Nunny wrote: Hi, I have done a very similar thing for testing encrypted/signed headers and I didn't face any issues. In this test, I used a module [1] which inserts some headers to the SOAP messages in the out flow and used the same module to log them in the in flow. And I encrypted/signed those custom headers added by the module using Rampart. I have tested this with Axis2 1.4 / Rampart 1.4 and Axis2 1.5 / Rampart trunk without any problem. If I understood correct, you seem to be doing a similar thing. What is the Axis2 version and Rampart version you are using ? Are you encrypting the custom headers added by your module. Can you attach a sample message on the transit ? regards, Nandana [1] - https://svn.apache.org/repos/asf/webservices/rampart/scratch/java/test-module/READ_ME.txt On Thu, Aug 27, 2009 at 4:36 PM, soni swapna sws...@cisco.com wrote: Hi Axis Team, In a client class we have our custom module and rampart engaged. While sending the request, we are setting some header tags in outflow handler of custom module. while request going out, first custom module's outflow handler is executing then rampart module's outflow handler is executing. When request goes til webservice, (webservice is also having rampart and custom module engage), then webservice custom module's inflow handler is executing. We have a code to extract custom header tags in inflow handler. But the custom header tags we have set in outflow handler is not coming till inflow handler. And in inflow handler the envelope is in encrypt form. Could you please tell me how to get these header values in inflow handler. Please reply as soon as possible. This is very urgent. Thanks, Swapna Soni -- View this message in context: http://www.nabble.com/Unable-to-get-Header-tags-in-custom-module%27s-inflow-handler-tp25169355p25169355.html Sent from the Axis - User mailing list archive at Nabble.com. http://www.nabble.com/file/p25222387/InFlowHandler.java InFlowHandler.java http://www.nabble.com/file/p25222387/OutFlowHandler.java OutFlowHandler.java http://www.nabble.com/file/p25222387/service.xml service.xml http://www.nabble.com/file/p25222387/module.xml module.xml -- View this message in context: http://www.nabble.com/Unable-to-get-Header-tags-in-custom-module%27s-inflow-handler-tp25169355p25222387.html Sent from the Axis - User mailing list archive at Nabble.com. _ Windows Live: Keep your friends up to date with what you do online. http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009
RE: imcompatible issue between axis2 and weblogic 10
please display contents of \war\WEB-INF\lib\struts-1.2.9-lib.jar!/META-INF/tlds/struts-tiles.tld Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: RE: imcompatible issue between axis2 and weblogic 10 Date: Tue, 25 Aug 2009 15:03:41 -0400 From: mary...@jpmorgan.com To: axis-user@ws.apache.org No, it doesn’t work. Got same error. Mary Hu From: Chinmoy Chakraborty [mailto:cch...@gmail.com] Sent: Tuesday, August 25, 2009 1:25 AM To: axis-user@ws.apache.org Subject: Re: imcompatible issue between axis2 and weblogic 10 Open 'startWebLogic.cmd' in edit mode and replace line 95 to 97 with the following text: set SAVE_JAVA_OPTIONS=-Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl set JAVA_OPTIONS=%SAVE_JAVA_OPTIONS% and see if this wsorks. Chinmoy On Tue, Aug 25, 2009 at 3:02 AM, Hu, Mary - ITG mary...@jpmorgan.com wrote: After removed this jar, weblogic can't parse TLD anymore: Error while parsing the Tag Library Descriptor at c: ... \war\WEB-INF\lib\struts-1.2.9-lib.jar!/META-INF/tlds/struts-tiles.tld. com.ctc.wstx.exc.WstxIOException: java.sun.com at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:683) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086) at weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCacheHe lper.java:134) Mary Hu Int: 8.226.2620 Ext: 973.793.2620 -Original Message- From: Andreas Veithen [mailto:andreas.veit...@gmail.com] Sent: Monday, August 24, 2009 4:54 PM To: axis-user@ws.apache.org Subject: Re: imcompatible issue between axis2 and weblogic 10 Try removing geronimo-stax-api_1.0_spec-1.0.1.jar from WEB-INF/lib. Andreas On Mon, Aug 24, 2009 at 22:28, Hu, Mary - ITGmary...@jpmorgan.com wrote: In axis2 - Application Server Specific Configuration Guide, it mentions how to deploy axis2 into weblogic. However, I have seen an issue that is blocking me. I wonder anyone has a solution for it: 1. I have a WAR containing axis2 jars. 2. My application requires prefer-web-inf-classes to be set as true in weblogic.xml. 3. I got below exception: java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot be cast to javax.xml.stream.XMLInputFactory at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:137 ) at weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCach eHelper.java:124) I know it is because weblogic can't use Woodstock stream parser. But how to instruct weblogic to use Woodstock beside wrap the app into an EAR (It doesn't apply me case)? Appreciate any help. Mary Hu This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _ Windows Live: Make it easier for your friends to see what you’re up to on Facebook. http://windowslive.com/Campaign
RE: Securing Axis2-Admin
#log4j.properties should contain a statement which associates your package to Level e.g. #package=LEVEL, NameOfAppender #BEGIN CONSOLE APPENDER (stdout) #first:type of appender (fully qualified class name) note all stdout goes to ConsoleAppender log4j.appender.stdout=org.apache.log4j.ConsoleAppender #Many appenders require a layout. log4j.appender.stdout.layout=org.apache.log4j.SimpleLayout # additionally, some layouts can take additional information -- #like the ConversionPattern for the PatternLayout. # log4j.appender.stdout.layout.ConversionPattern=%d %-5p %-17c{2} (%30F:%L) %3x - %m%n # BEGIN Rolling APPENDER: (rolling) # first:type of appender (fully qualified class name) log4j.appender.rolling=org.apache.log4j.RollingFileAppender # second: Any configuration information needed for that appender. #Many appenders require a layout. log4j.appender.rolling.File=example.log # max file size of rolling appender will be 100kb log4j.appender.rolling.MaxFileSize=100KB # Keep one backup file log4j.appender.rolling.MaxBackupIndex=1 #pattern of the logfile log4j.appender.rolling.layout=org.apache.log4j.PatternLayout log4j.appender.rolling.layout.ConversionPattern=%p %t %c - %m%n //default rootCategory for level is debug with output directed to stdout or //RollingFileAppender as in log4j.rootCategory=debug,stdout,rolling //you want to assign your package=LEVEL,Appender1,Appender2 as defined here de.tamundo.security=warn,stdout,rolling valid levels are debug, info, warn, error, fatal and log. appenders are console, files, GUI components, remote socket servers, JMS, NT Event Loggers, and remote UNIX Syslog daemons http://logging.apache.org/log4j/1.2/manual.html HTH Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: m...@moritz-maedler.de To: axis-user@ws.apache.org Subject: Securing Axis2-Admin Date: Mon, 24 Aug 2009 14:11:58 +0200 Hello, I'm using axis2 1.5 as a tomcat6 servlet. As it runs in production, I want to secure the axis2 admin frontendby restricting the access to a specifig (e.g. local) IP-range. How can this be implemented? I tried to integrate a filter which sends a 403-error upon access with wrongIP-address. This leaded to following exception when restarting tomcat:-Aug 24, 2009 12:47:30 PM org.apache.catalina.core.StandardContext processTldsSEVERE: Error reading tld listeners java.lang.NullPointerExceptionjava.lang.NullPointerException at org.apache.log4j.Category.isEnabledFor(Category.java:749)at org.apache.commons.logging.impl.Log4JLogger.isTraceEnabled(Log4JLogger.java:333) at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:581) at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:282)at org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4307) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4144)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start
RE: Problem with ns qualified attribute of a client message
http://www.fosstrak.org/epcis/docs/user-guide.html Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: Problem with ns qualified attribute of a client message From: err...@free.fr To: axis-user@ws.apache.org Date: Mon, 24 Aug 2009 23:36:00 +0200 Hello, I do have a problem with a axis2 generated webservice client. The webservice I use is the standard one specified by EPCglobal (file a use to generate the client are on http://www.epcglobalinc.org/standards/epcis) My problem is that the current code : QueryParams params = new QueryParams(); QueryParam p1 = new QueryParam(); p1.setName(eventType); p1.setValue(ObjectEvent); params.addParam(p1); Poll polData = new Poll(); polData.setQueryName(SimpleEventQuery); polData.setParams(params); PollE poll = new PollE(); poll.setPoll(polData); EPCglobalEPCISServiceStub myStub = new EPCglobalEPCISServiceStub(http://localhost:8080/Test;); myStub.poll(poll); Generate a SOAP message like this : ?xml version='1.0' encoding='utf-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Body ns5:Poll xmlns:ns5=urn:epcglobal:epcis-query:xsd:1 queryNameSimpleEventQuery/queryName paramsparamnameeventType/name value xmlns:s1=http://www.w3.org/2001/XMLSchema-instance; xmlns:s2=http://www.w3.org/2001/XMLSchema; s1:type=s2:stringObjectEvent/value/param/params /ns5:Poll /soapenv:Body /soapenv:Envelope My problem is the server. I don't have access to the code on it (proprietary solution :-/). And it does not work as it does not want fully qualified type attribute like the ones in value tag. It's waiting for valueObjectEvent/value instead of : value xmlns:s1=http://www.w3.org/2001/XMLSchema-instance; xmlns:s2=http://www.w3.org/2001/XMLSchema; s1:type=s2:stringObjectEvent/value any tips to get rid of this attributes ? Thank you very much for any help Cheers, -- MBdC _ With Windows Live, you can organize, edit, and share your photos. http://www.windowslive.com/Desktop/PhotoGallery
RE: Problem with ns qualified attribute of a client message
if your could convince the service provider to provide the wsdl and xsd schema we could get a working example for you Bon Chance Martin Gainty __ Note de déni et de confidentialité Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: RE: Problem with ns qualified attribute of a client message From: err...@free.fr To: axis-user@ws.apache.org Date: Tue, 25 Aug 2009 00:09:33 +0200 Le lundi 24 août 2009 à 18:03 -0400, Martin Gainty a écrit : http://www.fosstrak.org/epcis/docs/user-guide.html Thank you very much for the link Martin, I already knew that project, but I wanted to use axis2 for generate my own client (to learn how generate ws clients). My problem is a limitation of Axis2 ? Of course if there's no way of tunning Axis2 to match my needs, I will use fosstrack. Thanks again, -- MBdC _ With Windows Live, you can organize, edit, and share your photos. http://www.windowslive.com/Desktop/PhotoGallery
RE: AUTO: Out on Vacation (returning 09/01/2009)
how come the ibm guys from india are always on vacation? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: AUTO: Out on Vacation (returning 09/01/2009) From: muk...@us.ibm.com To: axis-user@ws.apache.org Date: Wed, 19 Aug 2009 14:16:40 -0600 I am out of the office until 09/01/2009. I will be out of office until Tuesday 07/01/2009 .For CAE issues please contact Michael Cooper and for all other issues please contact David Loose. Note: This is an automated response to your message Re: [AXIS2] Control character encoding used by axis2 server for responses sent on 8/19/09 0:46:57. This is the only notification you will receive while this person is away. _ Windows Live: Keep your friends up to date with what you do online. http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009
RE: Optional fields
org.apache.axis2.transport.http.AxisServlet references the xsd in doGet with supplied agent BTW: an element is declared optional with minOccurs=0 http://www.obj-sys.com/docs/xbCCppUGv1p0/XBinder30.html here is the AxisServlet.java code which references the xsd: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { initContextRoot(request); // this method is also used to serve for the listServices request. String requestURI = request.getRequestURI(); String query = request.getQueryString(); // There can be three different request coming to this. // 1. wsdl, wsdl2 and xsd requests // 2. list services requests // 3. REST requests. if ((query != null) new QueryStringParser(query).search(metadataQueryParamNames)) { // handling meta data exchange stuff agent.initTransportListener(request); agent.processListService(request, response); } else if (requestURI.endsWith(.xsd) || requestURI.endsWith(.wsdl)) { agent.processExplicitSchemaAndWSDL(request, response); } else if (requestURI.endsWith(LIST_SERVICES_SUFFIX) || requestURI.endsWith(LIST_FAULTY_SERVICES_SUFFIX)) { // handling list services request try { agent.handle(request, response); } catch (Exception e) { throw new ServletException(e); } } else if (!disableREST) { new RestRequestProcessor(Constants.Configuration.HTTP_METHOD_GET, request, response) .processURLRequest(); } else { showRestDisabledErrorMessage(response); } } HTH Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: kevin.willoug...@arrisi.com To: axis-user@ws.apache.org Date: Mon, 17 Aug 2009 10:12:47 -0400 Subject: Optional fields I'm working with a WSDL that has optional fields, e.g., 'xs:element name=alarmTally type=xs:int minOccurs=0/'. When the client does not supply a field, how is the server supposed to know if the field was omitted? _ Hotmail® is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009
RE: Build Problem
check $AXIS_HOME/stagingRepo/axis2-1.5/modules/kernel/pom.xml for maven-surefire-plugin plugin artifactIdmaven-surefire-plugin/artifactId inheritedtrue/inherited configuration skipfalse/skip excludes exclude**/*Abstract*.java/exclude exclude**/*Util*.java/exclude exclude**/*MessageContextChangeTest.java/exclude exclude**/MessageContextChangeTest.java/exclude !-- Removed because of problem on Java5. Needs reinstated -- /excludes includes include**/*Test.java/include /includes /configuration /plugin creates F:\AXIS\axis2-1.5\stagingRepo\axis2-1.5\modules\kernel\target\surefire-reports\TEST-org.apache.axis2.transport.tcp.TCPTransportTest.xml make sure the user you logged in as has read,write,execute delete access to $AXIS_HOME/stagingRepo/axis2-1.5/modules/kernel/target/surefire-reports folder Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: richard.pl...@enabil.com To: axis-user@ws.apache.org Date: Sat, 15 Aug 2009 13:17:21 -0600 Subject: Build Problem While trying to build Axis2-1.5, I get the following Maven2 error. Any help in building would be appreciated: [INFO] Surefire report directory: /home/richip/src/axis2-1.5/modules/kernel/target/surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: Unable to create test class 'org.apache.axis2.transport.tcp.TCPTransportTest'; nested exception is java.lang.ClassNotFoundException: org.apache.axis2.transport.tcp.TCPTransportTest not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebootermtx5pn.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}; nested exception is org.apache.maven.surefire.testset.TestSetFailedException: Unable to create test class 'org.apache.axis2.transport.tcp.TCPTransportTest'; nested exception is java.lang.ClassNotFoundException: org.apache.axis2.transport.tcp.TCPTransportTest not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebootermtx5pn.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} org.apache.maven.surefire.testset.TestSetFailedException: Unable to create test class 'org.apache.axis2.transport.tcp.TCPTransportTest'; nested exception is java.lang.ClassNotFoundException: org.apache.axis2.transport.tcp.TCPTransportTest not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebootermtx5pn.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} java.lang.ClassNotFoundException: org.apache.axis2.transport.tcp.TCPTransportTest not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebootermtx5pn.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(libgcj.so.10) at java.lang.ClassLoader.loadClass(libgcj.so.10) at java.lang.ClassLoader.loadClass(libgcj.so.10) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:87) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209) at org.apache.maven.surefire.Surefire.run(Surefire.java:156) at java.lang.reflect.Method.invoke(libgcj.so.10
RE: field order in a complex type
Los indicadores de la orden se utilizan para definir la pedido de los elementos.Todo el indicador El indicador especifica que los elementos del niño pueden aparecer en cualquier orden, y que cada elemento del niño debe ocurrir solamente una vez: por ejemplo: xs:element name=person xs:complexType xs:all xs:element name=firstname type=xs:string/ xs:element name=lastname type=xs:string/ /xs:all /xs:complexType /xs:element Nota: Al usar el indicador usted puede fijar el indicador a 0 o a 1 y el indicador se puede fijar solamente a 1 (y se describen más adelante). El indicador especifica que un elemento u otro del niño puede ocurrir: xs:element name=person xs:complexType xs:choice xs:element name=employee type=employee/ xs:element name=member type=member/ /xs:choice /xs:complexType /xs:element El indicador especifica que los elementos del niño deben aparecer en una orden específica:xs:element name=person xs:complexType xs:sequence xs:element name=firstname type=xs:string/ xs:element name=lastname type=xs:string/ /xs:sequence /xs:complexType /xs:element http://www.w3schools.com/Schema/schema_complex_indicators.asp Saludos Cordiales desde EEUU! Martin Gainty __ Respete por favor las derechas del remitente y del recipiente de esta transmisión y no altere ni modifique la transmisión en cualquier forma. Gracias Subject: field order in a complex type From: miguel.igles...@cellnpay.com.mx To: axis-user@ws.apache.org Date: Fri, 14 Aug 2009 11:30:59 -0500 Hello, I'm back with another noob question(I didn't solve the previous, but apparently the client can live with the format of the response I am sending). I have been looking for a way to sort the fields of a complex type in the response, but I haven't found anything. I have a bean who contains the response of a web services, something like this: public class ConsultaResponse { private String referencia; private String facturador; private String estatus; private String referencia1; private String referencia2; private String referencia3; private String referencia4; private String fecha; private String importe; private String referencia5; /** * * getters and setters... * */ } ... and I need to send the response in the order you can see in the declaration of the fields... there is something I can write in the services.xml, or elsewhere, to make that happen? thanks -- Ing. Miguel Angel Iglesias Gerente de Producción CellnPay SA de CV Oficina: 52 (55) 55498918 ext 136 Cel: +52 (55)5530384897 _ Get your vacation photos on your phone! http://windowsliveformobile.com/en-us/photos/default.aspx?OCID=0809TL-HM
RE: Passing 2 byte arrays to web service is yielding strange results
cant access the aar ? any ability to put this on a http or ftp site or display the wsdl? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 14 Aug 2009 12:27:42 -0700 From: justin.fe...@gmail.com To: axis-user@ws.apache.org Subject: Re: Passing 2 byte arrays to web service is yielding strange results Attached is the AAR file (TestWS.aar) as well as a test client (TestClient.jar). The test client files were generated using WSDL2Java (ADB). -Justin http://www.nabble.com/file/p24977228/TestClient.jar TestClient.jar http://www.nabble.com/file/p24977228/TestWS.aar TestWS.aar Andreas Veithen-2 wrote: Justin, Can you package your service in an AAR file (or any other deployable artifact) and post a simple test client that reproduces the problem? Andreas On Fri, Aug 14, 2009 at 00:19, JFeistyjustin.fe...@gmail.com wrote: Axis newbie hereI have a very simple (pojo) web service and am serving it using Axis2 v1.5 in Tomcat 6. I have one web method called test(). It takes as a parameter a 'Placeholder' object. That 'Placeholder' object has two private byte array fields exposed with getters and setters. Here is the server-side code: public class TestWS { public void test(Placeholder p) { System.out.println(Placeholder.first size: + p.getFirst().length); System.out.println(Placeholder.second size: + p.getSecond().length); } public class Placeholder { private byte[] first = null; private byte[] second = null; public byte[] getFirst() { return first; } public void setFirst(byte[] first) { this.first = first; } public byte[] getSecond() { return second; } public void setSecond(byte[] second) { this.second = second; } } I call this web method and set the Placeholder's 'first' property to a 5-byte byte array and the 'second' property to a 2-byte byte array. The output is very surprising: Placeholder.first size: 5 Placeholder.second size: 5 What is going on here? Why is the second byte array the same as the first? Thanks, Justin -- View this message in context: http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24960357.html Sent from the Axis - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24977228.html Sent from the Axis - User mailing list archive at Nabble.com. _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009
RE: Axis2 Client in Weblogic: org.apache.axis2.deployment.DeploymentException
did you try Java2WSDL -dlb -cn FullyQualofiedPackageAndClass to create doc/lit wsdl Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Thu, 13 Aug 2009 07:01:47 -0700 From: sameer.mhas...@gmail.com To: axis-user@ws.apache.org Subject: Re: Axis2 Client in Weblogic: org.apache.axis2.deployment.DeploymentException Guys, Any takers for this? IamSam wrote: Hello Members, I am using Stub generated by Axis2 1.4 (WSDL2java) in a TimerTask scheduled inside Weblogic 9.0. It works normally but some times throws this exceptions and then onwards stops working org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Class Not found : sample.axisversion.Version at ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(Axis2_14_DIR\\repository,Axis2_14_DIR\\conf\\axis2.xml); Here are the details, WebService: .net based webservice Client: Java Thread scheduled by Timer (inside Weblogic. Its a Webapp) Version: Axis2 1.4, Rampart 1.3 I have not deployed Axis2 inside weblogic but have copied the jars inside the lib folder of my project and create the Context using the path of Axis2.xml. Is it happening because I create a new Object everytime in each thread and something is messing up because of that. Thanks, Sameer -- View this message in context: http://www.nabble.com/Axis2-Client-in-Weblogic%3A-org.apache.axis2.deployment.DeploymentException-tp24943227p24954652.html Sent from the Axis - User mailing list archive at Nabble.com. _ Express your personality in color! Preview and select themes for Hotmail®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009
RE: retrieve header information from skeleton
should the solution provider accomplish this difficult task for free? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Subject: retrieve header information from skeleton Date: Thu, 13 Aug 2009 13:42:29 -0400 From: mary...@jpmorgan.com To: axis-user@ws.apache.org I need retrieve header data from generated skeleton. I know one way to read the header is from a handler where a MessageContext can pass the header. However, I have to insert the header data into body in the handler. It is not efficient and awkward. Do you know a straight forward way? Thanks, Mary Hu This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _ Get back to school stuff for them and cashback for you. http://www.bing.com/cashback?form=MSHYCBpubl=WLHMTAGcrea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
RE: error sending S/MIME
Illegal interception and manipulation costs businesses millions of dollars in lost revenue here AXIS Security is handled by Rampart Rampart doc states these steps for implementing BC 1.) Download bouncycastle according to your java version. You can download bouncycastle from the following link. http://www.bouncycastle.org/latest_releases.html 2.) Add the bcprov-jdkXX-139.jar to your service's / client's classpath. 3.) Add the following line to java.security file which can be found in JRE's lib/security directory as the last line. security.provider.X=org.bouncycastle.jce.provider.BouncyCastleProvider Before you try any of the samples makesure you 1.) Have the Axis2 standard binary distribution downloaded and extracted. 2.) Set the AXIS2_HOME environment variable 3.) Run ant from the samples directory to copy the required libraries and modules to relevant directories in AXIS2_HOME. add both rahas-1.4.mar and rampart-1.4.mar modules to /WEB-INF/modules/modules.list rahas-1.4.mar rampart-1.4.mar /WEB-INF/conf/axis2.xml would contain this global reference module ref=rampart/ then configure inflow and outflow security parameters e.g: module ref=rampart / !-- sample-10 : MTOM optimize encrypted content -- parameter name=OutflowSecurity action itemsTimestamp Signature Encrypt/items userclient/user !-- your customised Callback Handler class goes here -- passwordCallbackClassorg.apache.rampart.samples.sample10.PWCBHandler/passwordCallbackClass signaturePropFileclient.properties/signaturePropFile signatureKeyIdentifierDirectReference/signatureKeyIdentifier encryptionKeyIdentifierDirectReference/encryptionKeyIdentifier encryptionUserservice/encryptionUser /action /parameter parameter name=InflowSecurity action itemsTimestamp Signature Encrypt/items !-- your customised Callback Handler class goes here -- passwordCallbackClassorg.apache.rampart.samples.sample10.PWCBHandler/passwordCallbackClass signaturePropFileclient.properties/signaturePropFile /action /parameter client.properties would contain: org.apache.ws.security.crypto.provider=org.bouncycastle.jce.provider.BouncyCastleProvider org.apache.ws.security.crypto.merlin.keystore.type=jks org.apache.ws.security.crypto.merlin.keystore.password=PasswordUsedTOCreateKeyStoreFile.jks org.apache.ws.security.crypto.merlin.file=client.jks Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 12 Aug 2009 15:31:39 +0200 From: tomaz.majerh...@arnes.si To: axis-user@ws.apache.org Subject: error sending S/MIME Env: OS: Win XP Tomcat: 6.0.18 java: 1.6.0_10-b33 axis2: 1.4.1 I have tomcat web application which use crypto and bouncy castle for signing the mail and it work well. But when I'm using same class in my soap service(axis2) I get error: javax.mail.MessagingException: IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/pkcs7-signature; name=smime.p7s; smime-type=signed-data Do any body know what is problem. Regards _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009
RE: WSDL2code : Compilation Failure
a valid business reason to use a java reserved word from this list of java reserved words http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 12 Aug 2009 16:44:10 +0200 From: turbok...@gmx.de Subject: WSDL2code : Compilation Failure To: axis-user@ws.apache.org Hi folks, I am generating from a wsdl Client Server Java code, by using the axis2-wsdl2code-maven-plugin.The wsdl file contains the following element: xs:complexType name=ErrorReportTypexs:sequence...xs:element name=Class form=unqualified type=xs:string/ ... /xs:sequence/xs:complexType While compilation phase a class named “ErrorReporType” containing a field named Class, and the getter and setter methods are tried to be generated, without success. The compilation of the stub failures with the message ...myPackage.MyStub.ErrorReportType cannot override getClass() The problem is the wsdl element Class as shown above and the final declared method getClass()on java side. Is there any chance to solve this problem? I would appreciate any help... Thanks Ike _ Get your vacation photos on your phone! http://windowsliveformobile.com/en-us/photos/default.aspx?OCID=0809TL-HM
RE: Axis2 - session management
//so if you setup a messageContext and then set property for each stored attribute org.apache.axis2.context.MessageContext simpleMsg = new org.apache.axis2.context.MessageContext(); simpleMsg.setProperty(my, my); simpleMsg.setProperty(dog, dog); simpleMsg.setProperty(has, has); simpleMsg.setProperty(fleas, fleas); //xml file I/O java.io.File theFile; java.lang.String theFilename; try { theFile =new java.io.File(pathname/request.xml); theFilename = theFile.getName(); log.debug(title + request.xml = [ + theFilename + ]); } catch (Exception ex) { log.debug(title + error creating request.xml file = [ + ex.getMessage() + ]); theFile = null; } if (theFile != null) { try { // setup an output stream to a physical file java.io.FileOutputStream outStream = new java.io.FileOutputStream(theFile); // attach a stream capable of writing objects to the // stream connected to the file java.io.ObjectOutputStream outObjStream = new java.io.ObjectOutputStream(outStream); // try to save the message context log.debug(title + saving message context.+simpleMsg.getMessageID()); outObjStream.writeObject(simpleMsg); // close out the streams outObjStream.flush(); outObjStream.close(); outStream.flush(); outStream.close(); } catch (Exception ex) { log.debug(title + error saving message context = [ + ex.getClass().getName() + : + ex.getMessage() + ]); } } //end if Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 12 Aug 2009 10:05:19 -0400 Subject: Re: Axis2 - session management From: ramyakgr...@gmail.com To: axis-user@ws.apache.org Thanks for ur tip on the CDATA. I'll look into that and come back with any issues I may have. The other question I have is regarding storing the request xml. Where and how could that be done? I read that OperationContext and SOAPSession can be used to achieve this. But I will need some help with the API. Thanks, wsnewbie On Wed, Aug 12, 2009 at 3:32 AM, Andreas Veithen andreas.veit...@gmail.com wrote: You need to take into account that Axis2 by default doesn't preserve CDATA sections (and converts them to text nodes). You can use the approach described in [1] to change this. Andreas [1] http://people.apache.org/~veithen/synapse/faq.html On Wed, Aug 12, 2009 at 00:39, Ramya K Gramaramyakgr...@gmail.com wrote: Hello, I'm using Axis2/Java to create a web service wherein the request and response xmls are very much the same except for some additional data from the db that gets added on to the request as a response. Also, there is a lot of CDATA sections in the request that need to be sent back in the response as is without any modification. In designing this service, we've come up with the strategy of saving the incoming SOAP request.xml(in memory) somewhere so that it can be used to recreate the response + updated data from the db (stuffing in empty tags with data from db). Is this a good approach as far as Axis2 is concerned. If so what/how would be teh best place of storing the request.xml. Are there any multi-threading issues that i need to be concerned about. What would be a fool-proof and optimal approach of doing this in Axis2. From my initial research, I've found that OperationContext with SOAPSession scope can be used for this. Am I correct here? Also, since there are a lot of CDATA sections in the request and response xmls, is there anything special that needs to be done? Your feedback will be very helpful in designing my service further. Thanks, wsNewbie
RE: Using ws-addressing in asynchronous services communication
i would leave MessageId alone as MessageID is the id for each predefined Incoming/Outgoing Message did you try to add a new ID as a Parameter e.g: MessageContext mc= new MessageContext(); final ConfigurationContext context = ConfigurationContextFactory.createEmptyConfigurationContext(); mc.setConfigurationContext(context); Integer uniqueId=new java.lang.Integer(AnIntegerWhichIsPassedIn); mc.getConfigurationContext().getAxisConfiguration() .addParameter(SomeUniqueID, uniqueId); hth Martin Gainty __ Note de déni et de confidentialité Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Tue, 11 Aug 2009 16:20:44 +0200 Subject: Using ws-addressing in asynchronous services communication From: hakon.sageh...@bccs.uib.no To: axis-user@ws.apache.org Hi all, A general ws question so hopefully someone takes the time to answer. I have a thought setup of two web services and one client using WS-addressing communicating asynchronous . And wanted to hear if this is possible. I've got two services A and B, A is a main service computing some thing and this takes a long time, so I will send the result of this computation to service B. Where to put the result will be given to service A by the client using the Replayto header in WS-addressing spec. So fa so good I think, but it would be nice for the client to get an id back from service A that it can give to service B for quering, is data from service a related to this invocation with id, where id is the id given to the client by service A. So my questionis is it possiblefor service A to give a id to the client while it replays the end result of the computation to service B. Or can this be acomplished using the massage id's ?? cheers, Håkon -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) _ Express your personality in color! Preview and select themes for Hotmail®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009
RE: Axis2 and Tomcat's SECURITY Flag
verify ws-addressing-version.mar is in axis2/WEB-INF/modules? axis2/WEB-INF/conf/axis2.xml contains module ref=addressing/ axis2/web-inf/modules/modules.list contains addressing-version.mar Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Tue, 11 Aug 2009 13:19:08 -0600 From: greg.lo...@usask.ca Subject: Axis2 and Tomcat's SECURITY Flag To: axis-user@ws.apache.org Hi List, I'm trying to get my Axis2 application to run on a Tomcat 6.0.18 install running on an Ubuntu server. This server runs with the Java 2 Security framework in Tomcat turned ON, so solutions involving turning it off won't work for this case :P Unfortunately I keep running into permissions issues, and there does not appear to be any definitive (or working!) documentation as to precisely what permissions Axis2 needs. I've tried a number of different permissions approaches, but I just can't seem to get the application going. For example, adding the following to the permissions: // = Axis2 Permissions // grant { // For some mysterious reason these 2 are required outside the Axis-specific permissions // No idea what the codebase should be permission java.io.FilePermission ${catalina.base}/webapps/player/WEB-INF/-, read; permission java.lang.RuntimePermission getClassLoader; }; grant codeBase file:/var/lib/tomcat6/webapps/player/- { permission java.lang.RuntimePermission createClassLoader; permission java.lang.RuntimePermission setContextClassLoader; permission java.lang.RuntimePermission checkPropertiesAccess; permission java.lang.RuntimePermission getClassLoader; permission java.lang.RuntimePermission getProtectionDomain; permission java.lang.RuntimePermission defineClassInPackage.org.apache.jasper.runtime; permission java.lang.RuntimePermission shutdownHooks; permission java.lang.RuntimePermission accessDeclaredMembers; permission java.util.PropertyPermission *, read,write; permission java.net.SocketPermission ex.com, resolve, connect; permission java.io.FilePermission ${catalina.base}/webapps/player/WEB-INF/modules/*, read,write; permission java.io.FilePermission ${catalina.base}/webapps/player/WEB-INF/services/*, read,write; permission java.io.FilePermission ${catalina.home}/common/classes, read; permission java.io.FilePermission ${catalina.home}/shared/classes, read; permission java.io.FilePermission ${catalina.base}/common/classes, read; permission java.io.FilePermission ${catalina.base}/shared/classes, read; permission java.io.FilePermission ${catalina.home}/common/i18n/*, read; permission java.io.FilePermission ${catalina.home}/common/lib/*, read; permission java.io.FilePermission ${catalina.home}/bin/bootstrap.jar, read; permission java.io.FilePermission ${catalina.base}/webapps/player/WEB-INF/scriptServices/*, read; permission java.io.FilePermission ${java.home}/lib/ext/*, read; // Other directories that are in the classpath permission java.io.FilePermission /usr/share/java/*, read; }; gets me this result (note that this *exact* deployed war works fine when security is off, so the module *is* there): org.apache.axis2.AxisFault: The system is attempting to engage a module that is not available: addressing at org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:506) at org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(AxisConfiguration.java:633) The app does work when security is turned off, and also works when granted java.security.AllPermissions, but that's really not ideal. Does anyone have a working set of permissions for Axis2? _ Get free photo software from Windows Live http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009
RE: Not Generating prefixes for sub-sub elements
i did not see the definition f or Email? please provide definition for tns:Email referenced at element name=Email nillable=true type=tns:Email / takk Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 10 Aug 2009 15:01:21 +0200 Subject: Not Generating prefixes for sub-sub elements From: hakon.sageh...@bccs.uib.no To: axis-user@ws.apache.org Hi all, I got a definition like this in the schema I use in my wsdl complexType name=ProjectMemberType sequence element name=UserId nillable=true type=xsd:int / element name=Username nillable=true type=xsd:string / element name=Email nillable=true type=tns:Email / element name=Roles nillable=true type=tns:Roles / /sequence /complexType complexType name=Roles sequence element maxOccurs=unbounded name=Role nillable=true type=tns:Role / /sequence /complexType simpleType name=Role restriction base=xsd:string enumeration value=ADMIN / enumeration value=USER / enumeration value=TESTER / enumeration value=GUEST / /restriction /simpleType And then I make a element out of this in my wsdl schema part like this. xsd:element name=ProjectMembers xsd:complexType xsd:sequence xsd:element name=Memeber type=pgm:ProjectMemberType minOccurs=1 maxOccurs=unbounded/ /xsd:sequence /xsd:complexType /xsd:element And I want all the sub elements of ProjectMemberType to have prefixes, to be qualified. I've set the attribute elementFormDefault to qualified both in the schema and schema in the wsdl, but when my web service returns a instance of this element it looks like this ns2:ProjectMembers ns2:Memeber ns1:UserId xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;234/ns1:UserId ns1:Username xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;ole.jan...@mail.com/ns1:Username ns1:Email xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;ole.jan...@mail.com/ns1:Email Roles xmlns=http://bccs.uib.no/esysbio/projectmgnt/schema; RoleADMIN/Role /Roles /ns2:Memeber /ns2:ProjectMembers No prefix for Roles element. Is this the way it should be, or is it something wrong. I use axis 1.4.1 and adb for binding when generating the code using wsdl2code. Any help on this subject cheers, Håkon -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) _ Get your vacation photos on your phone! http://windowsliveformobile.com/en-us/photos/default.aspx?OCID=0809TL-HM
RE: Integration in Equinox-OSGi
does either OSGI ant-build.xml or maven-pom.xml have step(s) to compile jsp and servlet? create a war? deploy servlet to container? for each step provide Axis2.war as parameter to each step us...@ant.apache.org will help with ant-build.xml questions us...@maven.apache.org will help with maven-pom.xml questions ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: dan...@bimschas.com To: axis-user@ws.apache.org Subject: Integration in Equinox-OSGi Date: Mon, 10 Aug 2009 18:12:23 +0200 Hi Folks! I'm trying to simply integrate Axis2 into an Eclipse Equinox OSGi container. So far I found no easy way to do that. I think the ideal way is that there was a How-To somewhere which says: install file A, B, C, ... from Axis2-src distribution and you're done. Is there a tutorial like that which I missed? Even more ideal would be an OBR (OSGi bundle repository) repository holding the main bundle and all it's dependencies, so that one could install it by running obr install when on Apache Felix or after deploying some OBR implementation into Equinox. I tried to other ways to install it, which also failed. First one was using an OSGi-Axis2 distribution from the Knopflerfish project which simply failed because of invalid bundle headers (syntax errors and missing imports). Second one was to try to install it after downloading the src-distribution of Axis2, running complete build of it with Maven and trying to install the individual packages by hand. This is very tedious as there's no easy way to find out which bundle/ jar imports/exports the packages needed and so on. Is there maybe a tutorial for that? Are there any plans for a Maven target that puts all relevant packages into one directory so that OSGi users simply use all jars in it to get up and running? I would be very thankful for some help on this (somewhat tedious) problem! Kind regards, Daniel _ Get free photo software from Windows Live http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009
RE: unknown error
veuillez suivre cet exemple de fonctionnement d'ADBClient public class ADBClient{ public static void main(java.lang.String args[]){ try{ StockQuoteServiceStub stub = new StockQuoteServiceStub (http://localhost:8080/axis2/services/StockQuoteService;); getPrice(stub); update(stub); getPrice(stub); } catch(Exception e) { e.printStackTrace(); System.err.println(\n\n\n); } } /* fire and forget */ public static void update(StockQuoteServiceStub stub){ try{ //notification nous devons appeler le serviceStub pour l'opération StockQuoteServiceStub.Update req = new StockQuoteServiceStub.Update(); req.setSymbol (ABC); req.setPrice (42.35); stub.update(req); System.err.println(price updated); } catch(Exception e){ e.printStackTrace(); System.err.println(\n\n\n); } } /* two way call/receive */ public static void getPrice(StockQuoteServiceStub stub){ try{ //notification nous devons appeler le serviceStub pour l'opération StockQuoteServiceStub.GetPrice req = new StockQuoteServiceStub.GetPrice(); req.setSymbol(ABC); StockQuoteServiceStub.GetPriceResponse res = stub.getPrice(req); System.err.println(res.get_return()); } catch(Exception e){ e.printStackTrace(); System.err.println(\n\n\n); } } } Bon Chance Martin Gainty __ Note de déni et de confidentialité Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Thu, 6 Aug 2009 16:39:28 +0200 From: amaa...@laas.fr To: axis-user@ws.apache.org Subject: unknown error hello every one Actually, i used to work with axis2, implementing web service and invoking them by a simple client and it worked usually fine. however, i was surprised by a throwed exception i don't know the reason below is the client code which was working fine: import java.rmi.RemoteException; import org.apache.axis2.AxisFault; import doca.SoustraStub.Soust; import doca.SoustraStub.SoustResponse; public class SoustraClient { public static void main (String argv[]){ try { SoustraStub stub = new SoustraStub(http://localhost:8080/finalServ/services/Soustra;); Soust sous = new Soust(); sous.setB(7); sous.setB(4); SoustResponse resp = stub.soust(sous); System.out.println(le résultat de soustraction est :+resp.get_return()); } catch (AxisFault e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (RemoteException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } and this is the unknown exception: org.apache.axis2.AxisFault: unknown at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at doca.SoustraStub.soust(SoustraStub.java:186) at doca.SoustraClient.main(SoustraClient.java:21) please help _ Express your personality in color! Preview and select themes for Hotmail®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009
RE: Endpoint not found - friendly message
//determine which version of SOAP your request supports: String version=req.setAttribute(soapdef, soapString); if (version.equals(SOAP1.1)) { System.err.println( SOAP1.1 supports only the Fault attributes of faultactor, faultstring, faultcode); } else { if(version.equals(SOAP1.2)) System.err.println(SOAP 1.2 supports node ,reason(0).text ,faultcode.value ,faultcode.subcode ,detail ,role ); } http://www.docjar.com/docs/api/org/apache/axis2/AxisFault.html Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Thu, 6 Aug 2009 08:27:44 -0700 From: redwhite_...@yahoo.com Subject: Endpoint not found - friendly message To: axis-user@ws.apache.org Hi Everyone, I have a quick question: is there a way in Axis 2 to present a friendly message back to the client (in my case the browser) in case one don't specify the correct endpoint for example? I currently get a message similar to the one bellow. I know there was a way of handling this in Axis 1 and I was wondering how Axis 2 does it. Should I extend the Axis2 servlet and handle it myself? Thank you in advance. Exception org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /MyAppName/services/ at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:65) at org.apache.axis2.engine.Phase.invoke(Phase.java:333) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136) at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130) at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829) at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527
RE: set body message with xml file content
implement XMLWriter e.g. look at this example for XMLStreamReader org.apache.axis2.jibx.JibxDataSource public XMLStreamReader getReader() throws XMLStreamException { ByteArrayOutputStream bos = new ByteArrayOutputStream(); serialize(bos, null); return StAXUtils.createXMLStreamReader(new ByteArrayInputStream(bos.toByteArray())); } //the cast from bos to XML happens here public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException { try { //get the ctx IMarshallingContext ctx = bindingFactory.createMarshallingContext(); //get the response from supplied ctx HttpServletResponse res = (HttpServletResponse)ctx .getProperty(HTTPConstants.MC_HTTP_SERVLETRESPONSE); //assume the writer is the outputStream from Response OutputStream writer=response.getOutputStream(); boolean full=false; // marshal with all namespace declarations, since external state unknown String[] nss = bindingFactory.getNamespaces(); IXMLWriter writer = new StAXWriter(nss, xmlWriter); //set output writer for context ctx.setXmlWriter(writer); marshal(full, ctx); .. } private void marshal(boolean full, IMarshallingContext ctx) throws JiBXException { try { //get the XMLWriter from ctx IXMLWriter wrtr = ctx.getXmlWriter(); String name = elementName; int nsidx = 0; //all namespaces? if (full) { // declare all namespaces on start tag nsidx = elementNamespaceIndex; wrtr.startTagNamespaces(nsidx, name, openNamespaceIndexes, openNamespacePrefixes); } else { //get individual namespace // configure writer with namespace declared in enclosing scope wrtr.openNamespaces(openNamespaceIndexes, openNamespacePrefixes); if (!.equals(elementNamespacePrefix)) { name = elementNamespacePrefix + ':' + name; } //only 1 so write at 0th position wrtr.startTagOpen(0, name); } IMarshaller mrsh = ctx.getMarshaller(marshallerName); // marshal object representation (may include attributes) into element mrsh.marshal(dataObject, ctx); wrtr.endTag(nsidx, name); } //at this point the data is there ctx.getXmlWriter().flush(); } catch (IOException e) { throw new JiBXException(Error marshalling XML representation: + e.getMessage(), e); } } but the client is not guaranteed to be able to parse either BOS or XML without knowing the expected datatype you may want to consider receiving a ByteStream in your xsd e.g. wsdl:definitions xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; xmlns:ns1=http://org.apache.axis2/xsd; xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:ns=http://tempuri.org; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; targetNamespace=http://tempuri.org; wsdl:types xs:schema attributeFormDefault=qualified elementFormDefault=qualified targetNamespace=http://tempuri.org; ... xs:element name=retByteArrayResponse xs:complexType xs:sequence xs:element minOccurs=0 name=return nillable=true type=xs:base64Binary/ /xs:sequence /xs:complexType /xs:element ... /xs:schema wsdl:message name=retByteArrayResponse wsdl:part name=parameters element=ns:retByteArrayResponse/ /wsdl:message ... /wsdl:types ciao Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Subject: set body message with xml file content Date: Wed, 5 Aug 2009 12:01:04 +0200 From: alexapri...@alice.it To: axis-user@ws.apache.org Hi , I'm not able to set body of soap message with a xml file content previously saved !! I must save body content to re-send,in fault case ... Can I set body message, directly, without use setXxxx method of object ?
RE: Creating a service using AxisService
Hei an example from AXIS 2.1.5 examples distro illustrates you need to addMessageReceiver e.g. //an example from org.apache.axis2.deployment.ServiceBuilder // processing Default Message receivers OMElement messageReceiver = service_element.getFirstChildWithName(new QName(TAG_MESSAGE_RECEIVERS)); if (messageReceiver != null) { HashMap mrs = processMessageReceivers(service.getClassLoader(),messageReceiver); Iterator keys = mrs.keySet().iterator(); while (keys.hasNext()) { String key = (String) keys.next(); service.addMessageReceiver(key, (MessageReceiver) mrs.get(key)); } } hjelpe? Martin Gainty __ Note de déni et de confidentialité Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 5 Aug 2009 15:28:51 +0200 Subject: Creating a service using AxisService From: hakon.sageh...@bccs.uib.no To: axis-user@ws.apache.org Hi all I'm seting up a test environment and in that first I create my test service using AxisService#createService, giving the impl class, axis configuration, target ns, map of message recivers, schema ns and classloader, this works fine. Burt what I really want is to create a service based on my WSDL using the AxisService class. The only method I found that takes in a wsdl in the AxisService#createClientSideAxisService, but when I use the created service I always get Message Receiver not found for AxisOperation: {http://www.bccs.uib.no/EchoService.wsdl}SayHi Even I've configured the message reciver for the operation. Any tips on how to solve this. cheers, Håkon -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) _ Get back to school stuff for them and cashback for you. http://www.bing.com/cashback?form=MSHYCBpubl=WLHMTAGcrea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
RE: MessageContext is null, is something wrong? Still not working! Code given
could you please supply the WSDL? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: cyr...@skire.com To: axis-user@ws.apache.org Date: Wed, 5 Aug 2009 10:11:46 -0700 Subject: RE: MessageContext is null, is something wrong? Still not working! Code given After several failed attempts of putting in the zip J, Java file public class DocumentService2 implements Lifecycle { static com.skire.bluedoor.log.Log logger = com.skire.bluedoor.log.LogSource.getInstance(DocumentService2.class); public void init(ServiceContext context) throws AxisFault { logger.debug(DocumentService2 init context ); logger.debug(DocumentService2 message checking***); } public void destroy(ServiceContext context) { logger.debug(DocumentService2 destroy context ); } private MessageContext inMessge; public XMLObject getBPRecord ( String a1 , String a2 , String a3 , String a4 , String a5 ) { logger.debug(create*:+this.inMessge); logger.debug(create***static **:+MessageContext.getCurrentMessageContext()); XMLObject xobj = new XMLObject(); xobj.setStatusCode(200); xobj.setXmlcontents(just echo); return xobj; } } Services.xml file service name=UnifierWebServices scope=Request description document literal Service /description messageReceivers messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-only; class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver/ messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /messageReceivers parameter name=ServiceClasscom.skire.webservices.service.general.DocumentService2/parameter operation name=getBPRecord mep=http://www.w3.org/2004/08/wsdl/in-out; / /service From: Cyril Furtado Sent: Tuesday, August 04, 2009 7:02 PM To: 'axis-user@ws.apache.org' Subject: RE: MessageContext is null, is something wrong? Still not working! Code given Zip file did not go thru sending the f.aar file in .txt, rename to web_services.aar From: Cyril Furtado Sent: Tuesday, August 04, 2009 6:55 PM To: 'axis-user@ws.apache.org' Subject: RE: MessageContext is null, is something wrong? Still not working! Code given Thanks Deepal, I am enclosing the java file (DocumentService2.java) the web_services.aar file , in fact I just ran the code again to re verify , same result, MessageContext is null. Thanks Cyril Deepal wrote I am not sure why that does not work for you, if you can send me your service. I will give it a try. Thanks, Deepal From: Cyril Furtado Sent: Tuesday, August 04, 2009 3:45 PM To: 'axis-user@ws.apache.org' Subject: RE: MessageContext is null, is something wrong? Still not working! Thank you Deepal I changed my implementation class as given from the below articles now my class looks like public classMy service implements Lifecycle { public void init(ServiceContext context) throws AxisFault
RE: Axis2 and Java 5 Enum
the output should be simpleType e.g. simpleType name=Code restriction base=xsd:string enumeration value=ASSIGNEE_TYPE_REQUIRED/ /restriction /simpleType pls display your code and the usage of either Java2WSDL or JIBX2WSDL commands thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 31 Jul 2009 12:57:06 -0400 Subject: Re: Axis2 and Java 5 Enum From: mschmid...@gmail.com To: axis-user@ws.apache.org It's been a few days, but I finally got around to trying out Jibx2Wsdl. Unfortunately, it does not produce the correct schema for enums either. My simple status enum produces the following xml: xs:complexType name=pojoClassStatusxs:sequence//xs:complexType How can I generate this correctly? On Tue, Jul 21, 2009 at 12:59 PM, Dennis Sosnoski d...@sosnoski.com wrote: robert lazarski wrote: Yes, use Jibx2Wsdl from jibx instead of java2wsdl. jibx seems to support enums: http://jibx.sourceforge.net/tutorial/binding-advanced.html A somewhat dated article here shows how to use Jibx2Wsdl - try googling for something with the latest release. http://www.infoq.com/articles/sosnoski-code-first Beat me to it, Robert! There's a newer (and more in-depth) article on Jibx2Wsdl at http://www.ibm.com/developerworks/java/tutorials/j-jibx1/ There's also a companion one covering code generation from schema with JiBX at http://www.ibm.com/developerworks/java/tutorials/j-jibx2/ - Dennis -- Dennis M. Sosnoski Java XML and Web Services Axis2 Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 _ Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics. Check it out. http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009cat=sports
RE: Help with Deserialization of complex object with Java Webservice
complex return types such as Vector would need to be defined in the WSDL e.g. schema targetNamespace=http://xml.apache.org/xml-soap; xmlns=http://www.w3.org/2001/XMLSchema; import namespace=http://DefaultNamespace/ import namespace=http://schemas.xmlsoap.org/soap/encoding// complexType name=Vector sequence element maxOccurs=unbounded minOccurs=0 name=item type=xsd:anyType/ /sequence /complexType /schema Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 29 Jul 2009 06:07:32 -0700 From: guitarr...@yahoo.com.br To: axis-user@ws.apache.org Subject: Re: Help with Deserialization of complex object with Java Webservice Thank you! But, in J2ME, What I need to do? Same? In my client I have this: public void testWebService() throws Exception { SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); SoapObject soapObject = new SoapObject(url,getAlerts); envelope.addMapping(url, Alert, new Alert().getClass()); envelope.setOutputSoapObject(soapObject); HttpTransport transport = new HttpTransport(url); transport.call(getAlerts,envelope); //HERE IS THE PROBLEM... Vector ret = (Vector)envelope.getResponse(); } -- View this message in context: http://www.nabble.com/Help-with-Deserialization-of-complex-object-with-Java-Webservice-tp24709922p24718858.html Sent from the Axis - User mailing list archive at Nabble.com. _ Bing™ brings you maps, menus, and reviews organized in one place. Try it now. http://www.bing.com/search?q=restaurantsform=MLOGENpubl=WLHMTAGcrea=TXT_MLOGEN_Local_Local_Restaurants_1x1
RE: axis2-wsdl2code-maven-plugin use
assume you're referring to http://ws.apache.org/axis2/tools/1_2/maven-plugins/maven-wsdl2code-plugin.html where the default of Target directory, where sources are being target/generated-sources/axis2/wsdl2code generated. what if you redirect the parameter outputDirectory to point to classes folder? -DoutputDirectory=/classes ? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 10 Jul 2009 17:11:11 -0600 Subject: axis2-wsdl2code-maven-plugin use From: larry.mead...@gmail.com To: axis-user@ws.apache.org How does this plug-in fit in a normal development work flow? I'm using it to create a service from a wsdl file that is provided by a vendor, and I think I have it creating the sources correctly, but the default behavior is to generate the classes into the target directory (specifically target/generated-sources/axis2/wsdl2code/src). One of the generated classes is the skeleton for the service, so if I change it and run maven clean package to build a new war file...it gets deleted. :-) If I copy that class to my src/main/java directory, then I get a [INFO] Compilation failure message because I have a duplicate class. I think for now, I'll just use the ant tasks to delete the generated version. That seems a bit wonky...but it'll do it. Can someone who is using this help me figure out a way to fit it into my work flow? Larry _ Lauren found her dream laptop. Find the PC that’s right for you. http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
RE: Rampart: Encryption - Alias is null
possibly a WSS4j Configuration issue first you will need to the consistent use of the same Provider for server and client e.g. protected WSSConfig() { org.apache.xml.security.Init.init(); /* * The last provider added has precedence, that is if JuiCE can be add * then WSS4J uses this provider. */ addJceProvider(BC, org.bouncycastle.jce.provider.BouncyCastleProvider); //this is usually sufficient to make it the provider du jour } also you would need to tell WSS4J Security Encryption to either encrypt.setAlias(NonNullValidAlias) OR setUseThisCert(encCert); e.g. Utils.trace(this.getClass(), WSS Encrypting SOAP Envelope); WSSecEncrypt encrypt = new WSSecEncrypt(); encrypt.setEncCanonicalization(encCanonAlgo); encrypt.setKeyEncAlgo(encKeyAlgo); encrypt.setSymmetricEncAlgorithm(encSymAlgo); if (encCert != null) { Utils.trace(this.getClass(), Encrypting with Configuration provided Certificate); encrypt.setUseThisCert(encCert); } else { Utils.trace(this.getClass(), Encrypting with Keystore provided Certificate); encrypt.setUserInfo(encryptAlias); } if (!signalMessage) { encrypt.setParts(getEncryptionParts(pMode, event)); } else { encrypt.setParts(getSignalParts()); } encrypt.prepare(doc, crypto); encrypt.prependToHeader(secHeader); doc = encrypt.build(doc, crypto, secHeader); Utils.trace(this.getClass(), WSS Encrypted SOAP Envelope); http://osdir.com/ml/wss4j-dev-ws.apache.org/2009-02/msg00043.html Mit Freundlichen Gruben Martin Gainty __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Date: Thu, 9 Jul 2009 12:49:31 -0700 From: jchappe...@4redi.com To: axis-user@ws.apache.org Subject: Re: Rampart: Encryption - Alias is null I am also having this problem. Can someone please respond? Thanks, Josh Berner, Nicolas wrote: Hi! My Client ist trying to decrypt an encrypted message. It doesn´t work because the result of (PasswordCallbackHandler) pc.getIdentifier() is null. You can see this in the stacktrace. org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed at org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.java:214) at org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:86) at org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72) at org.apache.axis2.engine.Phase.invoke(Phase.java:317) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:363) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at test.flex.client.FlexSimpleStub.getStudent(FlexSimpleStub.java:202) at test.flex.client.ServiceClient.holeStudent(ServiceClient.java:65) at test.flex.client.ServiceClient.main(ServiceClient.java:20) Caused by: org.apache.ws.security.WSSecurityException: The signature or decryption was invalid; nested exception is: java.lang.Exception: alias is null at org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:292) at org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:92) at org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:80) at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:311) at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:228) at org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.java:211) ... 12 more Caused by: java.lang.Exception: alias is null at org.apache.ws.security.components.crypto.CryptoBase.getPrivateKey(CryptoBase.java:137) at org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:290) ... 17 more I can´t find anything
RE: Setting Username/password Programaticly
// Rampart module should be in the repository //acquire ConfigurationContext ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(path/to/client, null); //acquire a stub to the deployed Service on secure port 8443 SecureServiceStub stub = new SecureServiceStub(ctx,https://localhost:8443/axis2/services/SecureService;); //acquire the client ServiceClient sc = stub._getServiceClient(); //engageModule sc.engageModule(rampart); Options options = sc.getOptions(); options.setUserName(apache); options.setPassword(password); sc.setOptions(options); //fill the Payload with the actual request OMElement response = sc.sendReceive(getPayload(Hello world)); *Saludos Cordiales desde EEUU* Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Tue, 7 Jul 2009 14:13:26 -0500 Subject: Re: Setting Username/password Programaticly From: m4r...@gmail.com To: axis-user@ws.apache.org Hi Nandana, Don't mind my last message, reading carefully I've found everything I need in the example you provide.. Thanks again. ___ Marcus Sánchez Díaz. Enterprise Developer. SCJP - SCWCD. On Tue, Jul 7, 2009 at 1:10 PM, m4rkuz m4r...@gmail.com wrote: Hi Nandana, I can't help to ask if there is a way to dynamically set the user and password w/o having a password call back handler... is there any? Thanks for your your valuable input. ___ Marcus Sánchez Díaz. Enterprise Developer. SCJP - SCWCD. On Tue, Jul 7, 2009 at 11:56 AM, Nandana Mihindukulasooriya nandana@gmail.com wrote: Hi Marcus, You are using the deprecated configuration of Apache Rampart. Apache Rampart recommends policy based configuration. The latter option only works with policy based configuration. If you have the option of moving in to policy based configuration, following tutorials might help you. Web Services Security with Apache Rampart - Part 1 (Transport Level Security) Understanding WS - Security Policy Language thanks, Nandana On Mon, Jul 6, 2009 at 7:29 PM, m4rkuz m4r...@gmail.com wrote: Hi Everyone, I'm trying to set username/password dynamically on my ws app I've googled a lot and find some workarounds but the only one that has worked for me contains deprecated code, and used a password call back handler that really mess with what i want to do, this is the code: OutflowConfiguration outflowConfig = new OutflowConfiguration(); outflowConfig.setActionItems(UsernameToken); outflowConfig.setUser(username); outflowConfig .setPasswordCallbackClass(com.xxx.xxx.security.PWCBHandler); outflowConfig.setPasswordType(PasswordText); _serviceClient.getOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY, outflowConfig.getProperty()); This works like a charm but I have to search for the username/password in base of some parameters I won't have available in the PWDCBHandler class, so what I'm looking for is a way to set the password directly w/o using a password call back handler. About this I've found some code that claims to do so: _serviceClient.getOptions().setUserName(15374159); _serviceClient.getOptions().setPassword(admin123); but it''s not working for me... Any Ideas? I would really appreciate your input, Thanks in advance, ___ Marcus Sánchez Díaz. Enterprise Developer. SCJP - SCWCD. SCDJWS on going... -- Nandana Mihindukulasooriya WSO2 inc. http://nandana83.blogspot.com/ http://www.wso2.org _ Hotmail® has ever-growing storage! Don’t worry about storage limits.
RE: Axis2 1.5 WSDL2Java errors
that is a AXIS-1_4 artifact you need to run WSDL2JAVA from %Axis2_1.5%/bin and not %AXIS-1_4/bin% Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 6 Jul 2009 11:54:24 -0700 From: leftoverlingu...@gmail.com To: axis-user@ws.apache.org Subject: RE: Axis2 1.5 WSDL2Java errors I'm able to generate code up until I change the wsdl:porttype tag. jcaristi wrote: Your command is OK. Are you importing a WSDL 2 document? I not sure you can import WSDL 2.0 from within WSDL 1.1. Try removing this import. If this doesn't work, you could try a very small simple WSDL (sample attached) and see if you can generate code. If it works, you could start from there, adding one feature at a time. -- View this message in context: http://www.nabble.com/Axis2-1.5-WSDL2Java-errors-tp24295840p24360939.html Sent from the Axis - User mailing list archive at Nabble.com. _ Windows Live™ SkyDrive™: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009
RE: Session Managment using .net client..
how is stub created? string url = http://hostname/webservices/services/MyWSService;; stub.CookieContainer = new CookieContainer(); stub.Timeout = 1000 * 60 * 60; stub.Url = url;thanks, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: RE: Session Managment using .net client.. Date: Mon, 22 Jun 2009 06:49:21 -0700 From: rupadhyay...@responsys.com To: axis-user@ws.apache.org HI Amardeep, Here is how you do it in C#.net string url = http://hostname/webservices/services/MyWSService;; stub.CookieContainer = new CookieContainer(); stub.Timeout = 1000 * 60 * 60; stub.Url = url; Thanks Raghu From: amardeep singh khera [mailto:amardeepsinghkh...@gmail.com] Sent: Monday, June 22, 2009 4:00 AM To: axis-user@ws.apache.org Subject: Session Managment using .net client.. Hi All, I am facing an issue with managing session between an axis2 java service and C#.net console client. I am able to manage session between the same axis2 java service and java client(axis client) by using following code in my java client: Service Client client = stub._getServiceClient(); Options opt = client.getOptions(); opt.setTimeOutInMilliSeconds(60); opt.setManageSession(true); client.setOptions(opt); And in my service implementation class I store user details into axis session using following code MessageContext msgContext = MessageContext.getCurrentMessageContext(); ServiceContext serviceContext = msgContext.getServiceContext(); serviceContext.setProperty(ROLE_ID, roleId.toString()); serviceContext.setProperty(AUTHENTICATION_STATUS, authenticationStatus); serviceContext.setProperty(USER_ID, userId); msgContext.setServiceContext(serviceContext); This is all working fine for me as long as I am using java client. Now my other requirement is to develop a C# .net console client for the same service. So I have generated the proxy class using Microsoft visual studio from wsdl and written C#.net console client which is working fine. But now I want to implement session management in a similar way as I am able to do so in java client. Can anyone please suggest me a way to do so. Thanks Amardeep Singh _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
RE: Max size of request for web services
following this up on 2 other threads configuring the connector to use Unix sendfile http://tomcat.apache.org/tomcat-6.0-doc/config/http.html DiskFileUpload (with commons-fileupload) http://www2.lifl.fr/~lemeur/car/fileupload/ asynchronous connectors Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Tue, 16 Jun 2009 13:41:13 +0200 Subject: Re: Max size of request for web services From: andreas.veit...@gmail.com To: axis-user@ws.apache.org That depends on many factors, such as the type of message (plain SOAP, SwA or MTOM), what kind of databinding is used, etc. Andreas On Tue, Jun 16, 2009 at 13:26, Sudhanshu Umalkar Umalkarsumal...@cisco.com wrote: Hi What is the max size of the request that can be submitted to a web service? Can 50mb be submitted at one go? Regards, Sudhanshu _ Hotmail® has ever-growing storage! Don’t worry about storage limits. http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009
RE:
assuming this is non rest doc-lit please display WSDL (and accompaning XSDs) thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Date: Mon, 8 Jun 2009 18:37:37 +0200 From: florian.kalt...@gmx.de To: axis-user@ws.apache.org Hi! I set up a simple Web Service using POJOs. I defined a class MyService with a method update(A a, B b). If i call that method using the corresponding Web Service operation, the object b is always null. Looking at the SOAP message with TCPMon, I am seeing, that both objects are serialized (as arg0 and arg1) Is this a restriction on using Axis2 with POJOs? How could i manage to transfer both objects? Thanks! -- GMX FreeDSL mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.! http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009
RE: Provider com.bea.xml.stream.MXParserFactory not found stax-1.2.0
bea vendor specific problem http://forums.java.net/jive/thread.jspa?messageID=117971 available stax jars are described at http://www.j2ee.me/webservices/docs/1.6/tutorial/doc/SJSXP-jars.html here is the response from the bea release engineer for not including stax jar (sjsxp.jar) http://forums.java.net/jive/thread.jspa?messageID=117971 Any sjsxp.jar would do. The one in the JAX-WS RI would be just fine. The reason we don't ship sjsxp.jar in the JAXB RI is that we don't want people to think that it's a required part of the JAXB HTH Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: Provider com.bea.xml.stream.MXParserFactory not found stax-1.2.0 Date: Wed, 3 Jun 2009 15:21:43 +0200 From: matthias.gai...@t-systems.com To: axis-user@ws.apache.org Hi group, I am encountering some curious problem. I am developing an application with axis2 v1.4.1. I develop the client and the server side. I use eclipse for programming. Last week I had to create a new eclipse workspace, but with the same sources. I also created therefore a new server in eclipse based on my server executables I used before. (Tomcat 5.5). Now when I create a ConfigurationContext on the client side, I get the exception: javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found I found a solution in the internet that I should add the stax-1.2.0.jar. It is gone with this jar, but I wonder how this can happen? My colleagues are working without that jar and the same code and they have no problems at all. Any insights would be appreciated!! Matthias. _ Hotmail® has ever-growing storage! Don’t worry about storage limits. http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009
RE: Passing parameters from a calling client to registered request handler- can I use headers for this purpose?
http://ws.apache.org/axis/java/architecture-guide.html allows you to conceptualise the use of Handlers for communicating from your client to service and bacl if you want to store the information DB is always your safest and most reliable option concerning optional params take a look at this example which defined stringElement as optional with minOccurs=0 xsd:complexType name=ArrayOfString xsd:complexContent xsd:restriction base=soap-enc:Array xsd:sequence xsd:element name=stringElement type=xsd:string minOccurs=0 maxOccurs=unbounded/ /xsd:sequence http://ws.apache.org/axis/java/apiDocs/org/apache/axis/deployment/wsdd/WSDDHandler.html where parameters can be read collectively via getParametersTable (into HashTable) or individually via getParameter java.lang.String getParameter(java.lang.String name) Get the value of one of our parameters LockableHashtable getParametersTable() Returns the config parameters as a hashtable (lockable) hth Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 15:20:45 +0100 Subject: Passing parameters from a calling client to registered request handler- can I use headers for this purpose? From: gstas...@googlemail.com To: axis-user@ws.apache.org hi, Are there any good patterns on how to pass parameters from a client to request handlers? Can I use for this purpose headers ? I thought about putting some additional header with call specific parameters I would read in my registered request handler but I'm not sure what impact will it (additional headers) have on the actual WebService (will it recognize such request as a valid XML document/request). My original problem is that once I do a call to the WS I need to log SOAP message (as a text) in some location (this location is per call specific so I can't use one folder). I use request handler registered in my client-config.wsdd file and it works fine but recognizing location. Probably I could use for this purpose database with three columns: 1) OperationName, 2) ServiceName, 3) location or even static class with some hashmap. The problems I see here are that in the first case my logger will slow down WS calls significantly as it will have to go to database and in case of static class.. they're always a problem while testing. I'd appreciate any suggestion how could I improve this. Environment Axis 1.4 -- Greg Stasica _ Hotmail® has a new way to see what's up with your friends. http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009
RE: Passing parameters from a calling client to registered request handler- can I use headers for this purpose?
hi greg- can you post or attach the wsdl (and xsd) thanks Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 18:31:29 +0100 Subject: Re: Passing parameters from a calling client to registered request handler- can I use headers for this purpose? From: gstas...@googlemail.com To: axis-user@ws.apache.org hi, thanks for your reply but I still see some problems 1) if I understand correctly WSDDHandler API let me set parameters declaratively in server-config.wsdd or client-config.wsdd files. Unfortunately I don't know what my parameters' values should be during deployment, there is some business logic involved in calculating my parameters hence the values for my parameters are available only as a runtime values. Perhaps I could create my own implementation of this class but I suspect that I'd have to do a lot of changes to AXIS engine itself in order to use it. What's more I would have to further customize my generated stubs in order to pass my parameters' values to a new handler. All I want to do is pass some parameter along with it's value from a stub to some registered axis handler. And what's your opinion about putting additional header's to my soap envelope (e.g ... myParam=log2 )? Is it safe and more importantly could it break server implementation of the WebService ? (e.g. incorrect SOAP envelope e.t.c) 2) I like the idea with optional parameter as an array but again I'm only a client of some WS. As such, WSDL file I got is pretty closed (I can't do any changes to it as it would probably cause problems on the server side). I've already read Axis Architecture Guide but couldn't find any solution to my problem On Sat, May 30, 2009 at 4:57 PM, Martin Gainty mgai...@hotmail.com wrote: http://ws.apache.org/axis/java/architecture-guide.html allows you to conceptualise the use of Handlers for communicating from your client to service and bacl if you want to store the information DB is always your safest and most reliable option concerning optional params take a look at this example which defined stringElement as optional with minOccurs=0 xsd:complexType name=ArrayOfString xsd:complexContent xsd:restriction base=soap-enc:Array xsd:sequence xsd:element name=stringElement type=xsd:string minOccurs=0 maxOccurs=unbounded/ /xsd:sequence http://ws.apache.org/axis/java/apiDocs/org/apache/axis/deployment/wsdd/WSDDHandler.html where parameters can be read collectively via getParametersTable (into HashTable) or individually via getParameter java.lang.String getParameter(java.lang.String name) Get the value of one of our parameters LockableHashtable getParametersTable() Returns the config parameters as a hashtable (lockable) hth Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 15:20:45 +0100 Subject: Passing parameters from a calling client to registered request
RE: Accessing context in Axis2
if you are implementing your solution in websphere dims mentioned this may be specific to ibm please view http://www.nabble.com/The-org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl-block-object-is-already-consumed.-td23138529.html Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: rka...@activehealth.net To: axis-user@ws.apache.org Date: Thu, 28 May 2009 15:01:16 -0400 Subject: Accessing context in Axis2 Thanks a lot Sagar. I tried and got little further – but now I am getting the following exception: [ERROR] javax.xml.ws.WebServiceException: An internal error occurred. The org.ap ache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl block object is already consumed. Processing cannot continue. Run with the debug option to determine wh ere the block was first consumed. [ERROR] org.apache.axis2.AxisFault at org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher.createFau ltResponse(JavaBeanDispatcher.java:354) at org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher.invoke(Ja vaBeanDispatcher.java:109) at org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointContr oller.java:106) at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessa geReceiver.java:159) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq uest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1 33) Now I have: @Resource(type=WebServiceContext.class) public WebServiceContext webServiceContext; and inside the service – I have: SOAPMessageContext soapMessageContext = (SOAPMessageContext)webServiceContext.getMessageContext(); But when I do: javax.xml.soap.SOAPMessage soapMessage = soapMessageContext.getMessage(); I am getting the above exception. When I do Google – I find several hits in general – it seems to be JAX-WS thing and not related to Axis2. However, I was wondering if someone in the community has seen it. Please let me know. Thanks everyone, -rishi IMPORTANT WARNING: Information contained in this email is intended for the use of the individual to whom it is addressed, and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is STRICTLY FORBIDDEN. If you have received this communication in error, please notify us immediately by return email and delete this document. Thank you. _ Hotmail® has a new way to see what's up with your friends. http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009
RE: AW: Receiving swa attachments
Matthias i would suggest editting mtom-user-guide to demonstrate actual usage for axis2-1.4.1 specifically public class SwA { private OperationContext operationContext; public SwA() { } public void setOperationContext(OperationContext oc) throws AxisFault { operationContext = oc; } public void uploadAttachment(OMElement omEle) throws AxisFault { OMElement child = (OMElement) omEle.getFirstOMChild(); OMAttribute attr = child.getAttribute(new QName(href)); //Content ID processing String contentID = attr.getAttributeValue(); contentID = contentID.trim(); if (contentID.substring(0, 3).equalsIgnoreCase(cid)) { contentID = contentID.substring(4); } //contentId of cid is assumed Attachments attachment = (Attachments) (operationContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE)).getAttachmentMap(); //DataHandler dataHandler = attachment.getDataHandler(contentID); java.util.Iterator iter; try { iter=attachment.getAttachments().iterator(); } catch(AxisFault axis_fault) { log.debug(AxisFault produced for attachment.getAttachments().iterator()); } String[] attachmentIDs; int attachementCtr=0; while(iter.hasNext() { attachmentIDs[attachmentCtr++]= iter.next(); } } } public static final java.lang.String ATTACHMENT_ENCAPSULATION_FORMAT_DIME axis.attachment.style.dime public static final java.lang.String ATTACHMENT_ENCAPSULATION_FORMAT_MIME axis.attachment.style.mime public static final java.lang.String ATTACHMENT_ENCAPSULATION_FORMAT_MTOM axis.attachment.style.mtom this only covers attachment style of 'mtom' would need to refactor for both mime and dime attachment styles suggestions? Martin Gainty __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: AW: Receiving swa attachments Date: Thu, 14 May 2009 09:24:31 +0200 From: matthias.gai...@t-systems.com To: axis-user@ws.apache.org Hi Chinmoy, thanks for your answer. It gave me a hint into the right direction. Now it is working. Yes, I did enable the SwA property, but it is only necessary to enable it on the client side, not on the server side as other tutorials mention as well. My problem was that I tried to get the content ids via the getContentIDList() method. This method only returns the content ids which have been parsed already. If I take the method you mention getAllContentIDs() or getContentIDSet(), then Axis parses the other attachments and returns a complete list of the content ids. @Axis2-Team: Please reflect this behavior in the javadoc that only the parsed content ids are returned by the getContentIDList(). Maybe I can help some other people with the same problem. J Matthias. Von: Chinmoy Chakraborty [mailto:cch...@gmail.com] Gesendet: Mittwoch, 13. Mai 2009 17:43 An: axis-user@ws.apache.org Betreff: Re: Receiving swa attachments Hi Matthias, You need to set 'enableSwA' property to true in client and server side in order to work with SwA. I am assuming that you have done this. I tried with Axis2 1.4 and it works fine. You can try following code sample while receving the SwA attachment in the client side: ... mepClient.execute(true); MessageContext response = mepClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE); Attachments attachments
RE: AW: Receiving swa attachments
frist heard of DIME in 02 but havent seen any implementation since that 02 thanks for the code matthias! Vielen Danke, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 15 May 2009 00:45:43 +0200 Subject: Re: AW: Receiving swa attachments From: andreas.veit...@gmail.com To: axis-user@ws.apache.org Matthias, I'm pretty sure DIME is not supported by Axiom. Andreas On Thu, May 14, 2009 at 17:16, matthias.gai...@t-systems.com wrote: Hi Martin, I have now this code which works fine for me for receiving SwA attachments. Feel free to include this code into the mtom-user-guide (which should maybe named attachment-user-guide). ListFile attList = new ArrayListFile(); MessageContext mctx = MessageContext.getCurrentMessageContext(); Attachments attachs = mctx.getAttachmentMap(); SetString cids = attachs.getContentIDSet(); if (cids != null cids.size() 1) { String attType = attachs.getAttachmentSpecType(); if (attType.equals(MTOMConstants.SWA_TYPE) || attType.equals(MTOMConstants.SWA_TYPE_12)) { String soapCid = attachs.getSOAPPartContentID(); File file; for (String cid : cids) { if (!cid.equals(soapCid)) { file = new File(UUID.randomUUID().toString()); //the cid might not be a good name to save the file. FileOutputStream fileOutputStream = new FileOutputStream(file); mctx.getAttachment(cid).writeTo(fileOutputStream); fileOutputStream.flush(); fileOutputStream.close(); attList.add(file); } } } } I assume Axis2 sends the attachments as mime attachments, if they are sent via SwA. This code also worked for me for an Axis1 1.4 client uploading a file as a MIME attachment to my Axis2 Service. DIME Attachments can not be received so far. I’ll have a look what I still have to do. Matthias. Von: Martin Gainty [mailto:mgai...@hotmail.com] Gesendet: Donnerstag, 14. Mai 2009 15:35 An: axis-user@ws.apache.org Betreff: RE: AW: Receiving swa attachments Matthias i would suggest editting mtom-user-guide to demonstrate actual usage for axis2-1.4.1 specifically public class SwA { private OperationContext operationContext; public SwA() { } public void setOperationContext(OperationContext oc) throws AxisFault { operationContext = oc; } public void uploadAttachment(OMElement omEle) throws AxisFault { OMElement child = (OMElement) omEle.getFirstOMChild(); OMAttribute attr = child.getAttribute(new QName(href)); //Content ID processing String contentID = attr.getAttributeValue(); contentID = contentID.trim(); if (contentID.substring(0, 3).equalsIgnoreCase(cid)) { contentID = contentID.substring(4); } //contentId of cid is assumed Attachments attachment = (Attachments) (operationContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE)).getAttachmentMap(); //DataHandler dataHandler = attachment.getDataHandler(contentID); java.util.Iterator iter; try { iter=attachment.getAttachments().iterator(); } catch(AxisFault axis_fault) { log.debug(AxisFault produced for attachment.getAttachments().iterator()); } String[] attachmentIDs; int attachementCtr=0; while(iter.hasNext() { attachmentIDs[attachmentCtr++]= iter.next(); } } } public static final java.lang.String ATTACHMENT_ENCAPSULATION_FORMAT_DIME axis.attachment.style.dime public static final java.lang.String ATTACHMENT_ENCAPSULATION_FORMAT_MIME axis.attachment.style.mime
RE: using Axis2 wsdl2java to generate Axis1 client stubs
Good Morning Edward could you explain the schema/namespace which defines DotNet tree element? could you explain what is the purpose of DotNet tree element? attaching your DotNet generated wsdl would be helpful Thank You, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. To: axis-user@ws.apache.org Subject: using Axis2 wsdl2java to generate Axis1 client stubs From: edward.thomp...@wachovia.com Date: Mon, 11 May 2009 09:18:08 -0400 I am using the Axis2 wsdl2java utility to generate client side java code for Axis1. The reason is that the Axis1 wsdl2java utility can't seme to handle tree wsdl generated by out .NET applications. The wdl2java utility for Axis2 indicates a backward compatability option, (-b). However, the code generated a) still references axis2 packages, and b) still has a dependency on the Stubs generated for Axis2 use (i.e. it doesn't seem to generate standalone code that is free from Axis2 dependencies.) So I am wondering what the purpose of the backward compatability option is. I am assuming that I have misunderstood its purpose. _ Hotmail® goes with you. http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009
RE: [Axis2] Null array
for non-ADB databinding use minOccurs=0 e.g. xsd:element minOccurs=0 .../ Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: [Axis2] Null array Date: Thu, 7 May 2009 11:34:58 -0700 From: sow...@telenav.com To: axis-user@ws.apache.org I have a nillable object array in my schema. If I set this to NULL in my service code, the client is getting an array with size 1, and the element at index 0 is NULL. Is this the expected behavior? Shouldn’t the array itself be set to NULL? - Sowmi Sowmitra Thallapragada | TeleNav Inc. | +1 408 207 4116 | sow...@telenav.com | www.telenav.com _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009
RE: Axis2/Rampart 1.4 - Ecrypt header information
from what I have seen from Rampart axis2.xml the 'Signature Encrypt Timestamp' InflowSecurity/OutflowSecurity parameters would contain these elements parameter name=OutflowSecurity action itemsTimestamp Signature/items userclient/user signaturePropFileclient.properties/signaturePropFile passwordCallbackClassorg.apache.rampart.samples.sample04.PWCBHandler/passwordCallbackClass signatureKeyIdentifierDirectReference/signatureKeyIdentifier /action /parameter where client.properties would contain: org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin org.apache.ws.security.crypto.merlin.keystore.type=jks org.apache.ws.security.crypto.merlin.keystore.password=StateOfUenmployment org.apache.ws.security.crypto.merlin.file=client.jks the above elements are covered by the ramp namespace specifically http://ws.apache.org/rampart/policy the namespace which identifies the part elements http://schemas.xmlsoap.org/ws/2005/07/securitypolicy specifies xs:element name=OnlySignEntireHeadersAndBody type=tns:QNameAssertionType xs:annotation xs:documentation xml:lang=en 8.4 SymmetricBinding Assertion /xs:documentation /xs:annotation the WSS SOAP Message Security spec covers these details at http://74.125.47.132/search?q=cache:NMT1bn1O2Y4J:specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf+%228.4+SymmetricBinding+Assertion%22+definitioncd=1hl=enct=clnkgl=us#43 8.4 SymmetricBinding Assertion: The SymmetricBinding assertion is used in scenarios in which message protection is provided by means defined in WSS: SOAP Message Security. This binding has two binding specific token properties; 1) [Encryption Token] If the message pattern requires multiple messages, this binding defines that the [Encryption Token] used from initiator to recipient is also used from recipient to initiator. MGthis pertains to your first question on Encryption and is covered by namespaceMG MGhttp://schemas.xmlsoap.org/ws/2005/07/securitypolicyMG and 2) [Signature Token]. Similarly the [Signature Token] used from initiator to recipient is also used from recipient to initiator. MGthis pertains to your followup question on SignatureToken and is covered by rampartMG MGhttp://ws.apache.org/rampart/policyMG If a sp:ProtectionToken assertion is specified, the specified token populates both token properties and is used as the basis for both encryption and signature in both directions. This assertion MUST apply to [Endpoint Policy Subject]. there is alot here but I hope this answers your question Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Tue, 5 May 2009 13:29:35 +1200 From: mohannad.hamma...@orionhealth.com To: axis-user@ws.apache.org Subject: Re: Axis2/Rampart 1.4 - Ecrypt header information Thank you for your reply Martin, I am trying to use WS Policy to encrypt the header as well as the body. I saw that element in the samples that came with rampart. Do you know if the example (sample 3) is equivalent to a set of actions of 'Signature Encrypt Timestamp'? Regards, Mohannad - Original Message - From: Martin Gainty mgai...@hotmail.com To: axis-user@ws.apache.org Sent: Tuesday, 5 May, 2009 11:32:34 GMT +12:00 New Zealand Subject: RE: Axis2/Rampart 1.4 - Ecrypt header information you want to look at implmenting OnlySignEntireHeadersAndBody element e.g. sp:OnlySignEntireHeadersAndBody/ this is included in policy-mtom-security.xml the OnlySignEntireHeadersAndBody element
RE: Handlers
This will help clarify the reason to use handlers as well as illustrating how to write a simple Handler http://www.packtpub.com/article/handler-and-phase-in-apache-axis HTH Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 4 May 2009 08:37:55 -0700 From: kit...@gmail.com To: axis-user@ws.apache.org Subject: Handlers Hi All, I need some resources to learn about handlers. I have a vogue idea about it, but i would like to know more about how to write handlers for security, addressing, logging etc. using Axis2 Thanks Kris -- View this message in context: http://www.nabble.com/Handlers-tp23370955p23370955.html Sent from the Axis - User mailing list archive at Nabble.com. _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009
RE: calling Call.setClientHandlers from Stub causes SAXException
back out all the customised code in setClientHandlers to acquire servletRequest and servletResponse use this instead HttpServletResponse response = (HttpServletResponse) msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETRESPONSE); HttpServletRequest req = (HttpServletRequest) messageContext.getProperty( HTTPConstants.MC_HTTP_SERVLETREQUEST); Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: m...@myriad-development.com To: axis-user@ws.apache.org Subject: calling Call.setClientHandlers from Stub causes SAXException Date: Mon, 4 May 2009 15:34:15 -0500 calling Call.setClientHandlers from Stub causes SAXException Hello everyone, and thanks in advance for your help. I'm developing a client to consume a web service. I used WSDL2Java (axis1-4) to produce stub classes and everything works great - I successfully process the service. However, I'm required to store the actual request/response documents with the transaction, and this is where I've run into trouble. The only way I could figure out how to do this properly was to modify the generated service stub. I added: public void setClientHandlers(org.apache.axis.Handler requestHandler, org.apache.axis.Handler responseHandler) { this.requestHandler = requestHandler; this.responseHandler = responseHandler; } And modified the webservice method stub as follows: org.apache.axis.client.Call _call = createCall(); //Added these lines... if (requestHandler != null responseHandler != null) _call.setClientHandlers(requestHandler, responseHandler); //end add _call.setOperation(_operations[0]); try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {parameters}); I created the following classes: public class MyRequestHandler extends org.apache.axis.handlers.LogHandler { public void invoke(org.apache.axis.MessageContext msgContext) throws org.apache.axis.AxisFault { try { SOAPMessageContext smc = (SOAPMessageContext)msgContext; SOAPMessage msg = smc.getMessage(); System.out.println(request:); msg.writeTo(System.out); } catch (Exception e) { e.printStackTrace(); throw new org.apache.axis.AxisFault(e.getMessage()); } } } //super.invoke(msgContext); public class MyResponseHandler extends org.apache.axis.handlers.LogHandler { public void invoke(org.apache.axis.MessageContext msgContext) throws org.apache.axis.AxisFault { try { SOAPMessageContext smc = (SOAPMessageContext)msgContext; SOAPMessage msg = smc.getMessage(); System.out.println(response:); msg.writeTo(System.out); } catch (Exception e) { e.printStackTrace(); throw new org.apache.axis.AxisFault(e.getMessage()); } } } And then set the handlers from the client code. With this code in place, I get the following exception: org.xml.sax.SAXException:
RE: Axis2/Rampart 1.4 - Ecrypt header information
you want to look at implmenting OnlySignEntireHeadersAndBody element e.g. sp:OnlySignEntireHeadersAndBody/ this is included in policy-mtom-security.xml the OnlySignEntireHeadersAndBody element would need to be included in a binding which references http://schemas.xmlsoap.org/ws/2005/07/securitypolicy namespace e.g. sp:AsymmetricBinding xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; Axis2-1.3 has a MTOMAssertionTestCase sample testcase you can use package org.apache.axis2.policy.model; import junit.framework.TestCase; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.impl.builder.StAXOMBuilder; import org.apache.neethi.Assertion; import org.apache.neethi.Policy; import org.apache.neethi.PolicyEngine; import java.util.Iterator; import java.util.List; public class MTOMAssertionTest extends TestCase { public void testSymmBinding() { try { Policy p = this.getPolicy(System.getProperty(basedir, .) + /test-resources/policy-mtom-security.xml); List assertions = (List)p.getAlternatives().next(); boolean isMTOMAssertionFound = false; for (Iterator iter = assertions.iterator(); iter.hasNext();) { Assertion assertion = (Assertion)iter.next(); if (assertion instanceof MTOMAssertion) { isMTOMAssertionFound = true; MTOMAssertion mtomModel = (MTOMAssertion)assertion; assertEquals(MIME Serialization assertion not processed, false, mtomModel.isOptional()); } } //The Asymm binding mean is not built in the policy processing :-( assertTrue(MTOM Assertion not found., isMTOMAssertionFound); } catch (Exception e) { e.printStackTrace(); fail(e.getMessage()); } } private Policy getPolicy(String filePath) throws Exception { StAXOMBuilder builder = new StAXOMBuilder(filePath); OMElement elem = builder.getDocumentElement(); return PolicyEngine.getPolicy(elem); } } Martin Gainty United Health Group Medicode publishers 2002-2003 deNovisMedicalSystems HIPAA EDI 2004 Curaspan the eDischarge Company HL7 Interfaces 2006 USCitizen(Contractor) __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Tue, 5 May 2009 09:08:52 +1200 From: mohannad.hamma...@orionhealth.com To: axis-user@ws.apache.org Subject: Axis2/Rampart 1.4 - Ecrypt header information Hello, Does anybody know how I can tell rampart to encrypt header information in the SOAP response? Regards, Mohannad _ Hotmail® has a new way to see what's up with your friends. http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009
RE: [axis2] | Problem running axis2 client
axiom-api-1.2.6.jar from http://www.java2s.com/Code/Jar/Web-Services-AXIS2/axiom-api-1.2.5.jar.htm Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 24 Apr 2009 11:31:42 -0300 Subject: Re: [axis2] | Problem running axis2 client From: robertlazar...@gmail.com To: axis-user@ws.apache.org On Fri, Apr 24, 2009 at 11:30 AM, Rajneesh Kumar rajneesh.ku...@otssolutions.com wrote: Hi All, I have created and deployed a web service on axis2. Now I start to work for client as it is given on apache axis2 site. After some effort the client gets compiled. But I am not able to run it because it needs many approx 56 jar file at run time as apache suggest. I have tried to set all in environment variable “CLASSPATH” but it does not accept so many file names. Then I tried to set class path using a batch file technique also tried to set it on command prompt directly but in each case failed and the client app produce error on console: The stack trace is given below: C:\ axiswebservice\WeatherClientjava WeatherRPCClient Exception in thread main java.lang.NoClassDefFoundError: org/apache/axiom/om/OMNode Use ant to execute your client, since you can list a directory with all your JAR's and ant will take care of everything for you. - R _ Windows Live™ SkyDrive™: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_042009
RE: Sending binary data(not using MTOM) using DataHandler
wsdl:definitions xmlns:xsd=http://www.w3.org/2001/XMLSchema; name=XSD_base64Binary ... assume the element you are referencing in your xsd is type=xsd:base64Binary datatype xsd:element name=asNonNillableElementResponse xsd:complexType xsd:sequence xsd:element name=nonNillableElement type=xsd:base64Binary nillable=false minOccurs=1 maxOccurs=1 / /xsd:sequence /xsd:complexType /xsd:element ? Martin could you display your full wsdl __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: sanjay.gu...@billwiseinc.com To: axis-user@ws.apache.org Date: Tue, 21 Apr 2009 12:18:16 -0700 Subject: Sending binary data(not using MTOM) using DataHandler Hi, I have written a service that returns DataHandler containing the binary data(pdf file). When I call that service by using the classes generated by wsdl2java I only get 12k of the binary data. I have seen as reference to 12K buffer wrap issue. I would appreciate if anybody can give me some pointers on how to resole this issue. BTW the service is written in grails and exposed using AXIS2 plugin and all other services(the one not dealing with binary data) work without any issue. Thanks Sanjay _ Windows Live™ Hotmail®:…more than just e-mail. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_more_042009
RE: Sending binary data(not using MTOM) using DataHandler
org.apache.ws.axis2.GetInvoiceImageResponse.java: public static GetInvoiceImageResponse parse(javax.xml.stream.XMLStreamReader reader) } else if(reader.hasText()) { //Do the usual conversion java.lang.String content = reader.getText(); object.set_return( org.apache.axis2.databinding.utils.ConverterUtil.convertToBase64Binary(content)); reader.next(); } } which calls org.apache.axis2.databinding.utils.ConverterUtil public static javax.activation.DataHandler convertToBase64Binary(String s) { // reusing the byteArrayDataSource from the Axiom classes ByteArrayDataSource byteArrayDataSource = new ByteArrayDataSource( Base64.decode(s) ); return new DataHandler(byteArrayDataSource); } which calls org.apache.axiom.om.util.Base64.java public static byte[] decode(String data) { char[] ibuf = new char[4]; int ibufcount = 0; byte[] obuf = new byte[data.length() / 4 * 3 + 3]; int obufcount = 0; for (int i = 0; i data.length(); i++) { char ch = data.charAt(i); if (ch == S_BASE64PAD || ch S_DECODETABLE.length S_DECODETABLE[ch] != Byte.MAX_VALUE) { ibuf[ibufcount++] = ch; if (ibufcount == ibuf.length) { ibufcount = 0; obufcount += decode0(ibuf, obuf, obufcount); } } } if (obufcount == obuf.length) return obuf; byte[] ret = new byte[obufcount]; System.arraycopy(obuf, 0, ret, 0, obufcount); return ret; } looks as if convertToBase64Binary call to Base64.decode byte[] obuf = new byte[data.length() / 4 * 3 + 3]; is dividing the data length by 15 what is the expected processing Base64.decode for Base64Binary input ? Martin Gainty __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: mgai...@hotmail.com To: axis-user@ws.apache.org Subject: RE: Sending binary data(not using MTOM) using DataHandler Date: Tue, 21 Apr 2009 16:21:49 -0400 wsdl:definitions xmlns:xsd=http://www.w3.org/2001/XMLSchema; name=XSD_base64Binary ... assume the element you are referencing in your xsd is type=xsd:base64Binary datatype xsd:element name=asNonNillableElementResponse xsd:complexType xsd:sequence xsd:element name=nonNillableElement type=xsd:base64Binary nillable=false minOccurs=1 maxOccurs=1 / /xsd:sequence /xsd:complexType /xsd:element ? Martin could you display your full wsdl __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take
RE: org.apache.axis.InternalException: org.apache.axis.ConfigurationException:.....??
--a simple handler defined for a wsdd the handler as a filename named --MyService.log defined here: handler name=track type=java:samples.security.LogHandler parameter name=filename value=MyService.log/ /handler --which is referenced in requestFlow illustrated here requestFlow handler type=track/ /requestFlow --is referenced when invoking http://localhost:8080/LogTestService --viewing the full wsdd example deployment xmlns=http://xml.apache.org/axis/wsdd/; xmlns:java=http://xml.apache.org/axis/wsdd/providers/java; !-- define the logging handler configuration -- handler name=track type=java:samples.security.LogHandler parameter name=filename value=MyService.log/ /handler !-- define the service, using the log handler we just defined -- service name=http://localhost:8080/LogTestService; provider=java:RPC requestFlow handler type=track/ /requestFlow parameter name=className value=samples.security.Service/ parameter name=allowedMethods value=*/ /service /deployment --allows out LogtestService requestFlow to reference track requestFlow handler type=track/ /requestFlow --where track is defined as handler name=track type=java:samples.security.LogHandler parameter name=filename value=MyService.log/ /handler If you could display your wsdd we can more accurately determine the error source HTH! Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 20 Apr 2009 20:02:31 +0530 Subject: Fwd: org.apache.axis.InternalException: org.apache.axis.ConfigurationException:.?? From: shashidhar.velagand...@gmail.com To: axis-user@ws.apache.org -- Forwarded message -- From: Mark Thomas ma...@apache.org Date: Mon, Apr 20, 2009 at 7:50 PM Subject: Re: org.apache.axis.InternalException: org.apache.axis.ConfigurationException:.?? To: Tomcat Users List us...@tomcat.apache.org shashidhar velagandula wrote: HI , I am using , apache-tomcat-6.0.18 ,,, i have deployed one application , while accessing the application , it is throwing some configuration error as org.apache.axis.InternalException: org.apache.axis.ConfigurationException: org.apache.axis.deployment.wsdd.WSDDException: Must include type attribute for Handler deployment! That is an Axis error, not a Tomcat one. You'll have more luck on the Axis users list. Mark org.apache.axis.deployment.wsdd.WSDDException: Must include type attribute for Handler deployment! at org.apache.axis.deployment.wsdd.WSDDHandler.(WSDDHandler.java:50) at org.apache.axis.deployment.wsdd.WSDDChain.(WSDDChain.java:66) at org.apache.axis.deployment.wsdd.WSDDRequestFlow.(WSDDRequestFlow.java:44) at org.apache.axis.deployment.wsdd.WSDDGlobalConfiguration.(WSDDGlobalConfiguration.java:62) at org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.java:244) at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139) at org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:65) at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:180) at org.apache.axis.AxisEngine.init(AxisEngine.java:172) at org.apache.axis.AxisEngine.(AxisEngine.java:156) at org.apache.axis.client.AxisClient.(AxisClient.java:61) at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.(Service.java:119) at org.globus.ogsa.impl.core.service.ServiceLocator.(ServiceLocator.java:55) at gov.lbl.srm.StorageResourceManager.SRMServiceGridLocator.(SRMServiceGridLocator.java:10) at
RE: [ANNOUNCE] Axis2 1.5 Release Candidate ready for testing
Good Morning Glenn/Andreas noting the version of Version.java from the distro located t http://people.apache.org/~gdaniels/stagingRepo/org/apache/axis2/distribution/1.5/ package sample.axisversion; public class Version { public String getVersion() throws Exception { return Hi - the Axis2 version is + org.apache.axis2.Version.getVersionText(); } } i see this error in /modules/codegen/target/surefire-reports/ TEST-org.apache.axis2.wsdl.codegen.XML2JavaMappingTest.xml testcase time=0.11 classname=org.apache.axis2.wsdl.codegen.XML2JavaMappingTest name=testVersion error message=sample.axisversion.xsd.Version type=java.lang.ClassNotFoundExceptionjava.lang.ClassNotFoundException: sample.axisversion.xsd.Version at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.apache.axis2.wsdl.codegen.XML2JavaMappingTest.testVersion(XML2JavaMappingTest.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) /error /testcase seems like the package sample.axisversion.xsd.Version is not the actual java class version located at sample.axisversion.Version Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 15 Apr 2009 12:32:32 -0400 To: axis-...@ws.apache.org; axis-user@ws.apache.org Subject: [ANNOUNCE] Axis2 1.5 Release Candidate ready for testing From: g...@thoughtcraft.com Hi all! After a failed set of attempts to use the Maven release
RE: Raw beginner needs help with Axis admin page
check for errors in %TOMCAT_HOME%/logs/localhost.-MM-DD.log Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: ckn...@onebox.com To: axis-user@ws.apache.org Subject: Raw beginner needs help with Axis admin page Date: Wed, 15 Apr 2009 18:33:14 -0400 I've installed Axis on the Geronimo/Tomcat server. The Axis2 Happiness Page appears at http://localhost:8090/axis2/axis2-web/HappyAxis.jsp;. I now want to log in to the admin page, however, when I try the URL http://localhost:8090/axis2/axis2-admin/login;, I get an Internal server error message. Can anyone point me in the right direction? Thanks. -- Charles Knell ckn...@onebox.com - email _ Rediscover Hotmail®: Get e-mail storage that grows with you. http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009
RE: Dodging the spam filter Axis admin won't start
check commons-fileupload-1.2.jar in located on your %CLASSPATH% my commons-fileupload-1.2.jar is located on \axis2-1.5\stagingRepo\axis2-1.5\lib\commons-fileupload-1.2.jar HTH Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: ckn...@onebox.com To: axis-user@ws.apache.org Subject: Dodging the spam filter Axis admin won't start Date: Wed, 15 Apr 2009 19:13:44 -0400 Log entries appear in: C:\geronimo\geronimo-tomcat6-javaee5-2.1.4\var\log\geronimo.log The relevant section starts with: 2009-04-15 18:25:42,609 ERROR [[AxisAdminServlet]] Allocate exception for servlet AxisAdminServlet java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadException in classloader org.apache.geronimo.configs/axis2/2.1.4/car At face value, it looks like a class that should have been included in the download doesn't seem to have been there. What do you suggest? -- Charles Knell ckn...@onebox.com - email _ Rediscover Hotmail®: Now available on your iPhone or BlackBerry http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mobile1_042009
RE: Authentication for non SOAP messages
from the HandlerExecution test harness i've seen this depends on assigned PHASE package org.apache.axis2.engine; public class HandlerExecutionTest extends LocalTestCase { ... private void registerOperationLevelHandlers(AxisOperation operation) { ArrayList operationSpecificPhases = new ArrayList(); operationSpecificPhases.add(new Phase(PhaseMetadata.PHASE_POLICY_DETERMINATION)); operation.setRemainingPhasesInFlow(operationSpecificPhases); ArrayList phaseList = operation.getRemainingPhasesInFlow(); for (int i = 0; i phaseList.size(); i++) { Phase operationSpecificPhase = (Phase)phaseList.get(i); if (PhaseMetadata.PHASE_POLICY_DETERMINATION .equals(operationSpecificPhase.getPhaseName())) { operationSpecificPhase.addHandler(firstOperationInHandler); operationSpecificPhase.addHandler(middleOperationInHandler); operationSpecificPhase.addHandler(new TestHandler(In6)); } } operationSpecificPhases = new ArrayList(); operationSpecificPhases.add(new Phase(PhaseMetadata.PHASE_POLICY_DETERMINATION)); operation.setPhasesOutFlow(operationSpecificPhases); phaseList = operation.getPhasesOutFlow(); for (int i = 0; i phaseList.size(); i++) { Phase operationSpecificPhase = (Phase)phaseList.get(i); if (PhaseMetadata.PHASE_POLICY_DETERMINATION .equals(operationSpecificPhase.getPhaseName())) { operationSpecificPhase.addHandler(new TestHandler(Out1)); operationSpecificPhase.addHandler(middleOperationOutHandler); operationSpecificPhase.addHandler(new TestHandler(Out3)); } } } where PHASES are broken out to package org.apache.axis2.phaseresolver; public class PhaseMetadata { // INFLOW public static final String PHASE_TRANSPORTIN = TransportIn; public static final String PHASE_PRE_DISPATCH = PreDispatch; public static final String PHASE_POST_DISPATCH = PostDispatch; public static final String PHASE_POLICY_DETERMINATION = PolicyDetermination; public static final String PHASE_MESSAGE_PROCESSING = MessageProcessing; // OUTFLOW public static final String PHASE_MESSAGE_OUT = MessageOut; public static final String PHASE_DISPATCH = Dispatch; public static final String PHASE_TRANSPORT_OUT = TransportOut; public static final String TRANSPORT_PHASE = TRANSPORT; which phase would you be attaching your handler to ? Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sun, 12 Apr 2009 16:57:24 +0200 From: alexander.rosem...@gmail.com To: axis-user@ws.apache.org CC: alexander.rosem...@gmail.com Subject: Authentication for non SOAP messages Hi, I've created a bunch of Web services, including an authentication service. All services consume and return raw XML messages (no SOAP) which works fine. Now I would like to force clients to authenticate themselves before they are allowed to access any of the services. My idea is to implement a simple handler which checks whether an authentication flag has been set in the ServiceGroupContext. In case it's not available the only service accessible should be the authentication service and an error response message should be sent. If the flag has been set, all other services can be accessed until ServiceGroupContext timed out or the client logged off. What I can't see is how to send an error response from within a handler. Any
RE: NTLM IISS
you will need to acquire the WSDL in order to create the Client Stub regards, Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: fabrice.ro...@devoteam.com To: axis-user@ws.apache.org Date: Thu, 9 Apr 2009 11:21:46 +0200 Subject: RE: NTLM IISS Hello. I don't think that my problem is in the namespace as if I configure IIS with anonymous connection everything is OK and I can access to all function in Report Services. Anyway the namespace is define by my SQL server installation so it's not possible to change it. I get the WSDL directly with the URL supplied in my post with the ?WSDL option. Axis 2 generate stub to call it without problem. But with IIS using windows authentication I get the 401 error. So I really think that the problem is the NTLM authentication. De : Martin Gainty [mailto:mgai...@hotmail.com] Envoyé : mercredi 8 avril 2009 20:35 À : axis-user@ws.apache.org Objet : RE: NTLM IISS http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices. is a 404 you'll need to use a different schema (which is accessible) and let us know when MS provides a wsdl for that web-service Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: fabrice.ro...@devoteam.com To: axis-user@ws.apache.org Date: Wed, 8 Apr 2009 17:34:48 +0200 Subject: RE: RE: NTLM IISS I have the WSDL provided by reportServer (http://localhost/reportserver/ReportService.asmx?WSDL) and the namespace use by ADB generated bean is http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices. But every time I try to call the ReportServer Ws, I get the 401.2 error sent by IIS, so there is no possible call to the server as IIS act as a filter. I'm not the only user of the server so changing the IIS configuration to Anonymous may not be possible. It's difficult to find information as NTLM as sample don't refer to the right version. De : Martin Gainty [mailto:mgai...@hotmail.com] Envoyé : mercredi 8 avril 2009 16:46 À : axis-user@ws.apache.org Objet : RE: I took a brief look at http://msdn.microsoft.com/en-us/library/reportserviceauthentication.authenticationmode.aspx which states I would need to determine Namespace which will be used (this MUST BE accessible by server and client) e.g. http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices then you'll need to determine the Authentication provider you will be using -Forms -None -Passport -Windows has the WebService Provider provided you a WSDL? Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient
RE:
I took a brief look at http://msdn.microsoft.com/en-us/library/reportserviceauthentication.authenticationmode.aspx which states I would need to determine Namespace which will be used (this MUST BE accessible by server and client) e.g. http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservicesthen you'll need to determine the Authentication provider you will be using -Forms -None -Passport -Windows has the WebService Provider provided you a WSDL? Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: fabrice.ro...@devoteam.com To: axis-user@ws.apache.org Date: Wed, 8 Apr 2009 16:16:07 +0200 Subject: Hi, I'am trying to use Axis 2 to call MSSQL Report Server Web Services. Authentication is done with IIS and NTLM. I found a lot of code sample but nothing work, I always have a 401 : Acces Denied. Does anyone succed using NTLM with Axis 2 ? I also tried to use a proxy parameter in struts2.xml but it doesn't work. Here is my code: ReportingServiceStub stub = new ReportingServiceStub(http://127.0.0.1/ReportServer/ReportService.asmx;); HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator(); auth.setUsername(user); auth.setPassword(password); auth.setHost(server.fr.domain.com); auth.setDomain(domain); auth.setPreemptiveAuthentication(false); List authPrefs = new ArrayList(1); authPrefs.add(AuthPolicy.NTLM); auth.setAuthSchemes(authPrefs); stub._getServiceClient().getOptions().setProperty(HTTPConstants.AUTHENTICATE, auth); com.microsoft.schemas.sqlserver.reporting.reportingservices.ReportingServiceStub.GetReportDefinition getReportDefinition602= (com.microsoft.schemas.sqlserver.reporting.reportingservices.ReportingServiceStub.GetReportDefinition)getTestObject(com.microsoft.schemas.sqlserver.reporting.reportingservices.ReportingServiceStub.GetReportDefinition.class); getReportDefinition602.setReport(/Galaxy/utilisateur); assertNotNull(stub.GetReportDefinition(getReportDefinition602)); Thanks _ Rediscover Hotmail®: Get quick friend updates right in your inbox. http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates1_042009
RE: NTLM IISS
http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices. is a 404 you'll need to use a different schema (which is accessible) and let us know when MS provides a wsdl for that web-service Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: fabrice.ro...@devoteam.com To: axis-user@ws.apache.org Date: Wed, 8 Apr 2009 17:34:48 +0200 Subject: RE: RE: NTLM IISS I have the WSDL provided by reportServer (http://localhost/reportserver/ReportService.asmx?WSDL) and the namespace use by ADB generated bean is http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices. But every time I try to call the ReportServer Ws, I get the 401.2 error sent by IIS, so there is no possible call to the server as IIS act as a filter. I'm not the only user of the server so changing the IIS configuration to Anonymous may not be possible. It's difficult to find information as NTLM as sample don't refer to the right version. De : Martin Gainty [mailto:mgai...@hotmail.com] Envoyé : mercredi 8 avril 2009 16:46 À : axis-user@ws.apache.org Objet : RE: I took a brief look at http://msdn.microsoft.com/en-us/library/reportserviceauthentication.authenticationmode.aspx which states I would need to determine Namespace which will be used (this MUST BE accessible by server and client) e.g. http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices then you'll need to determine the Authentication provider you will be using -Forms -None -Passport -Windows has the WebService Provider provided you a WSDL? Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: fabrice.ro...@devoteam.com To: axis-user@ws.apache.org Date: Wed, 8 Apr 2009 16:16:07 +0200 Subject: Hi, I'am trying to use Axis 2 to call MSSQL Report Server Web Services. Authentication is done with IIS and NTLM. I found a lot of code sample but nothing work, I always have a 401 : Acces Denied. Does anyone succed using NTLM with Axis 2 ? I also tried to use a proxy parameter in struts2.xml but it doesn't work. Here is my code: ReportingServiceStub stub = new ReportingServiceStub(http://127.0.0.1/ReportServer/ReportService.asmx;); HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator(); auth.setUsername(user); auth.setPassword(password); auth.setHost(server.fr.domain.com); auth.setDomain(domain); auth.setPreemptiveAuthentication(false); List authPrefs = new ArrayList(1); authPrefs.add(AuthPolicy.NTLM); auth.setAuthSchemes(authPrefs); stub._getServiceClient().getOptions().setProperty(HTTPConstants.AUTHENTICATE, auth
RE: Extracting attribute values from SAML token in rampart sample 05
//Construct RahasData from MessageContext http://ws.apache.org/rampart/apidocs/org/apache/rahas/RahasData.html //get a default handle SAMLCallbackHandler handler = config.getCallbackHander(); //then construct SAML AttributeCallback to retrieve the RahasData contents http://ws.apache.org/rampart/apidocs/org/apache/rahas/impl/util/SAMLAttributeCallback.html SAMLAttributeCallback cb = new SAMLAttributeCallback(data); SAMLCallbackHandler handler = config.getCallbackHander(); handler.handle(cb); attrs = cb.getAttributes(); en annen svare ? Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 6 Apr 2009 17:06:59 +0200 Subject: Extracting attribute values from SAML token in rampart sample 05 From: hakon.sageh...@bccs.uib.no To: axis-user@ws.apache.org; rampart-...@ws.apache.org Hi all, I was wondering if it's possible to extract the values inside a SAML token. I looked at sample 05 and wanted to list out the values of the attribute statement, I tried this in the password call back handler Element el = pwcb.getCustomToken(); But just got null. What I'm trying to achieve is not just validate that the attributes signed by the sts but also see what attributes the client can give the possessing. How can this be done?? cheers, håkon -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) _ Rediscover Hotmail®: Now available on your iPhone or BlackBerry http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mobile1_042009
RE: weblogic 10g axis - Admin servlet failed to preload on startup
which axis version are you using ? Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: RE: weblogic 10g axis - Admin servlet failed to preload on startup Date: Mon, 6 Apr 2009 11:01:31 -0700 From: vs3...@att.com To: axis-user@ws.apache.org Hi! The stack trace that I get is below. I have cropped a few lines – weblogic.application.ModuleException: [HTTP:101216]Servlet: AdminServlet failed to preload on startup in Web application: SSAxis. java.lang.NullPointerException at org.apache.axis.transport.http.AxisServletBase.getEngineEnvironment(AxisServletBase.java:273) at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:172) at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396) at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112) at javax.servlet.GenericServlet.init(GenericServlet.java:241) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:282) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:63) at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) at weblogic.servlet.internal.StubLifecycleHelper.init(StubLifecycleHelper.java:48) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:507) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1853) at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1830) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1750) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2909) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:973) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:361) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) From: Sirohi, Vivek Sent: Monday, April 06, 2009 10:37 AM To: 'axis-user@ws.apache.org' Subject: weblogic 10g axis - Admin servlet failed to preload on startup Hi All, I have written a web service using axis and have successfully deployed it to weblogic 10g. However I have had to use the prefer-web-inf-classes setting in weblogic.xml to get it to run otherwise it gives me the AdminServlet failed to preload on startup in Web application: error. I don't want to use this setting so was wondering what could be the possible causes of this error and any solutions that you may have to solve this problem. Regards, ViV _ Rediscover Hotmail®: Get quick friend updates right in your inbox. http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates1_042009
RE: Services are not seen is there something Im doing wrong? please help
the service.xml packaged inside your aar is not valid unzip your .aar locate service.xml contained within .aar and validate service.xml with a XML Validator..e.g. http://www.stg.brown.edu/service/xmlvalid Martin __ Disclaimer and confidentiality note This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided. From: cyr...@skire.com To: axis-user@ws.apache.org Date: Wed, 1 Apr 2009 13:17:50 -0700 Subject: Services are not seen is there something Im doing wrong? please help I look at /HappyAxis.jsp It says all core jars are found and located I have deployed StockQuoteService service as given in the examples When I open http://localhost:8081/axis2-web/listService.jsp It says “There seems to be no services listed! Try hitting refresh” Also I keep getting 2009-04-01 12:30:58,891 [http-8081-Processor24] DEBUG http.ApplicationXMLFormatter- end writeTo() 2009-04-01 12:30:58,891 [http-8081-Processor24] DEBUG transport.TransportUtils- Did not find RequestResponseTransport cannot set response written I look at the log4j and see the following log 2009-04-01 13:04:25,131 [main] INFO deployment.ServiceDeployer - Deploying Web service: StockQuoteService.aar - file:/D:/unifier/apps/ROOT/WEB-INF/services/StockQuoteService.aar 2009-04-01 13:04:25,131 [main] DEBUG util.Utils - Created temporary file : D:\unifier\work\Catalina\localhost\_\_axis2\axis24180version.aar 2009-04-01 13:04:25,146 [main] DEBUG util.StAXUtils - XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader 2009-04-01 13:04:25,146 [main] DEBUG builder.StAXOMBuilder - SPACE: [ ] 2009-04-01 13:04:25,146 [main] DEBUG builder.StAXOMBuilder - START_ELEMENT: service:service 2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - Get operation for getPrice 2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - Target namespace: http://quickstart.samples/ 2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - Operations aliases map: {} 2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - Imported namespaces: null 2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - Found axis operation: null 2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - mapActionToOperation: Mapping Action to Operation: action: getPriceRequest; operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice 2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - mapActionToOperation: Mapping Action to Operation: action: getPriceResponse; operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice 2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - mapActionToOperation: Mapping Action to Operation: action: getPrice; operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice 2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - mapActionToOperation: Mapping Action to Operation: action: urn:getPrice; operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice 2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - Get operation for update 2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - Target namespace: http://quickstart.samples/ 2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - Operations aliases map: {urn:getprice=org.apache.axis2.description.inoutaxisoperat...@82674b, getpriceresponse=org.apache.axis2.description.inoutaxisoperat...@82674b, getprice=org.apache.axis2.description.inoutaxisoperat...@82674b, getpricerequest=org.apache.axis2.description.inoutaxisoperat...@82674b} 2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - Imported namespaces: null 2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - Found axis operation: null 2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - mapActionToOperation: Mapping Action to Operation: action: updateRequest; operation: org.apache.axis2.description.inonlyaxisoperat...@14b84c7named: update 2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - mapActionToOperation: Mapping Action to Operation: action: update; operation: org.apache.axis2.description.inonlyaxisoperat...@14b84c7named: update 2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - mapActionToOperation: Mapping Action to Operation: action:
RE: Adding Axis2 service to existing web application.
pls download wsdl4j.jar into WEB-INF/lib http://www.java2s.com/Code/Jar/AXIS2/Downloadwsdl4j162jar.htm Martin __ Disclaimer and confidentiality note This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided. From: azazel...@hotmail.com To: axis-user@ws.apache.org Subject: Adding Axis2 service to existing web application. Date: Wed, 1 Apr 2009 21:13:24 + I have a working web application and want to add an axis2 service to it. The aar file I have been testing with is a simple java class with a public method which echos a string. The service is tested and worked in axis2 standalone server and when axis2 is a web application in Tomcat (axis2.war). But I cannot get it to work when trying to add the service only through my web application. I have added the aar file to the folder myApp.war/WEB-INF/services/ It contains: net/ HelloEcho.class META-INF/ MANIFEST services.xml zzz.wsdl The wsdl is auto-made by java2wsdl and the aar file is made by the service archiver codegen in eclipse. I read in an article (http://www.developer.com/open/article.php/10930_3777111_2) that it could be done by adding the text written at the bottom to the web.xml file in my war which I did. I also added a dependency for axis2 (see below). It deploys without error and the original web application works, but I cannot get the service to work. I get the error mentioned at the bottom when trying to type in http://localhost:8080/myAppl/services/zzz?wsdl . Actually I get this not matter what I write behind the services/ . But zzz is the name of the service and what I wrote in the axis2 servers so I guess the error has to do with axis2 not being properly configured? The article in the link above mentions axis2.xml in a conf/ folder in the WEB-INF, but doesn't say where it is from or what it contains.. Do I have to add more dependencies to maven or more in the web.xml file? Anything I have forgotten or is there an easier way to do what I want? -Az. Web.xml: servlet servlet-nameAxisServlet/servlet-name display-nameApache-Axis Servlet/display-name servlet-class org.apache.axis2.transport.http.AxisServlet /servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameAxisServlet/servlet-name url-pattern/services/*/url-pattern /servlet-mapping--Pom.xml:dependency groupIdorg.apache.axis2/groupId artifactIdaxis2/artifactId version1.4.1/version /dependency-Error when trying to check if service is deployed/working:javax.servlet.ServletException: Servlet.init() for servlet AxisServlet threw exception org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) root cause java.lang.NoClassDefFoundError: javax/wsdl/xml/WSDLLocator org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516) org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) root cause java.lang.ClassNotFoundException: javax.wsdl.xml.WSDLLocator org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516) org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
RE: Implementing a WebService over HTTPS
you'll need to configure a HTTPS connector defined in server.xml here is a good tutorial http://roneiv.wordpress.com/2008/01/03/jboss-tutorial-how-to-enable-ssl-https-on-jboss-as-well-as-other-nice-to-know-configurations/ HTH Martin __ Disclaimer and confidentiality note This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided. Date: Sun, 29 Mar 2009 11:28:37 -0700 From: arati.mahim...@gmail.com To: axis-user@ws.apache.org Subject: Implementing a WebService over HTTPS Hi, Can anyone guide me with Implementing a WebService over HTTPS? I am using JBoss and Axis2 . I followed the steps given on the JBoss community (generated the keystore, got the certificate and imported it, made changes in server.xml file in JBoss) but it didnt work. Thanks, Arati Mahimane -- View this message in context: http://www.nabble.com/Implementing-a-WebService-over-HTTPS-tp22770856p22770856.html Sent from the Axis - User mailing list archive at Nabble.com. _ Internet Explorer 8 – Get your Hotmail Accelerated. Download free! http://clk.atdmt.com/MRT/go/141323790/direct/01/
RE: [Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility
this discussion was initiated by WS-Policy embedded in WSDL from Dennis S If memory serves he mentioned something about various transports not being handled? Is this still the case? Martin __ Disclaimer and confidentiality note This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided. Date: Wed, 25 Mar 2009 16:01:18 -0500 From: se...@ittc.ku.edu To: axis-user@ws.apache.org CC: k...@ittc.ku.edu Subject: Re: [Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility Hi Pradeep, That time frame is fantastic and works great for us! I look forward to hearing from you or seeing the JIRA status change. Thank you very much. leon - Original Message - From: Pradeep Fernando pradee...@gmail.com To: axis-user@ws.apache.org Sent: Wednesday, March 25, 2009 8:46:21 AM GMT -06:00 US/Canada Central Subject: Re: [Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility Hi leon, I'm bit bussy with my GSOC hopefully i would be able to fix this within this week itself. I have gathered required info to work on this issue looks good. Sagara gave me some valuable info on woden parser. thanks , pradeep fernando. -- Leon S. Searl, Software/Hardware Research Engineer Information and Telecommunication Technology Center, University of Kansas Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612 Ph: 785-864-7820 Fax: 785-864-0387 http://www.ittc.ku.edu _ Hotmail® is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009
RE: Axis2 run on Java 6
running Axis2.1.6 on Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode) is there a problem? Martin __ Verzicht und Vertraulichkeitanmerkung / Disclaimer and confidentiality note Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided. Date: Wed, 18 Mar 2009 10:20:15 -0700 From: cathal.callag...@fineos.com To: axis-user@ws.apache.org Subject: Axis2 run on Java 6 Hi, Is anyone currently running Axis2 on Java 6? About to upgrade to Java 6 soon and i would like to know if anyone has come across any reason why this would be an issue when using Axis2 1.4. Thanks, Cathal -- View this message in context: http://www.nabble.com/Axis2-run-on-Java-6-tp22584084p22584084.html Sent from the Axis - User mailing list archive at Nabble.com. _ Windows Live™: Life without walls. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009
RE: Dev environment
Good Evening Jason- IDES: netbeans is the easiest to work with, configure and is easy to learn eclipse adheres to plugin architecture which are not easy to develop but available to add additional processes and features such as Tomcat, cvs (most systems can be melded into the Graphical and Development perspectives available) BUILD ENVIRONMENT: Ant is easy to work with and has a wide established base..but is version agnostic Maven adds version specific development by introducing templates called archetypes..also maven adheres to plugin architecture so youcan use additional features such as antrun for running ant tasks and release to deploy to TC or GF or JB.. HTH Martin Gainty __ Verzicht und Vertraulichkeitanmerkung / Disclaimer and confidentiality note Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided. Date: Tue, 17 Mar 2009 17:08:46 -0400 Subject: Dev environment From: jasonfis...@gmail.com To: axis-user@ws.apache.org Hello folks, I am quite new to java and axis2 and I would turn to you folks for help. I am in the process of setting up a dev environment on Red Hat Linux. I am quite confused as to which IDE (eclipse, myeclipse, netbeans) to use, whether to use maven or ant etc etc. If someone can recommend a good dev environment setup, it will save me some time. Thanks for the help! Jason _ Express your personality in color! Preview and select themes for Hotmail®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme
RE: Axis2 Codegen Wizard
if you can provide the class we can determine this is error is eclipse-plugin problem or Java2WSDL also I prefer to create my .project and .classpath from within eclipse environment after downloading 'blessed' plugins thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sun, 15 Mar 2009 08:06:01 -0400 From: mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Thamizhannal, Thank you for your suggestions, particularly the java2wsdl command line tool. I will certainly give this a try as I urgently need to create the WSDL for my next project release. As for my Java Build Path it currently contains the following libraries: MySQL Connector Jar File Apache Tomcat v5.5 EAR Libraries Java System Library JDK v1.6.0 Web App Libraries (which contains a number of Axis2 jar files) I noticed that the stax-api jar file that had to be added into the Axis2 Codegen Wizard lib folder under the Eclipse plugins was not listed as one of the jar files under Web App Libraries. I might attempt to add this jar file to the build path and see if that helps since it was one of the files mentioned in the solution I tried. Also, there are various versions of this solution, some say to use the stax-api-1.0.1.jar others say to use the geronimo-stax-api_1.1_spec-1.0.1.jar. I have tried both and neither work. Can you, or any one else, comment on which is the correct file of the two? As for the ~\bin folder, after entering the fully qualified class name I click the Add Folder button and add the path to my projects build folder and the sub-folder under it that contains the class file I am trying to generate WSDL for. BTW, I have also tried Add Jar button and pointed the tool to a jar file I created for my project. This did not work either. Mike - Original Message - From: Thamizh To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 2:40 AM Subject: Re: Axis2 Codegen Wizard Mike, Ensure that you have added all the necessary Axis library jar files and supporting jar files to compile your Java source code in Java Build Path. If so this would not show this ClassNotFound error. Also check while adding the class folder name Have you added the project's bin directory. Hope this would resolve your problem. If none of the suggestion were resolving your problem then use command line utility Java2WSDL to generate Java2WSDL. Regards, Thamizhannal P --- On Sun, 15/3/09, Michael mtarullo...@optonline.net wrote: From: Michael mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Date: Sunday, 15 March, 2009, 8:55 AM Martin, First, thank you for your reply. I most certainly can supply the source. Do you need just the class that I am try to generate the WSDL for, supporting classes or the entire project? Let me know and I'll get it to you right away. Mike - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Saturday, March 14, 2009 9:59 PM Subject: RE: Axis2 Codegen Wizard Mike- can you Include the java class contents so we can test it here? thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sat, 14 Mar 2009 18:06:21 -0400 From: mtarullo...@optonline.net Subject: Axis2 Codegen Wizard To: axis-user@ws.apache.org I am having a problem generating a WSDL file from my Java code. The Java source/classpath selection page of the Axis2 Codegen Wizard appears to have several bugs. 1) when I enter the fully qualified
RE: Axis2 Codegen Wizard
%AXIS_HOME%\samples\monmouthJava2WSDL -cn edu.monmouth.rri.ahett.pubwebservice.PublisherWebService Using AXIS2_HOME: F:\AXIS\axis2-1.4 Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_04 F:\AXIS\axis2-1.4\samples\monmouthdir *.wsdl Volume in drive F is DRV4_VOL1 Volume Serial Number is F8AC-7975 Directory of F:\AXIS\axis2-1.4\samples\monmouth 03/15/2009 06:14 PM15,239 PublisherWebService.wsdl its the plugin.. Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sun, 15 Mar 2009 12:44:58 -0400 From: mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Martin, Please see attached Jar file. I provided all the source code for my project, just in case you need it. The following are the source code files I'm using when trying to generate a WSDL file: PublisherWebService.java (implements IPublish.java) SubscriberWebService.java (implements ISubscribe.java) If there is anything else you need please do not hesitate to contact me. Thanks, Mike - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 9:55 AM Subject: RE: Axis2 Codegen Wizard if you can provide the class we can determine this is error is eclipse-plugin problem or Java2WSDL also I prefer to create my .project and .classpath from within eclipse environment after downloading 'blessed' plugins thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sun, 15 Mar 2009 08:06:01 -0400 From: mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Thamizhannal, Thank you for your suggestions, particularly the java2wsdl command line tool. I will certainly give this a try as I urgently need to create the WSDL for my next project release. As for my Java Build Path it currently contains the following libraries: MySQL Connector Jar File Apache Tomcat v5.5 EAR Libraries Java System Library JDK v1.6.0 Web App Libraries (which contains a number of Axis2 jar files) I noticed that the stax-api jar file that had to be added into the Axis2 Codegen Wizard lib folder under the Eclipse plugins was not listed as one of the jar files under Web App Libraries. I might attempt to add this jar file to the build path and see if that helps since it was one of the files mentioned in the solution I tried. Also, there are various versions of this solution, some say to use the stax-api-1.0.1.jar others say to use the geronimo-stax-api_1.1_spec-1.0.1.jar. I have tried both and neither work. Can you, or any one else, comment on which is the correct file of the two? As for the ~\bin folder, after entering the fully qualified class name I click the Add Folder button and add the path to my projects build folder and the sub-folder under it that contains the class file I am trying to generate WSDL for. BTW, I have also tried Add Jar button and pointed the tool to a jar file I created for my project. This did not work either. Mike - Original Message - From: Thamizh To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 2:40 AM Subject: Re: Axis2 Codegen Wizard Mike, Ensure that you have added all the necessary Axis library jar files and supporting jar files to compile your Java source code in Java Build Path. If so this would not show this ClassNotFound error. Also check while adding the class folder name Have you added the project's bin directory. Hope this would resolve your problem. If none of the suggestion were resolving your problem then use command line utility Java2WSDL to generate Java2WSDL. Regards, Thamizhannal P --- On Sun, 15/3/09, Michael mtarullo...@optonline.net wrote: From: Michael mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Date: Sunday, 15 March, 2009, 8:55 AM Martin, First, thank you
RE: Example for WS-SecurityPolicy in WSDL?
hard-gated by lack of create-project.xml in 1.4.1 distros from the doc The recommended procedure is to run the create-project.xml (in the modules\tool directory of the source distribution) i'll see if i can work around Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Mon, 16 Mar 2009 11:42:29 +1300 From: d...@sosnoski.com To: axis-user@ws.apache.org Subject: Re: Example for WS-SecurityPolicy in WSDL? Hi Nandana, I've attached one of several variations I've tried which results in this error. I did find that if I take out the TransportBinding part I don't get the error. Thanks for taking a look! - Dennis Nandana Mihindukulasooriya wrote: Hi Dennis, Can you post the WSDL you are code generating against ? thanks, nandana On Fri, Mar 13, 2009 at 3:09 AM, Dennis Sosnoski d...@sosnoski.com mailto:d...@sosnoski.com wrote: I've been trying to use the client-side code generation support for WS-SecurityPolicy in WSDL, with Axis2 1.4.1 and Rampart 1.4. I've tried several variations of where I place the policy in the WSDL, including using reference and embedding it directly in the wsdl:binding, but each time I get: [java] Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:534) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:260) [java] ... 2 more [java] Caused by: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2732) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2261) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2151) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForInterface(AxisServiceBasedMultiLanguageEmitter.java:1207) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeInterface(AxisServiceBasedMultiLanguageEmitter.java:1163) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:492) [java] ... 3 more [java] Java Result: 1 Has anyone been able to get the client-side generation for WS-SecurityPolicy in WSDL to work? If so, can you supply an example WSDL? Thanks, - Dennis -- Dennis M. Sosnoski SOA and Web Services in Java Axis2 Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 _ Windows Live™ Groups: Create an online spot for your favorite groups to meet. http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009
RE: Axis2 Codegen Wizard
Mike- can you Include the java class contents so we can test it here? thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sat, 14 Mar 2009 18:06:21 -0400 From: mtarullo...@optonline.net Subject: Axis2 Codegen Wizard To: axis-user@ws.apache.org I am having a problem generating a WSDL file from my Java code. The Java source/classpath selection page of the Axis2 Codegen Wizard appears to have several bugs. 1) when I enter the fully qualified class name an error message stating that the class name is not properly terminated is displayed; even after I finish entering the fully quilified name the error message remains displayed 2) after adding the folder containing the class files and clicking the Test Class Loading button I get an error message that says a java.lang.ClassNotFoundException was thrown Is there a fix for this? I have added the stax-api-1.0.1.jar and backport-util-concurrent-3.1.jar file to the Axis2 Codegen Wizard \lib folder in Eclipse\plugins. This did not solve the problem for me. This fix was for a target invocation exception, if I recall. Is this all related to the same problem or are there two different problems here? Any workarounds until this gets fixed? Is using Maven2 an alternative? Any help would be greatly appreciated. BTW: I'm using Eclipse Ganymede(v3.4.1), Axis2 v1.4.1 and Axis2 Codegen Wizard v1.3.0 _ Windows Live™ Contacts: Organize your contact list. http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009
RE: Empty HTTP POST AXIOM
which scenariors would you want to transmit a 0 length request to a WebService ? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sat, 7 Mar 2009 22:30:13 +0100 Subject: Empty HTTP POST AXIOM From: wiebrenst...@gmail.com To: axis-user@ws.apache.org Hello, I'm having problems parsing HTTP POST messages with the AXIOM parser. When the POST messages have a content-length of 0 the parser throws an exception and the server sends a 500 response. Is there any way to resolve this behavior ? Kind regards, Wiebren _ Hotmail® is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009
RE: set http.protocol.single-cookie-header in Axis2
There is an example of using HttpMethodParams in org.apache.axis2.saaj.SOAPConnectionTest.java private boolean isNetworkedResourceAvailable(String url) { HttpClient client = new HttpClient(); GetMethod method = new GetMethod(url); client.getHttpConnectionManager().getParams().setConnectionTimeout(1000); method.getParams().setParameter(HttpMethodParams.SINGLE_COOKIE_HEADER, new DefaultHttpMethodRetryHandler(1, false)); try { int statusCode = client.executeMethod(method); if (statusCode != HttpStatus.SC_OK) { return false; } } catch (HttpException e) { e.printStackTrace(); return false; } catch (IOException e) { e.printStackTrace(); return false; } finally { method.releaseConnection(); } return true; } HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sat, 7 Mar 2009 16:42:17 -0800 From: johnzhang...@hotmail.com To: axis-user@ws.apache.org Subject: set http.protocol.single-cookie-header in Axis2 Axis2 using HTTPClient as it underline http channel. In HTTPClient, I was able to set http.protocol.single-cookie-header as parameter. I think Axis2 using Options to set parameter, could someone give me an example code to set this property to underline HTTP through Axis2 API? Thanks -- View this message in context: http://www.nabble.com/set-%22http.protocol.single-cookie-header%22-in-Axis2-tp22393645p22393645.html Sent from the Axis - User mailing list archive at Nabble.com. _ Windows Live™ Groups: Create an online spot for your favorite groups to meet. http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009
RE: Memory problems using axis2 tomcat and ssl
Hakkon If you dont mind taking advice from a norsk please read http://my.opera.com/karmazilla/blog/2007/03/13/good-riddance-permgen-outofmemoryerror as this is related to the JVM and permgen settings you must tweak JAVA_OPTS env parameter please add these parameters to your JAVA_OPTS env variable switch garbage-collector to concurrent -XX:+UseConcMarkSweepGC collect in permgen space -XX:+CMSPermGenSweepingEnabled allow classes to be unloaded -XX:+CMSClassUnloadingEnabled tweak the Max Perm Gen size up to 128M -XX:MaxPermSize=128m SET JAVA_OPTS=-XX:UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=128m Takk Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Thu, 26 Feb 2009 14:37:58 +0100 Subject: Memory problems using axis2 tomcat and ssl From: hakon.sageh...@bccs.uib.no To: axis-user@ws.apache.org Hi all, I'm experimenting with web services deployed with axis2 in tomcat using ssl for securing them and noticed something strange. I can call one of the services many times and no problems, but when I want to call another service I get java.lang.OutOfMemoryError: PermGen space from tomcat. If I start tomcat without ssl enabled all services and container behaves normally, calling them multiple times works as it should. Have anyone experienced anything similar? I've not altered any of the web services just added the tomcat ssl connector and configured it like this Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=200 scheme=https secure=true clientAuth=false sslProtocol=TLS enableLookups=true keystoreFile=${user.home}/my.jks keystorePass=password acceptCount=100 minSpareThreads=5 maxSpareThreads=75 disableUploadTimeout=true / I'm usign axis2-1.4.1, tomat 6.0.18 cheers, Håkon -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) _ Windows Live™: Discover 10 secrets about the new Windows Live. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!7540.entry?ocid=TXT_TAGLM_WL_t2_ugc_post_022009
RE: AxisFault thrown with 'unknown'
contentType is set for the each element in your XSD e.g. xsd:element maxOccurs=1 minOccurs=1 name=binaryData nillable=true type=xmime:base64Binary xmime:expectedContentTypes=application/octet-stream xmlns:xmime=http://www.w3.org/2005/05/xmlmime/ concerning WSDL messages you can use Message Formatter such as what is seen here !--Following content type to message formatter mapping can be used to implement support for different message -- !--format serialization in Axis2. These message formats are expected to be resolved based on the content type. -- messageFormatters messageFormatter contentType=application/x-www-form-urlencoded class=org.apache.axis2.transport.http.XFormURLEncodedFormatter/ messageFormatter contentType=multipart/form-data class=org.apache.axis2.transport.http.MultipartFormDataFormatter/ messageFormatter contentType=application/xml class=org.apache.axis2.transport.http.ApplicationXMLFormatter/ messageFormatter contentType=text/xml class=org.apache.axis2.transport.http.SOAPMessageFormatter/ messageFormatter contentType=application/soap+xml class=org.apache.axis2.transport.http.SOAPMessageFormatter/ /messageFormatters If you could post your XSD and WSDL we could be of further assistance Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Fri, 20 Feb 2009 13:31:43 +1100 Subject: AxisFault thrown with 'unknown' From: vidu...@gmail.com To: axis-user@ws.apache.org; axis-...@ws.apache.org Hi, I've modified the Axis2 1.4 engine for some experiments and after a recent modification it is throwing the following AxisFault at the client intermittently, org.apache.axis2.AxisFault: unknown at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at edu.rmit.cs.ws.testservice.FactorPrimesServiceStub.primeCount(FactorPrimesServiceStub.java:740) at edu.rmit.cs.net.client.TCPProcessor.createRequest(TCPProcessor.java:127) at edu.rmit.cs.net.client.TCPProcessor.run(TCPProcessor.java:63) at java.lang.Thread.run(Thread.java:713) The client uses an unmodified version of the axis2-kernel-1.4.jar. A few things observed, - If the web service calls are done in a sequential manner (one after the other waiting for the first one to complete) the problem doesn't seem to be there. - Even when the requests are sent in parallel to the server, the first requests gets serviced without any problem. The error comes only on the second request or after that. When the exception is thrown it gets thrown for all the subsequent requests. - When the exception is received at the client, the client hangs momentarily. - No errors are reported on the server. I've been unable to pinpoint exactly what causes this so far after a couple of days effort. However, I found out that the AxisFault gets thrown due to a SOAP fault that happens somewhere up the execution. The AxisFault gets thrown from the client code due to the code in OutInAxisOperationClient.handleRequest, if (resenvelope.hasFault()||responseMessageContext.isProcessingFault()) { if (options.isExceptionToBeThrownOnSOAPFault()) { // does the SOAPFault has a detail element for Excpetion throw Utils.getInboundFaultFromMessageContext(responseMessageContext); } } due to the MessageContext inside operationContext.messageContexts.[Hashmap].key(In), it its properties having a 'fault' for the ContentType. I couldn't specifically find where the ContentType is set from and what causes the fault. Any help in finding out what causes this would be greatly appreciated. Thanks, Vidura _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_022009
RE: Why?
assuming no redirects assuming no logging statements you have to System.out your output the messages to a window Is this not the case? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Fri, 6 Feb 2009 21:10:19 -0500 From: mtarullo...@optonline.net Subject: Why? To: axis-user@ws.apache.org Why would I see a different set of console message when I start Tomcat from the command than when I start it in Eclipse? When I start Tomcat from the command line I see messages for the axis2.war file being deployed, but I don't see them when I start Tomcat in Eclipse. _ Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
RE: Axis2 Fault - actions mismatch
nearest I can tell you have there exists mismatch parameter mismatch for Inflow (actions) and Outflow (actions) protected boolean checkReceiverResults(Vector wsResult, Vector actions) { int resultActions = wsResult.size(); int size = actions.size(); - + // if (size != resultActions) { // throw new AxisFault( // WSDoAllReceiver: security processing failed (actions number // mismatch)); // } - + int ai = 0; for (int i = 0; i resultActions; i++) { int act = ((WSSecurityEngineResult) wsResult.get(i)).getAction(); @@ -256,14 +257,14 @@ } HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Mon, 16 Feb 2009 05:17:25 +0530 Subject: Re: Axis2 Fault - actions mismatch From: nandana@gmail.com To: axis-user@ws.apache.org Cause for this error is that the security header in the request doesn't match the configured actions. Please verify by looking at the request and configured actions. thanks, nandana On Sun, Feb 8, 2009 at 4:29 AM, Iyengar, Kumar kumar_iyen...@bmc.com wrote: Hi all, I have setup Axis2 and am trying to use one of the standard examples for Username Token. I keep getting this error: org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed (actions mismatch). Does anyone know how to resolve this? I use SOAP UI 2.0.1 to send the request in. Any help is appreciated. Thanks, --kumar -- Nandana Mihindukulasooriya WSO2 inc. http://nandana83.blogspot.com/ http://www.wso2.org _ Windows Live™: E-mail. Chat. Share. Get more ways to connect. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_allup_howitworks_022009
RE: Issue with Axis OMElement
can you display the value of enableMtom in axis2.xml? parameter name=enableMTOM locked=falsetrue/parameterassuming you are sending XML Binary Optimised Packages http://ws.apache.org/axis2/0_94/mtom-guide.html ? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Tue, 10 Feb 2009 07:32:11 +0530 Subject: Re: Issue with Axis OMElement From: keithgchap...@gmail.com To: axis-user@ws.apache.org Its hard to say what went wrong where from this. The reason it happened is because of some malformed XML. That's all I can tell you looking at the stack trace. Thanks, Keith. On Mon, Feb 9, 2009 at 11:43 PM, Chandra suriya pandian, Sathish (GE Infra, Energy) sathish.chan...@ge.com wrote: Thanks Keith. I am able to get through that error by changing the type to xs:any. But now i am getting the following exception under the same scenario: Caused by: com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT. at [row,col {unknown-source}]: [1,208] at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605) at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461) at com.ctc.wstx.sr.BasicStreamReader.getElementText(BasicStreamReader.java:677) at org.apache.axiom.om.impl.llom.OMStAXWrapper.getElementText(OMStAXWrapper.java:899) Any idea on the above problem. Regards, Sathish Chandra From: keith chapman [mailto:keithgchap...@gmail.com] Sent: 09 February 2009 16:29 To: axis-user@ws.apache.org Subject: Re: Issue with Axis OMElement Hi, This is due to a bug in Axis2. Ideally an OMElement should map to xs:any and not xs:anyType in the WSDL. Therefore the workaround I could suggest is this, Save the WSDL and edit it to use xs:any instead of xs:anyType. Thanks, Keith. On Mon, Feb 9, 2009 at 8:30 PM, Chandra suriya pandian, Sathish (GE Infra, Energy) sathish.chan...@ge.com wrote: Hi, I have WebService enabled a service method that returns OMElement. The generated WSDL shows the element type as 'anyType'. I generated a stub from the WSDL and executed a client invoking the WebService method through the stub. The HTTP trace shows the response stream returned by WebService is correct. But in the client I am getting the following error: org.apache.axis2.databinding.ADBException: Any type element type has not been given at org.apache.axis2.databinding.utils.ConverterUtil.getAnyTypeObject(Conv erterUtil.java:1612) Exerpt from WSDL is: xs:element name=mtomSampleResponse xs:complexTypexs:sequence xs:element minOccurs=0 name=return nillable=true type=xs:anyType/ /xs:sequence/xs:complexType /xs:element Exerpt from the response stream is: ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;soapenv:Body ns:mtomSampleResponse xmlns:ns=http://ws.apache.org/axis2;ns:return returnxop:Include href=cid:1.urn:uuid:49f67b152b605353d81233939394...@apache.org xmlns:xop=http://www.w3.org/2004/08/xop/include; //return /ns:return/ns:mtomSampleResponse /soapenv:Body/soapenv:Envelope Could you please kindly look into the same and let me know how I can overcome the above problem. Do I have to configure anything to map the response element of type 'anyType' anywhere to construct 'OMElement' back. I am using Axis 2-1.4.1. Regards, Sathish Chandra -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org _ Windows Live™: E-mail. Chat. Share. Get more ways to connect. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_022009
RE: Is It Just Me?
take a look at this link for understanding complexTypes and xsd Schema Definitions http://ws.apache.org/axis/java/user-guide.html Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sun, 8 Feb 2009 15:16:17 -0500 From: mtarullo...@optonline.net Subject: Re: Is It Just Me? To: axis-user@ws.apache.org Deepal, Thank you. I will look at both right now. Mike - Original Message - From: Deepal Jayasinghe dee...@opensource.lk To: axis-user@ws.apache.org Sent: Sunday, February 08, 2009 11:53 AM Subject: Re: Is It Just Me? Hi Michael I would suggest you to read following articles, then you can get better idea about Axis2 service and how to invoke them. to understand POJO in axis2 :- http://wso2.org/library/2893 To understand Axis2 client side :- http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html OK. Is it me? I know I'm 1) not understanding Axis2's API and therefore 2) not using it correctly. For the past three weeks I have been unable to get anything but the simplist web service to work. By simplest I mean a web service that passes and returns only primitives (i.e. int, float, String, etc). I have been following the examples I found on the web (bottom-up web services with Axis2) and on the Apache Axis2 web site ( bottom-up development web services with Axis2 and POJO's). Here is some of what I've tried. Can anyone tell me what I'm missing? Bottom-Up Web Service Using Java Objects As Parameters And/Or Return Values public class WSDataOnlyObj { public String str = This is a data only object; public intnum = 1; } public class WS { private String str; private WSDataOnlyObj objDataOnly; public String GetString( ) { str = This is a string; return str; } public WSDataOnlyObj GetDataOnlyObj( ) { objDataOnly = new WSDataOnlyObj( ); return objDataOnly; } } CLIENT CODE --- import java.rmi.RemoteException; import org.apache.axis2.AxisFault; public class WSClient { public static void main(String[] args) { try { WSStub.GetStringResponse getStringResp; WSStub.GetDataOnlyObjResponse getDOObjResp; WSStub stub = new WSStub(http://localhost:8080/Webservice/services/WS/ws/pojo/service;); getStringResp = stub.GetString(); getDOObjResp = stub.GetDataOnlyObj(); System.out.println(RESULT Of Call To Web Service GetSting(): + getStringResp.get_return()); System.out.println(RESULT Of Call To Web Service GetDataOnlyObj().getStr(): + getDOObjResp.get_return().getStr()); System.out.println(RESULT Of Call To Web Service GetDataOnlyObj().getNum(): + getDOObjResp.get_return().getNum()); } catch(AxisFault axisEx) { System.out.println(axisEx.getMessage()); } catch(RemoteException remEx) { System.out.println(remEx.getMessage()); } } } RESULTS --- RESULT Of Call To Web Service GetSting(): This is a string RESULT Of Call To Web Service GetDataOnlyObj().getStr(): null RESULT Of Call To Web Service GetDataOnlyObj().getNum(): -2147483648 You see Getting the String return value works fine with this method but not getting the object return value. Now let's look at trying the POJO example given in the Axis2 documentation. Bottom-Up Web Service Using Java Objects As Parameters And/Or Return Values - POJO Client Example public class WSDataOnlyObj { private String str = This is a data only object; public String GetString( ) { return str; } public void SetString(String aStr) { str = aStr; } } public class WS { public WSDataOnlyObj GetDataOnlyObj( ) { WSDataOnlyObj objDataOnly = new WSDataOnlyObj( ); return objDataOnly; } } import javax.xml.namespace.QName; import org.apache.axis2.AxisFault; import org.apache.axis2.addressing.EndpointReference; import org.apache.axis2.client.Options; import org.apache.axis2.rpc.client.RPCServiceClient; public class WSTestClientApp { public static void main(String[] args) { try { RPCServiceClient serviceClient = new RPCServiceClient( ); Options options = serviceClient.getOptions( ); EndpointReference epr = new EndpointReference(http://localhost:8080/WSTest/services/WS;); options.setTo(epr); Object[ ] opWSDataOnlyObjArgs = new Object [ ] { }; Class [ ]
RE: SV: Java Code generated by wsdl2java gives a lot of warnings during compilation
Good Evening Lars- You may not use generics on a pre5 JVM http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html One possible solution would be to backport to 1.4 but I would advise not to do so.. Can you display the code so we can run it here??? Sverige Altid/ Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: l...@ohlen.se To: axis-user@ws.apache.org Subject: SV: Java Code generated by wsdl2java gives a lot of warnings during compilation Date: Mon, 2 Feb 2009 18:53:54 +0100 We are using Axis2 /Lars Från: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] Skickat: den 2 februari 2009 07:04 Till: axis-user@ws.apache.org Ämne: Re: Java Code generated by wsdl2java gives a lot of warnings during compilation Are you using Axis2 or Axis1? thanks, Amila. On Sat, Jan 31, 2009 at 6:51 PM, Lars Ohlén l...@ohlen.se wrote: Hi all, The Java source code generated by wsdl2java gives a lot of warnings during compilation. (Mostly type problems with generics). We use java 1.5 as target, but the code generated seems to generated to be compatible with older versions. I have seen some questions about this in the passed, with suggestions like adding annotations etc to ignore the warnings (and of course manually fixing all the problems), Neither of the solutions are appealing. But I saw something about changing templates, and something about a Maven based generation tool. Has anyone successfully used some of these? Any suggestions or ideas appreciated BR Lars -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ _ Hotmail® goes where you go. On a PC, on the Web, on your phone. http://www.windowslive-hotmail.com/learnmore/versatility.aspx#mobile?ocid=TXT_TAGHM_WL_HM_versatility_121208
RE: Problems With Axis2
from what I read you have to configure a facet extension point as in extension point=org.eclipse.wst.common.project.facet.core.facets project-facet id=formgen.core labelFormGen Core/label description Enables generation of HTML forms based on XML definition files. /description /project-facet project-facet-version facet=formgen.core version=1.0/ project-facet id=formgen.ext labelFormGen Extensions/label description Enables additional FormGen widgets. /description /project-facet project-facet-version facet=formgen.ext version=1.0/ /extensionhttp://www.eclipse.org/articles/Article-BuildingProjectFacets/tutorial.html#creating.basic.facets Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Mon, 26 Jan 2009 19:25:24 -0500 From: mtarullo...@optonline.net Subject: Re: Problems With Axis2 To: axis-user@ws.apache.org Tori, I have been following the instructions given in the like you supplied below. These are some of the problems that I am encountering: 1) When taking inventory of the WTP pieces I have installed I do not find 'the non-SDK package of the Web Tools Platform refered to a Web App Developers' 2) I continued on and my configuration matches the configuration in the link except I am using Tomcat v5.5 3) When I create a new Dynamic Web Project I do not get Project Facets and therefore no Axis2 Web Services checkbox. Did you encounter any of these problems? If so how did you fix them? Thanks, Mike - Original Message - From: Toriacht shatner.will...@gmail.com To: axis-user@ws.apache.org Sent: Sunday, January 25, 2009 6:22 PM Subject: Re: Problems With Axis2 Hi Mike, I'm afraid I'm a novice but the following tutorial is a simple guide to setting up/using AXIS2 with eclipse, it worked for me... http://www.builderau.com.au/program/java/soa/Setting-up-a-simple-Web-service-using-Java/0,339024620,339284524,00.htm Best Regards, Tori -- View this message in context: http://www.nabble.com/Problems-With-Axis2-tp21657840p21658229.html Sent from the Axis - User mailing list archive at Nabble.com. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.13/1915 - Release Date: 1/25/2009 6:13 PM _ Hotmail® goes where you go. On a PC, on the Web, on your phone. http://www.windowslive-hotmail.com/learnmore/versatility.aspx#mobile?ocid=TXT_TAGHM_WL_HM_versatility_121208
RE: Design AXIS2 web service for .NET
http://my.execpc.com/~gopalan/dotnet/webservices/webservice_csharp_client.html Create the .NET Service call from the WSDL wsdl /l:CS /protocol:SOAP http://localhost/ServerName/ServerServiceName.asmx?wsdl then compile the service csc /t:library /r:System.WebServices.sll /r:System.xml.dll OIDServer.cs then create the client wsdl /l:CS /protocol:SOAP http://localhost/OIDServer/OIDServer.asmx?WSDL wsdl /l:CS /protocol:HttpGet http://localhost/OIDServer/OIDServer.asmx?WSDL wsdl /l:CS /protocol:HttpPost http://localhost/OIDServer/OIDServer.asmx?WSDL Now compile csc /t:library /r:System.Web.Services.dll /r:System.Xml.dll OIDServer.cs HTH Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Fri, 23 Jan 2009 08:25:44 -0800 From: mathias.muel...@etc-consult.de To: axis-user@ws.apache.org Subject: Design AXIS2 web service for .NET Hello, I'm new to AXIS2 web services. I have studied the POJO Weather example of the AXIS2 user guide. The example runs fine. Now I have a question to make this web service available for a VB .NET client. How can I get access to the methods of the Weather class? Do I have to make these methods available in the WeatherService class and is this the right design pattern for this case? I have access to the methods setWeather(...) and getWeather() from the .NET client. Best regards, etcuser -- View this message in context: http://www.nabble.com/Design-AXIS2-web-service-for-.NET-tp21627641p21627641.html Sent from the Axis - User mailing list archive at Nabble.com. _ Windows Live™ Hotmail®…more than just e-mail. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_howitworks_012009
RE: List of free webservices
contact the webmaster for those sites..(Im sure they would be interested in ferretting out the dead links) whatever happened to UDDI ..did that ever come to pass..IBM had a UDDI site but I havent heard of anyone else implementing this registry system? too bad there is'nt a automated process available to find dead links Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Thu, 22 Jan 2009 07:34:32 -0800 From: To: axis-user@ws.apache.org Subject: Re: List of free webservices Hello all. I have tried two of these services myself, to get a better understanding of Axis. But neither seem to work for me. In both cases the addresses in the code generated from the WSDL file doesn't seem to resolve to anything, and I get a ConnectionException, timed out. For example, the first service listed on the xmethods website, http://www.xmethods.net/ve2/index.po http://www.xmethods.net/ve2/index.po (PrimeNumber generator) has the QName set as http://microsoft.com/webservices/ http://microsoft.com/webservices/ ...this doesn't resolve as you can see. The other one I tried ( http://services.aonaware.com/ http://services.aonaware.com/ ) has a similar address setting of http://services.aonaware.com/webservices/ http://services.aonaware.com/webservices/ - this also cannot be found. Are these just out of date, or am I doing something fundamentally wrong? Many thanks. Sabari Venkatachalam wrote: Hello, I have found another one web service portal, http://services.aonaware.com/ Thanks, Sabari.V --- On Thu, 8/1/09, virtuallight virtualli...@hotmail.com wrote: From: virtuallight virtualli...@hotmail.com Subject: Re: List of free webservices To: axis-user@ws.apache.org Date: Thursday, 8 January, 2009, 12:45 AM Here you go. http://www.xmethods.net/ve2/index.po Regards, Bill -- From: florin.botis fld...@yahoo.com Sent: Tuesday, January 06, 2009 9:34 AM To: axis-user@ws.apache.org Subject: List of free webservices Hello, I'm a student in computer science and I need some web services for some project. I don't know what kind of web services but I will chose one when I will have some options. Please tell me where I can find some nice/cool web services in the web. If you know some please send me the link of the homepage. Best regards, Florin Botis -- View this message in context: http://www.nabble.com/List-of-free-webservices-tp21315053p21315053.html Sent from the Axis - User mailing list archive at Nabble.com. Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ -- View this message in context: http://www.nabble.com/List-of-free-webservices-tp21315053p21606601.html Sent from the Axis - User mailing list archive at Nabble.com. _ Windows Live™: E-mail. Chat. Share. Get more ways to connect. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_allup_howitworks_012009