Re: [Axis2] Please VOTE for your favorite bug to be fixed.
Let me put some of my thoughts about blockers and releases. According to the current rules, we have to have zero blockers to do a release. So sometimes what we does is downgrade some issue according to their criticalness. I think this is not a necessity. As I believe deciding a blocker or not is up to the user. if he do not have any work around and if he as block due to that issue it is ok to put this as a blocker. So another person can not change it unless he can give an valid work around or find an problem with the issue (according to some spaces). On the other hand as developers we have some limitations. i.e Sometimes we may unable to fix a blocker (i.e due to technical problems etc..) So there may be issues which are blockers but won't fix for the release. What I am basically saying is this. Lets say after an release (e.g .Axis2 1.2 ) we got 20 blockers and could fix 17 and 3 left. if the last 3 going to take lot of time are we supposed to hold the release until all are fixed? So that every one has to wait until everything fixed. My guess is we should release with the fixed blockers and with the new features have added to the release. But one thing. For any release we can not have broken features. i.e. which were worked with the earlier release but not now. This does not mean we don't do any thing about the reaming 3 blockers. we can time to time try to fix this with different ways. For an example in codegen there were some problems with the xmlbeans and adb after Axis2 1.2. I could fixed most of adb issues and add lot of new featurs as well (some issues regarding adb-codegen, codgen, wsdl) . But could not resolve some critical xmlbeans problems although I tried them. So if someone suggest to stop adding new features until fix all the xmlbeans problems, I belive that is not an efficient use of time. And also Since at close to a release everyone concentrating on fixing issues, if someone report issues on an RC there is high probability of being fixed them immediately. Finally this is what I have to say, As developers we must try our best to resolve blockers. mean time we have to add new features to the product as well. otherwise it won't evolve. Thanks. Amila. On 7/4/07, Amila Suriarachchi [EMAIL PROTECTED] wrote: On 7/2/07, Kelvin Lin [EMAIL PROTECTED] wrote: I am really looking forwards to fixing this one: https://issues.apache.org/jira/browse/AXIS2-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel Second part of two-part message is ignored by WSDL2Java because in my project doing now, there is a this scenario: wsdl:message name=createRequest wsdl:part name=header element=abc:header/ wsdl:part name=create element=abcthis:createRequest / /wsdl:message It prevent me from using wsdl2c tool. see my comment on this, this wsdl is not valid according to the WS basic profile. see http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#refinement16574232 R2210 if you use document literal binding you can not have more than one part unless you delare one in soap boady. *Ruchith Fernando [EMAIL PROTECTED]* wrote: Yes we will be releasing Rampart along with Axis2 as soon as 1.3goes out! Thanks, Ruchith On 7/2/07, stlecho wrote: Is this cleaning up phase also applicable for the Rampart module or only for the Axis2 framework ? In other words, can I vote for JIRA issues related to Rampart ? Regards, Stefan Lecho. dims wrote: Dear Axis2 Users, We are working hard on cleaning up the issues in JIRA. -- View this message in context: http://www.nabble.com/-Axis2--Please-VOTE-for-your-favorite-bug-to-be-fixed.-tf3996952.html#a11391423 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- www.ruchith.org www.wso2.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Nowhttp://us.rd.yahoo.com/evt=48223/*http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow(it's updated for today's economy) at Yahoo! Games. -- Amila Suriarachchi, WSO2 Inc. -- Amila Suriarachchi, WSO2 Inc.
Re: [Axis2] Temporary files/ Stress testing with Axis2 1.2 [SEC=UNCLASSIFIED]
Hello Asankha, At the moment we are running on Windows XP, so we'll have to do some research about how to increase the open file limit on Windows. We did some further testing on this issue, and found that the Too many open files error only seems to occur when hot deployment is set to true in axis2.xml, and it occurs after ~400 iterations of loading the configurationContext. Also, even with the patch we put into the org.apache.axis2.deployment.util.Utils class, another problem (OutOfMemoryError) occurs after ~2826 iterations - so it's not really a permanent fix. When hot deployment is set to false however, no problems seem to occur even after 10 iterations. I suspect this might be related to the issue raised previously in this user forum regarding cleanup of AxisConfigurators (see http://mail-archives.apache.org/mod_mbox/ws-axis-user/200706.mbox/[EMAIL PROTECTED] ). Also, when we substituted the nightly build from 3rd July into the dependencies for the test (leaving hotdeployment as true), we get the original Too many open files error after 400 iterations. I've created a issue in JIRA for this ( https://issues.apache.org/jira/browse/AXIS2-2899) and attached the configuration/modules we're using to the issue. Thanks, Greg Asankha C. Perera [EMAIL PROTECTED] 02/07/2007 10:03 PM Please respond to axis-user@ws.apache.org To axis-user@ws.apache.org cc Subject Re: [Axis2] Temporary files/ Stress testing with Axis2 1.2 [SEC=UNCLASSIFIED] Reference Expires Greg Are you running the system on Windows or Linux? The OS decides the number of files a process can open. If you are using a Unix system, try to increase the number of files as follows. This is not a solution for a possible Axis2 issue, but something to make sure before you run a typical load test. You may be able to find alternatives for Windows on Google. Maybe http://coldfused.blogspot.com/2007/02/mystery-of-too-many-open-files.html would be of interest too. /etc/sysctl.conf fs.file-max = 2097152 /etc/security/limits.conf * soft nofile 4096 * hard nofile 65535 asankha Davanum Srinivas wrote: Greg, Please create an issue in JIRA and upload your test ASAP. we are in the middle of perf testing. this would be a great scenario to fix for 1.3 release. thx, dims On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Our team is currently using Axis2 1.2 in our application and we are running some performance and stress tests with JMeter. While running these stress tests we have come across two issues that we hope someone can help us with. The first issue relates to temporary files. In our stress testing we were using the URLBasedAxisConfigurator to load .mar files on the client side, but got the error below with 1 user and 1000 iterations: java.lang.RuntimeException: java.io.IOException: Too many open files;; at org.apache.axis2.deployment.util.Utils.getURLsForAllJars(Utils.java(Compiled Code));; at org.apache.axis2.deployment.util.Utils.createClassLoader(Utils.java:684);; at au.gov.centrelink.jfs.proxy.axis2.ClientURLBasedAxisConfigurator.loadRepositoryFromURL(ClientURLBasedAxisConfigurator.java(Compiled Code));; at org.apache.axis2.deployment.URLBasedAxisConfigurator.getAxisConfiguration(URLBasedAxisConfigurator.java:72);; at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:60);; at au.gov.centrelink.jfs.proxy.ProxyFactory.createStub(ProxyFactory.java:699);; at au.gov.centrelink.jfs.proxy.ProxyFactory.createProxy(ProxyFactory.java:440);; at au.gov.centrelink.jfs.proxy.ProxyFactory.createProxy(ProxyFactory.java:395);; at au.gov.centrelink.jsf.pst.core.CDCCustomerEmailAddressTester2.execute(CDCCustomerEmailAddressTester2.java:64);; at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421);; at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226);; at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164);; at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415);; at javax.servlet.http.HttpServlet.service(HttpServlet.java:763);; at javax.servlet.http.HttpServlet.service(HttpServlet.java:856);; at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572);; at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521);; at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113);; at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82);; at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759);;
Streaming Soap with Attachments
Does soap with attachments using MIME multipart support streaming? I have goggled around trying to find out if there is a possibility of doing that but i end up getting some old postings and documentations that suggest that SwA does not support streaming I have also tried to simulate streaming a considerably large amount of data by sending it as a data handler and then use the streaming capability of the activation framework to stream the data into an output stream But what I got is an overhead equivalent to the time spend to transmit the whole file to the client before the streaming begins(my conclusion was that the data is received in a one-go and because of it's large size it take's the processor sometime to allocate some memory space to save it before the streaming even begins) Does anyone have any explanation? Thanks in advance
Re: Which databinding axis1 has?
Thanks for your response! Alexey On 7/3/07, Anne Thomas Manes [EMAIL PROTECTED] wrote: Axis uses it's own internal databinding system (referred to as de/serialization) that's based on SAX. It is not a pluggable option. (Perhaps you've seen messages such as no deserialized found for [qname]). Axis provides built-in de/serializers for beans and arrays, and you can provide custom de/serializers for other types. You specify the de/serializers to use, and the mapping between qnames and types in the WSDD using the beanMapping and typeMapping options. If you want to use a third-party databinding system, then you must use the low-level message provider (provider=MSG), which deserializes the message into DOM, which you can then bind to your object model. Anne On 7/3/07, Deepal Jayasinghe [EMAIL PROTECTED] wrote: I think it has xmlbeans support. Thanks Deepal Alexey Zavizionov wrote: Hello, I googled, read docs and searched in sources, but found nothing about what databinding for WSDL2Java axis1 uses? Alexey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploy TCPTransport
yesterday i tried again but i cannot really find a way to use ws-addressing. The code below seems to work, i think im doing something wrong in the addressing part. is this EndpointReference er = new EndpointReference(tcp://localhost:777/ConnectionManager); a correct way to specify the EPR + service name with a tcp client/server? Yari Marchetti ha scritto: thx a lot for the answer. i read the document and did how it was told, but i keep getting the same error. Here is the code snippet i use: TCPServer t = new TCPServer(,C:\\axis2); //axis2.xml in this repository contains module ref=addressing/ t.start(); ConfigurationContext cc = ConfigurationContextFactory.createConfigurationContextFromFileSystem(C:\\test\\prova, C:\\test\\axis2.xml);//repository with addressing module ServiceClient service = new ServiceClient(cc,null); service.engageModule(addressing); Options o = new Options(); EndpointReference er = new EndpointReference(tcp://localhost:777/ConnectionManager); o.setTo(er); o.setAction(PerformNetworkMonitoring); service.setOptions(o); service.sendReceive(payload); The service name is ConnectionManager and the operation is PerformNetworkMonitoring. Using TCPMon i was able to sniff the packet and i can see there is no reference to the service name (in the W3C document http://www.w3.org/Submission/ws-addressing/ there is a wsa:ServiceName PortName=/xs:NCName/?/xs:QName//wsa:ServiceName but i cant find a way to set it), so i dont really know how the service dispatcher could dispatch this request. thx for any help yari - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Problems with Statefull WebService and .NET client
Hello, I have a StateFull WebService written with Axis2 1.1.1 with scope=soapsession. Know I want to develop a .NET client to test interoperability. It works well, I can call every Service Method. But the client ignores WS-Addressing information's. The ServiceGroupID is not sended back to the WebService. I know this is not a axis2 question, but I hope anybody here has written a .net 2.0 client, to consume a statefull webservice. With the wsdl.exe tool, I have generate a Proxy class. I can't access to the soap header (or I don't know how), to read the servicegroupID by hand and send it back. Does anyone know how does this work or where I can find information's about that? I try to search MSDN and google. Without useful results. Thanks a lot! _ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071distributionid=0066 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to get custom WSDL during runtime instead of generated WSDL in Axis 2
Ok, it works partially for me.. I still have get the soap:address location=../ changed at runtime.. some ideas? Krishnamoorthy J (HCL Financial Services) wrote: Hi J.K., Setting the parameter name=useOriginalwsdltrue/parameter worked. Thanks, Krishna From: Jarek Kucypera [mailto:[EMAIL PROTECTED] Sent: Thursday, March 08, 2007 7:16 PM To: axis-user@ws.apache.org Subject: Re: how to get custom WSDL during runtime instead of generated WSDLin Axis 2 Krishnamoorthy J (HCL Financial Services) wrote: Hi, What is the option similar to wsdlFile property of service-config.wsdd (Axis 1.4) in Axis 2? How to get the custom WSDL file displayed instead of Axis generated WSDL in Axis2 1.1.1? Put the wsdl in the META-INF folder of the service, next to the services.xml file. Consider also setting parameter name=useOriginalwsdltrue/parameter in services.xml, I'm not sure how exactly it influences the wsdl displayed, but i think it may help. J.K. DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. --- -- View this message in context: http://www.nabble.com/RE%3A-how-to-get-custom-WSDL-during-runtime-instead-of-generated-WSDL-in-Axis-2-tf3368620.html#a11428408 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: soap address location
What?? xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap12/; I think there`s a kind of typo here? Two definition for the same namespace.. I see some exception in my console Anyway I think you mean xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; and yes, it works.. but it`s quite a workaround.. sounds a bit dirty as well..but in the mean time, I think I`ll use it Nuno Martins wrote: Hi all, Problem solved. I just changed, in my wsdl, in /wsdl:definitions /parameter xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap12/; Regards Nuno Martins wrote: Hi Deepal, It worked. My WSDL is the original except the URL in address location. My WSDL contains wsdl:service name=test01 wsdl:port binding=tns:test01SoapBinding name=test01ServerHttpPortType soap:address location=*https://test01.example.com?wsdl*; / /wsdl:port /wsdl:service and in my browser, my wsdl appears like this wsdl:service name=test01 wsdl:port name=test01HttpPortType binding=tns:test01SoapBinding soap:address location=*http://192.168.129.145:8080/test/services/signature*/ /wsdl:port /wsdl:service Any ideia why URL is changed? Regards Deepal Jayasinghe wrote: Hi Nuno ; add the following parameter into your services.xml; parameter name=useOriginalwsdltrue/parameter Thanks Deepal Hi, The problem is that https was changed to http and I forgot to tell another thing https://www.test.com/axis2/services/Test1?wsdl was changed to http://www.test.com*:8080*/axis2/services/Test1 How can I force that wsdl in run time is the same that I created? Regards Thilina Gunarathne wrote: If the following is what you are getting, then I feel like it's correct.. http://www.test.com/axis2/services/Test1 What's your desired address location and what you are getting now... Thanks, Thilina On 12/27/06, Nuno Martins [EMAIL PROTECTED] wrote: Hi, I have deployed some sample secure service in Axis2 in Tomcat. When I try to generate WSDL for the service, I find that the soap address location is incorrect. The query URL is https://www.test.com/axis2/services/Test1?wsdl The soap address location is http://www.test.com/axis2/services/Test1 How can I change soap address location? Why is changed? Regards -- View this message in context: http://www.nabble.com/soap-address-location-tf2883512.html#a11428745 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom WSDL port locations not honored
Yes I got the same a workaround could be changing the namespace in this way xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; it works.. sounds a bit quick and dirty as well..but in the mean time, I think I`ll use it.. Boemker, Tim wrote: I have deployed an AAR with WSDL like this: wsdl:service name=FoobarService wsdl:port name=FoobarServiceSOAP11port_http binding=axis2:FoobarServiceSOAP11Binding soap:address location=http://foobar.com/FoobarService/ /wsdl:port wsdl:port name=FoobarServiceSOAP12port_http binding=axis2:FoobarServiceSOAP12Binding soap12:address location=http://foobar.com/FoobarService/ /wsdl:port wsdl:port name=FoobarServiceHttpport1 binding=axis2:FoobarServiceHttpBinding http:address location=http://foobar.com/FoobarService/ /wsdl:port /wsdl:service When I query Axis2 for the wsdl, it returns WSDL like this: wsdl:service name=FoobarService wsdl:port name=FoobarServiceSOAP12port_http binding=axis2:FoobarServiceSOAP12Binding soap12:address location=http://foobar.com/FoobarService/ /wsdl:port wsdl:port name=FoobarServiceHttpport1 binding=axis2:FoobarServiceHttpBinding http:address location=http://foobar.com/FoobarService/ /wsdl:port wsdl:port name=FoobarServiceSOAP11port_http binding=axis2:FoobarServiceSOAP11Binding soap:address location=http://199.16.40.1:80/axis2/services/FoobarService/ /wsdl:port /wsdl:service Why does it change the location for the SOAP 1.1 port? Thanks, Tim -- View this message in context: http://www.nabble.com/Custom-WSDL-port-locations-not-honored-tf2948145.html#a11428808 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: sesion managment, scope=soapsession
Hi developers ... :-) Running multipple clients, each talkes to an instance of MyService5.java; MyService5.java has init(), login(), map(), logout(), destroy(), implemented; It was said somewhere in this mailing-list that init() and destroy() methods get called at the proper time by axis2 if they are implemented; this hhrough reflection. My simple question is: How do I properly terminate such a session from my Client code (avoiding problems to axis2) when a) MyService5 runs in scope=soapsession and b) has a long timeout set to 86'400'000 milliseconds (= 24hr's)? c) init() and destroy() are ONLY to be called by axis2 itself Josef Stadelmann @axa-winterthur.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception in rampart configuration with inflow - outflow classes
It worked!! Thanks a lot. About Policies, do you know where can I find any sample on how to get a service policy from the client and check the compatibility with client's policy?? In rampart samples, policies are set on services.xml and I don't know how can the client access them. Should I put them in the WSDL and read them with any special method?? Could someone point me on a nice sample on that?? Regards, Jorge Fernández Dimuthu [EMAIL PROTECTED] escribió: Hi, Please try this, stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY, ClientUtilities.getOutflowConfiguration().getProperty()); stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.INFLOW_SECURITY, ClientUtilities.getInflowConfiguration().getProperty()); You can also load different policy objects for different client calls. Cheers, Dimuthu On Wed, 2007-07-04 at 00:07 +0200, Jorge Fernandez wrote: Hi, For quite a long time I've been trying to configure a client that is invoking some operations to encrypt just some of the messages. I have read in this page that the rampart 1.0 configuration style could be use even though is marked as deprecated. http://ruchith.blogspot.com/2007/06/apache-rampart-12-released.html So I tried to do it and I'm getting the following exception: rg.apache.axis2.AxisFault: Configureation error at org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:94) at org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72) at org.apache.axis2.engine.Phase.invoke(Phase.java:383) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:433) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) at client.Medici_LinkSOAP12PortStub.validateSystem(Medici_LinkSOAP12PortStub.java:747)Validating system ch4_001mu... at client.ClientUtilities.validateSystemTest(ClientUtilities.java:73) at client.Client.main(Client.java:33) Caused by: org.apache.axis2.AxisFault: Configureation error at org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:151) at org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:88) ... 9 more Caused by: java.lang.ClassCastException: org.apache.rampart.handler.config.InflowConfiguration cannot be cast to org.apache.axis2.description.Parameter at org.apache.rampart.util.HandlerParameterDecoder.processParameters(HandlerParameterDecoder.java:63) at org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:149) ... 10 more I'm doing this: stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY, ClientUtilities.getOutflowConfiguration()); stub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.INFLOW_SECURITY, ClientUtilities.getInflowConfiguration()); public static OutflowConfiguration getOutflowConfiguration(){ OutflowConfiguration ofc = new OutflowConfiguration(); ofc.setActionItems(Timestamp Signature Encrypt); ofc.setUser(client1); ofc.setPasswordCallbackClass(client.PWCBHandler); ofc.setSignaturePropFile(client1.properties); ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE); //ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER); ofc.setEncryptionUser(service); ofc.getProperty(); return ofc; } public static InflowConfiguration getInflowConfiguration(){ InflowConfiguration ifc = new InflowConfiguration(); ifc.setActionItems(Timestamp Signature Encrypt); ifc.setPasswordCallbackClass(client.PWCBHandler); ifc.setSignaturePropFile(client1.properties); ifc.getProperty(); return ifc; } Can anybody tell me what's the problem??? or tell me another way to configure the client to encrypt certain messages??? Thanks a lot, Jorge Fernández __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - ¡Descubre una nueva forma de obtener respuestas a tus preguntas! Entra en Yahoo! Respuestas.
simple question about request scope
Hi, My question is: using request scope, ServiceGroupContext has the same life time as the invocation of the operation??? Do I have to use ConfigurationContext if I want to keep something in common to all service invocations or do I have another option??? Thanks in advance, Jorge Fernández - LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com
[Axis2] CodeGen Problem
Hello, I try to generate a client Stub with wsdl2java. I got the following Exception if I execute the wsdl2java tool. It seems, that the codeGen tool believes, that the is no messagepart bipro:Security declared int the wsdl file. But, as you can see in the attached file, it is declared. I'm using axis1.2 with rampart1.2 Thanks a lot! Regards Jochen [java] SCHWERWIEGEND: org.apache.axis2.AxisFault: message part bipro:Security not found in the WSDL [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [java] at org.apache.tools.ant.Task.perform(Task.java:364) [java] at org.apache.tools.ant.Target.execute(Target.java:341) [java] at org.apache.tools.ant.Target.performTasks(Target.java:369) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) [java] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:137) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134) [java] ... 14 more [java] Caused by: org.apache.axis2.AxisFault: message part bipro:Security not found in the WSDL [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:298) [java] at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:100) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:131) [java] ... 22 more [java] Caused by: org.apache.axis2.AxisFault: message part bipro:Security not found in the WSDL [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2080) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:466) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:374) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:334) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:288) [java] ... 24 more [java] --- Nested Exception --- [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:137) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178) [java] at
RE: Axis2 rest
If you want to use POX(plain old xml) over HTTP using the POST mechanism then you could dispatch the complex data types. But that is not the pure form of REST. try to design your schema in such a way that you can invoke the requests using simple GET mechanism. From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Tue 7/3/2007 6:03 PM To: axis-user@ws.apache.org Subject: Re: Axis2 rest Perhaps one of the developers can answer this? I'd be more inclined to use straight HTTP than Axis2, though. Anne On 7/3/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote: Thanks Anne. How do you submit a request having complex types with a POST? Can you show me for the login method sample with User object containing username password? Thanks Raghu From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 2:41 PM To: axis-user@ws.apache.org Subject: Re: Axis2 rest You can submit a resource representation (containing complex types) using PUT or POST. But Jeff is correct that you cannot submit a complex query parameter via URL encoding. Also note that encoding a password as a query parameter in a URL (per Raghu's example) violates just about every security best practice imaginable. And this time I'll bite my tongue and not rant about the inappropriateness of turning a method into a resource. Anne On 7/3/07, Walker, Jeff [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You don't pass complex types in REST web services. Period. It's all about those Query parameters, the name-value pairs following the '?' and separated by the ''. REST services is all about manipulating resources, not passing complex types. If you want to send complex types, then you need the so-called 'big' web services technologies like SOAP/WSDL. -jeff -Original Message- From: Raghu Upadhyayula [mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Tuesday, July 03, 2007 3:45 PM To: axis-user@ws.apache.org Subject: RE: Axis2 rest Hi Zakaria, For the methods with simple parameters you use it like this Say I have a webservice MyService with login method and username password parameters, then the rest URL will look like this. http://localhost/axis2/services/MyService/login?username=raghupassword= xxx But I'm not sure how to call it if the parameter is a complex type, like if my login method takes in a User object which has username password as members of the User object, then I'm not sure how to call that. Thanks Raghu -Original Message- From: zakaria ghandour [mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Tuesday, July 03, 2007 9:10 AM To: axis-user@ws.apache.org Subject: Re: Axis2 rest Hi, axis2/services/{service name}/{Operation name} can you tel me how to call ws as rest if there is parameters ?? thanks -- View this message in context: http://www.nabble.com/Axis2---rest-tf4018616.html#a11414842 Sent from the Axis - User mailing list archive at Nabble.com http://nabble.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] CodeGen Problem
Please create a JIRA and upload your wsdl. thanks, dims On 7/4/07, Jochen Zink [EMAIL PROTECTED] wrote: Hello, I try to generate a client Stub with wsdl2java. I got the following Exception if I execute the wsdl2java tool. It seems, that the codeGen tool believes, that the is no messagepart bipro:Security declared int the wsdl file. But, as you can see in the attached file, it is declared. I'm using axis1.2 with rampart1.2 Thanks a lot! Regards Jochen [java] SCHWERWIEGEND: org.apache.axis2.AxisFault: message part bipro:Security not found in the WSDL [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [java] at org.apache.tools.ant.Task.perform(Task.java:364) [java] at org.apache.tools.ant.Target.execute(Target.java:341) [java] at org.apache.tools.ant.Target.performTasks(Target.java:369) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) [java] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:137) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134) [java] ... 14 more [java] Caused by: org.apache.axis2.AxisFault: message part bipro:Security not found in the WSDL [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:298) [java] at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:100) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:131) [java] ... 22 more [java] Caused by: org.apache.axis2.AxisFault: message part bipro:Security not found in the WSDL [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2080) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:466) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:374) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:334) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:288) [java] ... 24 more [java] --- Nested Exception --- [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:137) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134) [java] at
Re: sesion managment, scope=soapsession
Does anyone know if there is any documentation anywhere on the web that explains axis2 sessions? Specifically the ending of sessions? I have searched all over the web for how to kill a transport session, and I have seen many others asking how to end all types of sessions, but nobody seems to know :) Is it impossible? Thanx Susanne On 7/4/07, Stadelmann Josef [EMAIL PROTECTED] wrote: Hi developers ... :-) Running multipple clients, each talkes to an instance of MyService5.java; MyService5.java has init(), login(), map(), logout(), destroy(), implemented; It was said somewhere in this mailing-list that init() and destroy() methods get called at the proper time by axis2 if they are implemented; this hhrough reflection. My simple question is: How do I properly terminate such a session from my Client code (avoiding problems to axis2) when a) MyService5 runs in scope=soapsession and b) has a long timeout set to 86'400'000 milliseconds (= 24hr's)? c) init() and destroy() are ONLY to be called by axis2 itself Josef Stadelmann @axa-winterthur.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sesion managment, scope=soapsession
I've always thought that web service sessions - in any framework - don't play nice together or even in the same framework. In the axis2 case, I've seen a lot of confusion in this area and after reading countless emails and several articles about it, and reading the code, I still don't entirely get how it would handle what I typically need. This isn't a criticism - I'm just saying I think sessions need to be tailored to each specific case beyond the basics. Therefore I tend to roll my own and just generate the session key - I like to use java 5 and UUID - and manage it myself on the server side, forcing the client to manually pass it back in on every request after login. It took me a mere two days to write the code and I've used it in several projects since. Not very standard, but as I said, the standard ways never really worked for me. It might be worth exploring rolling your own as its not too difficult. HTH, Robert On 7/4/07, fat suze [EMAIL PROTECTED] wrote: Does anyone know if there is any documentation anywhere on the web that explains axis2 sessions? Specifically the ending of sessions? I have searched all over the web for how to kill a transport session, and I have seen many others asking how to end all types of sessions, but nobody seems to know :) Is it impossible? Thanx Susanne On 7/4/07, Stadelmann Josef [EMAIL PROTECTED] wrote: Hi developers ... :-) Running multipple clients, each talkes to an instance of MyService5.java ; MyService5.java has init(), login(), map(), logout(), destroy(), implemented; It was said somewhere in this mailing-list that init() and destroy() methods get called at the proper time by axis2 if they are implemented; this hhrough reflection. My simple question is: How do I properly terminate such a session from my Client code (avoiding problems to axis2) when a) MyService5 runs in scope=soapsession and b) has a long timeout set to 86'400'000 milliseconds (= 24hr's)? c) init() and destroy() are ONLY to be called by axis2 itself Josef Stadelmann @axa-winterthur.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Streaming Soap with Attachments
Axis1 or Axis2? Can you post some code of what you tried? thanks, dims On 7/4/07, Peter Makoi [EMAIL PROTECTED] wrote: Does soap with attachments using MIME multipart support streaming? I have goggled around trying to find out if there is a possibility of doing that but i end up getting some old postings and documentations that suggest that SwA does not support streaming I have also tried to simulate streaming a considerably large amount of data by sending it as a data handler and then use the streaming capability of the activation framework to stream the data into an output stream But what I got is an overhead equivalent to the time spend to transmit the whole file to the client before the streaming begins(my conclusion was that the data is received in a one-go and because of it's large size it take's the processor sometime to allocate some memory space to save it before the streaming even begins)…. Does anyone have any explanation? Thanks in advance -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Streaming Soap with Attachments
The delay is due to the default behaviour of writeObject() in javax.activation.DataHandler. The stream that gets passed to it is buffered, which will have to fill up before the bytes are sent over the socket's stream. Also the ByteArrayDataSource requires that the DataSource be fully written to before it can be read from. I had to do something similar. I had small amounts of data that had to be sent over a long period of time. I ended up having to write a custom DataSource that made data available to the InputStream as soon as it was available, and to implement a custom DataHandler to would flush the output in writeObject when ever it wrote data. Hope that helps, Alex Davanum Srinivas wrote: Axis1 or Axis2? Can you post some code of what you tried? thanks, dims On 7/4/07, Peter Makoi [EMAIL PROTECTED] wrote: Does soap with attachments using MIME multipart support streaming? I have goggled around trying to find out if there is a possibility of doing that but i end up getting some old postings and documentations that suggest that SwA does not support streaming I have also tried to simulate streaming a considerably large amount of data by sending it as a data handler and then use the streaming capability of the activation framework to stream the data into an output stream But what I got is an overhead equivalent to the time spend to transmit the whole file to the client before the streaming begins(my conclusion was that the data is received in a one-go and because of it's large size it take's the processor sometime to allocate some memory space to save it before the streaming even begins)…. Does anyone have any explanation? Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 rest
You should use GET only if your intention is to get a representation of a resource -- i.e., a safe operation that does not effect any change of state to the server. If your intention is to make some type of change to the resource, you should use one of the following non-safe methods: POST, PUT, or DELETE. As Vibhor says, if you want to follow REST constraints, then you should design your resources in such a way that every *thing* that you might want to get from the service has a unique URI. You should never need to pass a complex type as input to identify the thing you are trying to get. Your login request is not a safe method. In a RESTful system, it would create a resource that represents your session. Therefore you should use POST rather than GET. But why are you doing a login in the application payload? You should use the infrastructure for authentication -- HTTP authentication, SSL authentication, or WS-Security authentication. Anne On 7/4/07, Vibhor_Sharma [EMAIL PROTECTED] wrote: If you want to use POX(plain old xml) over HTTP using the POST mechanism then you could dispatch the complex data types. But that is not the pure form of REST. try to design your schema in such a way that you can invoke the requests using simple GET mechanism. From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Tue 7/3/2007 6:03 PM To: axis-user@ws.apache.org Subject: Re: Axis2 rest Perhaps one of the developers can answer this? I'd be more inclined to use straight HTTP than Axis2, though. Anne On 7/3/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote: Thanks Anne. How do you submit a request having complex types with a POST? Can you show me for the login method sample with User object containing username password? Thanks Raghu From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 2:41 PM To: axis-user@ws.apache.org Subject: Re: Axis2 rest You can submit a resource representation (containing complex types) using PUT or POST. But Jeff is correct that you cannot submit a complex query parameter via URL encoding. Also note that encoding a password as a query parameter in a URL (per Raghu's example) violates just about every security best practice imaginable. And this time I'll bite my tongue and not rant about the inappropriateness of turning a method into a resource. Anne On 7/3/07, Walker, Jeff [EMAIL PROTECTED] wrote: You don't pass complex types in REST web services. Period. It's all about those Query parameters, the name-value pairs following the '?' and separated by the ''. REST services is all about manipulating resources, not passing complex types. If you want to send complex types, then you need the so-called 'big' web services technologies like SOAP/WSDL. -jeff -Original Message- From: Raghu Upadhyayula [mailto: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 3:45 PM To: axis-user@ws.apache.org Subject: RE: Axis2 rest Hi Zakaria, For the methods with simple parameters you use it like this Say I have a webservice MyService with login method and username password parameters, then the rest URL will look like this. http://localhost/axis2/services/MyService/login?username=raghupassword= xxx But I'm not sure how to call it if the parameter is a complex type, like if my login method takes in a User object which has username password as members of the User object, then I'm not sure how to call that. Thanks Raghu -Original Message- From: zakaria ghandour [mailto: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 9:10 AM To: axis-user@ws.apache.org Subject: Re: Axis2 rest Hi, axis2/services/{service name}/{Operation name} can you tel me how to call ws as rest if there is parameters ?? thanks -- View this message in context: http://www.nabble.com/Axis2---rest-tf4018616.html#a11414842 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
specifying retries of client stub
Hello all, How can I set the client service stub to retry if the underlying http connection times out or throws some other error? I believe that sandesha2 can do this, but I'm not able to deploy any additional modules to axis2 at this time. Are there any other options? P
rampart causes problems with hierarchies
Hi, Some months ago, I had some problems with the use of hierarchies with adb and xmlbeans. Apparently they were resolved with adb but know, I'm getting the same error. For example: I have an array of an object called parent and I put into that array instances of child1 or child2 (those inherit from parent). In the xml generated from that array should appear the xsi:type attribute but when I engage rampart module, that attribute dissapears. So maybe that was the cause of the problems I had before. See https://issues.apache.org/jira/browse/XMLBEANS-329 and https://issues.apache.org/jira/browse/AXIS2-2578. - ¡Descubre una nueva forma de obtener respuestas a tus preguntas! Entra en Yahoo! Respuestas.
Re: rampart causes problems with hierarchies
Jorge, Please log a new bug with your test case. thanks, dims On 7/4/07, Jorge Fernandez [EMAIL PROTECTED] wrote: Hi, Some months ago, I had some problems with the use of hierarchies with adb and xmlbeans. Apparently they were resolved with adb but know, I'm getting the same error. For example: I have an array of an object called parent and I put into that array instances of child1 or child2 (those inherit from parent). In the xml generated from that array should appear the xsi:type attribute but when I engage rampart module, that attribute dissapears. So maybe that was the cause of the problems I had before. See https://issues.apache.org/jira/browse/XMLBEANS-329 and https://issues.apache.org/jira/browse/AXIS2-2578. ¡Descubre una nueva forma de obtener respuestas a tus preguntas! Entra en Yahoo! Respuestas. -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis2 rest
Hi Anne, I'm not using REST for my web services, I just gave the login sample as an example for zakaria's email about passing parameters to in a REST way. Thanks Raghu From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Wed 7/4/2007 3:23 PM To: axis-user@ws.apache.org Subject: Re: Axis2 rest You should use GET only if your intention is to get a representation of a resource -- i.e., a safe operation that does not effect any change of state to the server. If your intention is to make some type of change to the resource, you should use one of the following non-safe methods: POST, PUT, or DELETE. As Vibhor says, if you want to follow REST constraints, then you should design your resources in such a way that every *thing* that you might want to get from the service has a unique URI. You should never need to pass a complex type as input to identify the thing you are trying to get. Your login request is not a safe method. In a RESTful system, it would create a resource that represents your session. Therefore you should use POST rather than GET. But why are you doing a login in the application payload? You should use the infrastructure for authentication -- HTTP authentication, SSL authentication, or WS-Security authentication. Anne On 7/4/07, Vibhor_Sharma [EMAIL PROTECTED] wrote: If you want to use POX(plain old xml) over HTTP using the POST mechanism then you could dispatch the complex data types. But that is not the pure form of REST. try to design your schema in such a way that you can invoke the requests using simple GET mechanism. From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Tue 7/3/2007 6:03 PM To: axis-user@ws.apache.org Subject: Re: Axis2 rest Perhaps one of the developers can answer this? I'd be more inclined to use straight HTTP than Axis2, though. Anne On 7/3/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote: Thanks Anne. How do you submit a request having complex types with a POST? Can you show me for the login method sample with User object containing username password? Thanks Raghu From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 2:41 PM To: axis-user@ws.apache.org Subject: Re: Axis2 rest You can submit a resource representation (containing complex types) using PUT or POST. But Jeff is correct that you cannot submit a complex query parameter via URL encoding. Also note that encoding a password as a query parameter in a URL (per Raghu's example) violates just about every security best practice imaginable. And this time I'll bite my tongue and not rant about the inappropriateness of turning a method into a resource. Anne On 7/3/07, Walker, Jeff [EMAIL PROTECTED] wrote: You don't pass complex types in REST web services. Period. It's all about those Query parameters, the name-value pairs following the '?' and separated by the ''. REST services is all about manipulating resources, not passing complex types. If you want to send complex types, then you need the so-called 'big' web services technologies like SOAP/WSDL. -jeff -Original Message- From: Raghu Upadhyayula [mailto: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 3:45 PM To: axis-user@ws.apache.org Subject: RE: Axis2 rest Hi Zakaria, For the methods with simple parameters you use it like this Say I have a webservice MyService with login method and username password parameters, then the rest URL will look like this. http://localhost/axis2/services/MyService/login?username=raghupassword= xxx But I'm not sure how to call it if the parameter is a complex type, like if my login method takes in a User object which has username password as members of the User object, then I'm not sure how to call that. Thanks Raghu -Original Message- From: zakaria ghandour [mailto: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 9:10 AM To: axis-user@ws.apache.org Subject: Re: Axis2 rest Hi, axis2/services/{service name}/{Operation name} can you tel me how to call ws as rest if there is parameters ?? thanks -- View this message in context: http://www.nabble.com/Axis2---rest-tf4018616.html#a11414842 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: Axis2 rest
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Walker, Jeff wrote: You don't pass complex types in REST web services. Period. Completely disagree. It's all about those Query parameters, the name-value pairs following the '?' and separated by the ''. Remember one realization of REST is to use HTTP and HTTP has methods other than GET. As Anne also has mentioned you are only talking about GET method here. If you use POST method to pass parameters to your resource, then you can send complex xmls. BTW, WSDL 2.0 HTTP Binding which is what we used to implement RESTish (if you do not agree POX style) inside Axis2. The HTTP binding spec says, if you want to send something using HTTP get then your xml schema should adhere to IRI style. IRI style simply says you can not send complex xmls. REST services is all about manipulating resources, not passing complex types. Well, half true and half false. REST is about manipulating resources but it has no restriction on the XML that is being passed. Those restrictions comes from the realizations like HTTP. If you want to send complex types, then you need the so-called 'big' web services technologies like SOAP/WSDL. Well, I am wondering why SOAP/WSDL is regarded as big here :) just joking. Thanks, Chinthaka -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGjF3kjON2uBzUhh8RAikMAJ4p5Ojo07FD6OyqFGlL8+xtAyukAwCePH7n Q65T2Ezp1FjjPILOE9vJF+s= =HOMI -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Change MessageContext AND envelope in Handler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sebastian Roschke wrote: Hi Deepal, thanks for the answer. I know that there is no change in the envelope. But is there any possibility to change the envelope? Would it be possible to work directly within the envelope? When I get the envelope object, and maybe a specific part of the header as OMElement, would I be able to change the envelope in that way. For example: OMElement element = msgContext.getEnvelope().getHeader().getFirstChild(); element.setText(hallo); Would this affect the envelope itself? Yes !! Chinthaka -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGjF67jON2uBzUhh8RAqlXAKCsy47rTzF3wonDmpsHOiObX9eX0gCfcvlX XK120M76ThiBah/+EPXOPbQ= =R4M7 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Change MessageContext AND envelope in Handler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sebastian Roschke wrote: Hi, I've got a problem concerning the MessageContext used in Axis2 MessageReceivers and Handlers. Is it possible to change members of the message context; e.g. WSAAction? How this changes can be applied to envelope within this message context? I tried msgContext.getEnvelope().buildWithAttachements() but it ignores the changes of the WSAAction member completely. When you set a different WSA action, it won't touch the envelope. The WSA action parameter within the message context is just a place holder for WSA action. The value can come from the SOAP message, transport headers or any other place. It is not a shortcut method to access the WSA action within SOAP envelope. Chinthaka -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGjF8pjON2uBzUhh8RAiHWAKCNYakMdRZPdFF3Yu9IHiEK2WENPQCbB2uO q5PDEHDaj95e3eL1Ru0ChH4= =HVXA -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] CodeGen Problem
this problem is in here wsdl:operation name=RequestSecurityToken soapbind:operation soapAction=urn:RequestSecurityToken style=document/ wsdl:input name=RequestSecurityTokenRequest soapbind:header message=bipro:Security part=bipro:Security use=literal/ soapbind:body use=literal/ /wsdl:input wsdl:output name=RequestSecurityTokenResponse soapbind:body use=literal/ /wsdl:output /wsdl:operation the message part is not namespace qualified So you have to put it as soapbind:header message=bipro:Security part=Security use=literal/ this would fix your problem. And also if you want to send nothing in body put parts= in soap body soapbind:body parts= use=literal/ On 7/4/07, Davanum Srinivas [EMAIL PROTECTED] wrote: Please create a JIRA and upload your wsdl. thanks, dims On 7/4/07, Jochen Zink [EMAIL PROTECTED] wrote: Hello, I try to generate a client Stub with wsdl2java. I got the following Exception if I execute the wsdl2java tool. It seems, that the codeGen tool believes, that the is no messagepart bipro:Security declared int the wsdl file. But, as you can see in the attached file, it is declared. I'm using axis1.2 with rampart1.2 Thanks a lot! Regards Jochen [java] SCHWERWIEGEND: org.apache.axis2.AxisFault: message part bipro:Security not found in the WSDL [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute( ExecuteJava.java:180) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java :178) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84) [java] at org.apache.tools.ant.UnknownElement.execute( UnknownElement.java:275) [java] at org.apache.tools.ant.Task.perform(Task.java:364) [java] at org.apache.tools.ant.Target.execute(Target.java:341) [java] at org.apache.tools.ant.Target.performTasks(Target.java:369) [java] at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1216) [java] at org.apache.tools.ant.Project.executeTarget(Project.java :1185) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets( DefaultExecutor.java:40) [java] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets (EclipseDefaultExecutor.java:32) [java] at org.apache.tools.ant.Project.executeTargets(Project.java :1068) [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run( InternalAntRunner.java:423) [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main( InternalAntRunner.java:137) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine .init(CodeGenerationEngine.java:137) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run( ExecuteJava.java:202) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute( ExecuteJava.java:134) [java] ... 14 more [java] Caused by: org.apache.axis2.AxisFault: message part bipro:Security not found in the WSDL [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService( WSDL11ToAxisServiceBuilder.java:298) [java] at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices (WSDL11ToAllAxisServicesBuilder.java:100) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine .init(CodeGenerationEngine.java:131) [java] ... 22 more [java] Caused by: org.apache.axis2.AxisFault: message part bipro:Security not found in the WSDL [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements (WSDL11ToAxisServiceBuilder.java:2080) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding( WSDL11ToAxisServiceBuilder.java:466) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint( WSDL11ToAxisServiceBuilder.java:374) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints( WSDL11ToAxisServiceBuilder.java:334) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService( WSDL11ToAxisServiceBuilder.java:288) [java] ... 24 more [java] --- Nested Exception --- [java]
Re: WSDL2java default stub generation.
On 7/1/07, Alexey Zavizionov [EMAIL PROTECTED] wrote: Hello, I think that by default should be generated all ports for all services. And with option you may choose which ports for wich services will be generated. Sorry for late reply. Actually I had done this change before one day to your reply. Any way you can use -ap option. The main problem lot of people pointed out was the length of the generated classname. this would confuse an new commer to an axis2. thanks, Amila. Thanks, Alexey On 6/28/07, Amila Suriarachchi [EMAIL PROTECTED] wrote: hi all, currently wsdl2java generate stubs for all the ports in all the services unless user has restricted to generate the code for a particular service or a particular port. As a result of this generated stub names are long and it seems a lot of people don't happy with this. For this problem paul has suggested a solution in [1]. For an example lets say we have two services like this, service name=Service1 port name=Port1 binding=Soap12/ port name=Port2 binding=Soap11/ /service service name=Service2 port name=Port1 binding=Soap12/ port name=Port2 binding=Soap11/ /service for this currently we have Service1Port1Stub.java Service1Port2Stub.java Service2Port1Stub.java Service2Port2Stub.java And the new proposal suggest to generate only Service1Stub.java -- for Port1 in Service1 Service2Stub.java -- for Port1 in Service2 (here I assume it is reasonable to generate a Stub for each service although it is not explicitly specified in the proposal) the priority order for pick a port within the service is depends on the ports binding type. the order is Soap12, Soap11 and http. And give a seperate -all option to generate code as in now if user requried. Please comment on this. If someone dose not oppose I'll go ahead and do this change. thanks, Amila. [1] https://issues.apache.org/jira/browse/AXIS2-2831 -- Amila Suriarachchi, WSO2 Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi, WSO2 Inc.
Re: [Axis2] Problem with invoking web service by using Stub classes
generating code make sure you use -uw option. this will generate you a much simplified api. then created the stub classl XXXStub stub = new XXXStub(); then call the method stub.XXX(); On 7/3/07, Charitha Kankanamge [EMAIL PROTECTED] wrote: Hi, The following will help you to get some understanding on creating clients. http://ws.apache.org/axis2/1_2/quickstartguide.html#clientadb Let us know if you cannot resolve your problem using the above reference. regards Charitha Naga Srinivas wrote: *Hi, I am new to Axis2, i am trying to develop a web service, and trying to invoke it by using it's stub classes. I had created Stubs and Skeletons of web service and successfully deployed services to a standalone Axis2 server. but now, i would like to know how can we sent request to that services, by using stub classes in our application. Can any one help me?. Regards, Naga.* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi, WSO2 Inc.
Re: [Axis2] Please VOTE for your favorite bug to be fixed.
Hi Amila, Thanks a lot. I have modified my wsdl file to following the standard specification, by modifying to: wsdlsoap:body parts=create use=literal / Thanks again. Kelvin Amila Suriarachchi [EMAIL PROTECTED] wrote: On 7/2/07, Kelvin Lin [EMAIL PROTECTED] wrote:I am really looking forwards to fixing this one: https://issues.apache.org/jira/browse/AXIS2-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel Second part of two-part message is ignored by WSDL2Java because in my project doing now, there is a this scenario: wsdl:message name=createRequest wsdl:part name=header element=abc:header/ wsdl:part name=create element=abcthis:createRequest / /wsdl:message It prevent me from using wsdl2c tool. see my comment on this, this wsdl is not valid according to the WS basic profile. see http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#refinement16574232 R2210 if you use document literal binding you can not have more than one part unless you delare one in soap boady. Ruchith Fernando [EMAIL PROTECTED] wrote: Yes we will be releasing Rampart along with Axis2 as soon as 1.3 goes out! Thanks, Ruchith On 7/2/07, stlecho wrote: Is this cleaning up phase also applicable for the Rampart module or only for the Axis2 framework ? In other words, can I vote for JIRA issues related to Rampart ? Regards, Stefan Lecho. dims wrote: Dear Axis2 Users, We are working hard on cleaning up the issues in JIRA. -- View this message in context: http://www.nabble.com/-Axis2--Please-VOTE-for-your-favorite-bug-to-be-fixed.-tf3996952.html#a11391423 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- www.ruchith.org www.wso2.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. -- Amila Suriarachchi, WSO2 Inc. - Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.