Re: Sandesha2 1.5 Release Candidate
Hi Amila, Definitely. I was planning on getting to this asap. I will try to get to it today and put the vote out. Regards, Dave Dave Parsons Web Services Development INTERNAL: David Parsons1/UK/i...@ibmgb :: DE3F20 :: 246930 EXTERNAL: parso...@uk.ibm.com :: (01962) 816930 Mail Point 211, IBM Hursley Park, Winchester. SO21 2JN From: Amila Suriarachchi amilasuriarach...@gmail.com To: David Parsons1/UK/i...@ibmgb Cc: axis-user@ws.apache.org, sandesha-...@ws.apache.org, axis-...@ws.apache.org, gene...@ws.apache.org Date: 18/02/2010 04:55 Subject: Re: Sandesha2 1.5 Release Candidate since rampart 1.5 has been released shall we do the sandesha release? thanks, Amila. On Tue, Oct 6, 2009 at 9:07 PM, David Parsons1 parso...@uk.ibm.com wrote: Hi, I have created a Sandesha2 1.5 release candidate here: http://people.apache.org/~parsonsd/sandesha-1.5/RC1/dist/ and the M2 repository can be found here: http://people.apache.org/~parsonsd/sandesha-1.5/RC1/m2_repo/ This release candidate is using the Rampart 1.5 release candidate which can be found: http://people.apache.org/~nandana/rampart-1.5/RC1/dist/ and the M2 repository for this can be found here: http://people.apache.org/~nandana/rampart-1.5/RC1/m2_repo/ I will leave this available for a short period of time. If no one finds any issues I'll request a vote on whether to submit it as a release of Sandesha2. The Rampart 1.5 release is going to have to be cut before I can officially cut the Sandesha2 release so does anyone know how close this is to being done? Regards, Dave Dave Parsons Web Services Development INTERNAL: David Parsons1/UK/i...@ibmgb :: DE3F20 :: 246930 EXTERNAL: parso...@uk.ibm.com :: (01962) 816930 Mail Point 211, IBM Hursley Park, Winchester. SO21 2JN Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
AUTO: Dave Parsons is out of the office. (returning 30/11/2009)
I am out of the office until 30/11/2009. I will respond to your message when I return. Speak to Sara Mitchell if you have any technical or project related WSRM issues. For UDDI issues speak to Mark Lewis. Anything else speak to my manager Hilora Munro. Cheers, Dave Note: This is an automated response to your message Re: Problem running axis2-wsdl2code-maven-plugin sent on 17/11/09 16:03:25. This is the only notification you will receive while this person is away.
RE: Use XMLBeans with Axis1?
Specifically, I need to see exactly how you tell wsdl2java to use xmlbeans. I'm using the Ant task. I don't need to know that I can, I just need to know how to do it. I've examined the available options for the Ant task, and I just don't see it. From: Olindo Pindaro [mailto:o.pind...@gmail.com] Sent: Tuesday, November 17, 2009 1:13 AM To: axis-user@ws.apache.org Subject: Re: Use XMLBeans with Axis1? wsdl2java could use xmlbeans when you invoking it to map wsdl objects in java beans. You can use SOAPUI , a GUI to automate webservice code generation using Axis1 o 2 (and not only axis), to do that. So on generated classes you can manipulate objects using get set, so xmlBeans is transparent to the programmer, you can see it just as included packeges in generated classes. I hope to be more clear. Bye Olindo 2009/11/17 KARR, DAVID (ATTCINW) dk0...@att.com Ok, I guess I should have worded my question differently. Can you tell me HOW you did it? Show me the required elements and what they look like. From: Olindo Pindaro [mailto:o.pind...@gmail.com] Sent: Monday, November 16, 2009 2:59 PM To: axis-user@ws.apache.org Subject: Re: Use XMLBeans with Axis1? I just relased a project using Axis 1.4 with xmlbeans. No problem, the Integration is natural, seamless. 2009/11/16 KARR, DAVID (ATTCINW) dk0...@att.com I know that usage of Axis1 is probably pretty rare now, but I wanted to know whether there is any (successful) experience integrating Axis1 with XMLBeans. I've done some searches on the internet, and the only ones I found were people who gave up. :) Bye! -- Olindo Pindaro http://www.linkedin.com/in/olindopindaro +39 3939455830 -- Olindo Pindaro http://www.linkedin.com/in/olindopindaro +39 3939455830
Use XMLBeans with Axis1?
I know that usage of Axis1 is probably pretty rare now, but I wanted to know whether there is any (successful) experience integrating Axis1 with XMLBeans. I've done some searches on the internet, and the only ones I found were people who gave up. :)
RE: Use XMLBeans with Axis1?
Ok, I guess I should have worded my question differently. Can you tell me HOW you did it? Show me the required elements and what they look like. From: Olindo Pindaro [mailto:o.pind...@gmail.com] Sent: Monday, November 16, 2009 2:59 PM To: axis-user@ws.apache.org Subject: Re: Use XMLBeans with Axis1? I just relased a project using Axis 1.4 with xmlbeans. No problem, the Integration is natural, seamless. 2009/11/16 KARR, DAVID (ATTCINW) dk0...@att.com I know that usage of Axis1 is probably pretty rare now, but I wanted to know whether there is any (successful) experience integrating Axis1 with XMLBeans. I've done some searches on the internet, and the only ones I found were people who gave up. :) Bye! -- Olindo Pindaro http://www.linkedin.com/in/olindopindaro +39 3939455830
unsubscribe
From: Chinmoy Chakraborty [mailto:cch...@gmail.com] Sent: 21 October 2009 12:09 To: axis-user@ws.apache.org Subject: Re: Error page returned instead of Soap Exception when WS-Security Authentication fails in Rampart I saw this error and I suppose this is fixed in 1.5..you can look at [1]. [1]. [ https://issues.apache.org/jira/browse/RAMPART-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12739525#action_12739525 ] HTH, Chinmoy On Wed, Oct 21, 2009 at 12:17 PM, Ellecer Valencia elle...@gmail.commailto:elle...@gmail.com wrote: Hi, I'm trying to set up WS-Security (just username/password-clear-text) and I'm trying to get the service to return a Soap Exception when the user logs in with the wrong details. Should be easy, right? However, I keep getting HTTP 500 error pages instead of Soap Exceptions, like this one: htmlheadtitleApache Tomcat/6.0.18 - Error report/titlestyle!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoqma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--/style /headbodyh1HTTP Status 500 - /h1HR size=1 noshade=noshadepbtype/b Status report/ppbmessage/b u/u/ppbdescription/b uThe server encountered an internal error () that prevented it from fulfilling this request./u/pHR size=1 noshade=noshadeh3Apache Tomcat/6.0.18/h3/body/html Now I'm testing using axis 1.4.1, putting the exploded webapp in the tomcat /webapps directory. When I started getting the error pages, I thought removing the mappings for the HTTP 500 error in /WEB-INF/web.xml would fix it, but it didn't. I've now removed everything else in the Tomcat webapps directory, I've cleaned out the Tomcat /work directory, I've even removed the /axis2-web directory in the Axis webapp, just to eliminate the possiblity of any more JSPs - *and the error pages still keep displaying*. I came across a post from July that is having a problem similar to mine: http://marc.info/?l=axis-userm=124662013625695w=2 However, I didn't come across any posts that resolved his problem. The software I'm using is: Axis 1.4.1 Rampart 1.4 Tomcat 6.0.18 Has anyone encountered this problem and what fixed it? I've tried doing it using policy.xml and via basic rampart config, and am getting similar results. Actually, the curious thing is that when I get the error from a service configured with basic rampart config, I get a stacktrace, like this: mhtmlheadtitleApache Tomcat/6.0.18 - Error report/titlestyle!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--/style /headbodyh1HTTP Status 500 - /h1HR size=1 noshade=noshadepbtype/b Exception report/ppbmessage/b u/u/ppbdescription/b uThe server encountered an internal error () that prevented it from fulfilling this request./u/ppbexception/b prejava.lang.NullPointerException org.apache.rampart.RampartMessageData.lt;initgt;(RampartMessageData.java:308) org.apache.rampart.MessageBuilder.build(MessageBuilder.java:61) org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64) org.apache.axis2.engine.Phase.invoke(Phase.java:317) org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:520) org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:416) org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:379) org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:167) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) /pre/ppbnote/b uThe full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs./u/pHR size=1 noshade=noshadeh3Apache Tomcat/6.0.18/h3/body/html -- and it says Exception report instead of Status report like in the first one. I don't know if this indicates it's a different page that is hardcoded inside of Axis
Does axis2-java2wsdl-maven-plugin work (with Axis2 1.5)?
I am trying to get the java2wsdl Maven plugin to work with no luck. Does anyone have this plugin working? I am using Axis2 1.5 and when I run mvn axis2-java2wsdl:java2wsdl I get a NullPointerException. Can anyone offer some help? Thanks! dave from my pom.xml: plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-java2wsdl-maven-plugin/artifactId executions execution goals goaljava2wsdl/goal /goals /execution /executions configuration classNamecom.full.class.path.Service/className /configuration /plugin
Trouble with Maven including rampart.mar as client-side dependency
I am trying to run Axis2+Rampart for a simple example with plain text UsernameToken and Password. I am using Axis2 1.5 and Rampart 1.4. I have a secured service hosted by Axis that works fine with maven. The rampart and rahas modules are deployed correctly, using the mar files from my maven repository. Using the same maven configuration, I am trying to create the corresponding client, but the rampart and rahas modules are *not* deployed by default. engageModule(rampart) always gives me an AxisFault: Unable to engage module : rampart I can force the client to deploy the modules by creating a ConfigurationContext from the file system, but I would like these to be automatically found from the maven classpath rather than separately including the mar files as a client repository. Does anyone have a clue as to how I can get the client to find the maven dependencies when engaging the client? Thanks in advance! dave
[Axis2] attribute name in xs:element
Hi, I deploy my web service with Axis2 and weblogic 10 and I have a question about parameter name in wsdl... Why are they specified param0 for the name? For example : xs:element minOccurs=0 name=param0 nillable=true type=ns1:DonneesWS/ instead of xs:element minOccurs=0 name=donnees nillable=true type=ns1:DonneesWS/ What is the solution to have donnees instead fo param0? Thanks a lot, David
Re : [Axis2] Pb with xs:element name?
Okthe answer is to compile the procjet in debug to have the attribute name donnee in the class file De : Didav Didav dida...@hotmail.fr À : axis-user@ws.apache.org Envoyé le : Ven 9 Octobre 2009, 14 h 41 min 17 s Objet : [Axis2] Pb with xs:element name? Hi, I deploy my web service with Axis2-1.3 and weblogic 10 and I have a question about parameter name in wsdl... Why are they specified param0 for the name of the tag xs:element? For example : xs:element minOccurs=0 name=param0 nillable=true type=ns1:DonneesWS/ instead of xs:element minOccurs=0 name=donnees nillable=true type=ns1:DonneesWS/ Thanks a lot, David Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici !
RE: [Axis2] Pb with xs:element name?
Is that a POJO service or what? And what JDK are you using. From: Didav Didav [mailto:dida...@hotmail.fr] Sent: Friday, October 09, 2009 8:41 AM To: axis-user@ws.apache.org Subject: [Axis2] Pb with xs:element name? Hi, I deploy my web service with Axis2-1.3 and weblogic 10 and I have a question about parameter name in wsdl... Why are they specified param0 for the name of the tag xs:element? For example : xs:element minOccurs=0 name=param0 nillable=true type=ns1:DonneesWS/ instead of xs:element minOccurs=0 name=donnees nillable=true type=ns1:DonneesWS/ Thanks a lot, David Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici ! http://www.microsoft.com/france/windows/products/winfamily/ie/ie8/msn/d efault.aspx
Re : [Axis2] Pb with xs:element name?
Yes POJO Service. I m using JDK 1.5 De : David Hesson dhes...@rjlg.com À : axis-user@ws.apache.org Envoyé le : Ven 9 Octobre 2009, 17 h 41 min 43 s Objet : RE: [Axis2] Pb with xs:element name? Is that a POJO service or what? And what JDK are you using. From:Didav Didav [mailto:dida...@hotmail.fr] Sent: Friday, October 09, 2009 8:41 AM To: axis-user@ws.apache.org Subject: [Axis2] Pb with xs:element name? Hi, I deploy my web service with Axis2-1.3 and weblogic 10 and I have a question about parameter name in wsdl... Why are they specified param0 for the name of the tag xs:element? For example : xs:element minOccurs=0 name=param0 nillable=true type=ns1:DonneesWS/ instead of xs:element minOccurs=0 name=donnees nillable=true type=ns1:DonneesWS/ Thanks a lot, David Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici !
AbstractMethodError in simple Rampart client
I have created a simple Axis2 echo service and client and am now trying to add Rampart security, starting with a simple UsernameToken and plain text Password. The secured service is running and it rejects client calls that are missing the required SOAP header. I set up the client to add the username and password, but I get an AbstractMethodError on the client side. Am I missing a configuration step or an overlooked dependency? Any help would be greatly appreciated!! I'm using Axis2 1.5 and Rampart 1.4. The rahas-1.4 and rampart-1.4 modules *do* get deployed from the client repo. Brief code snippet: ConfigurationContext ctx = //snip: Factory.create(repo) SecureServiceStub stub = new SecureServiceStub(ctx); // configure rampart security ServiceClient sc = stub._getServiceClient(); sc.engageModule(rampart); Options options = sc.getOptions(); options.setUserName(guest); options.setPassword(pass); stub.echo(hello); Exception in thread main java.lang.AbstractMethodError org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes(StAXBuilder.java:230) org.apache.axiom.om.impl.builder.StAXOMBuilder.populateOMElement(StAXOMBuilder.java:396) org.apache.axiom.om.impl.builder.StAXOMBuilder.createOMElement(StAXOMBuilder.java:425) org.apache.axiom.om.impl.builder.StAXOMBuilder.createNextOMElement(StAXOMBuilder.java:282) org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:207) org.apache.axiom.om.impl.dom.DocumentImpl.getOMDocumentElement(DocumentImpl.java:443) org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:502) org.apache.rahas.Token.init(Token.java:141) org.apache.rampart.builder.BindingBuilder.handleSupportingTokens(BindingBuilder.java:388) ...
RE: Re : [Axis2] Pb with xs:element name?
Can I please see the signature of the POJO method? I'm not sure if it's related to having a complex object as the input argument, or maybe a property needs set in the Axis2 config. From: David [mailto:tida...@yahoo.fr] Sent: Friday, October 09, 2009 11:51 AM To: axis-user@ws.apache.org Subject: Re : [Axis2] Pb with xs:element name? Yes POJO Service. I m using JDK 1.5 De : David Hesson dhes...@rjlg.com À : axis-user@ws.apache.org Envoyé le : Ven 9 Octobre 2009, 17 h 41 min 43 s Objet : RE: [Axis2] Pb with xs:element name? Is that a POJO service or what? And what JDK are you using. From: Didav Didav [mailto:dida...@hotmail.fr] Sent: Friday, October 09, 2009 8:41 AM To: axis-user@ws.apache.org Subject: [Axis2] Pb with xs:element name? Hi, I deploy my web service with Axis2-1.3 and weblogic 10 and I have a question about parameter name in wsdl... Why are they specified param0 for the name of the tag xs:element? For example : xs:element minOccurs=0 name=param0 nillable=true type=ns1:DonneesWS/ instead of xs:element minOccurs=0 name=donnees nillable=true type=ns1:DonneesWS/ Thanks a lot, David Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici ! http://www.microsoft.com/france/windows/products/winfamily/ie/ie8/msn/default.aspx
Re: [Axis2] AbstractMethodError in simple Rampart client
David Dearing wrote: I have created a simple Axis2 echo service and client and am now trying to add Rampart security, starting with a simple UsernameToken and plain text Password. The secured service is running and it rejects client calls that are missing the required SOAP header. I set up the client to add the username and password, but I get an AbstractMethodError on the client side. Am I missing a configuration step or an overlooked dependency? Any help would be greatly appreciated!! I'm using Axis2 1.5 and Rampart 1.4. The rahas-1.4 and rampart-1.4 modules *do* get deployed from the client repo. Brief code snippet: ConfigurationContext ctx = //snip: Factory.create(repo) SecureServiceStub stub = new SecureServiceStub(ctx); // configure rampart security ServiceClient sc = stub._getServiceClient(); sc.engageModule(rampart); Options options = sc.getOptions(); options.setUserName(guest); options.setPassword(pass); stub.echo(hello); Exception in thread main java.lang.AbstractMethodError org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes(StAXBuilder.java:230) org.apache.axiom.om.impl.builder.StAXOMBuilder.populateOMElement(StAXOMBuilder.java:396) org.apache.axiom.om.impl.builder.StAXOMBuilder.createOMElement(StAXOMBuilder.java:425) org.apache.axiom.om.impl.builder.StAXOMBuilder.createNextOMElement(StAXOMBuilder.java:282) org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:207) org.apache.axiom.om.impl.dom.DocumentImpl.getOMDocumentElement(DocumentImpl.java:443) org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:502) org.apache.rahas.Token.init(Token.java:141) org.apache.rampart.builder.BindingBuilder.handleSupportingTokens(BindingBuilder.java:388) ... Some additional investigation led me to find the error being generated from a line in StAXBuilder that attempts to call OMAttribute.setAttributeType with a null type. The OMAttribute appears to be wsu:Id for the wsse:UsernameToken element. I think this type should be xsd:ID, but I'm not sure where/how to change this on the client.
Sandesha2 1.5 Release Candidate
Hi, I have created a Sandesha2 1.5 release candidate here: http://people.apache.org/~parsonsd/sandesha-1.5/RC1/dist/ and the M2 repository can be found here: http://people.apache.org/~parsonsd/sandesha-1.5/RC1/m2_repo/ This release candidate is using the Rampart 1.5 release candidate which can be found: http://people.apache.org/~nandana/rampart-1.5/RC1/dist/ and the M2 repository for this can be found here: http://people.apache.org/~nandana/rampart-1.5/RC1/m2_repo/ I will leave this available for a short period of time. If no one finds any issues I'll request a vote on whether to submit it as a release of Sandesha2. The Rampart 1.5 release is going to have to be cut before I can officially cut the Sandesha2 release so does anyone know how close this is to being done? Regards, Dave Dave Parsons Web Services Development INTERNAL: David Parsons1/UK/i...@ibmgb :: DE3F20 :: 246930 EXTERNAL: parso...@uk.ibm.com :: (01962) 816930 Mail Point 211, IBM Hursley Park, Winchester. SO21 2JN Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
Question About wsdl4j License
Hi, I've got a question about the wsdl4j license in Axis2. In the legal stuff it says that wsdl4j is made available under the CPL 1.0. However, when I look at the source files that I *believe* make up all of wsdl4j I see that they're all under the Apache 2 license. In addition, I grep'd the source and the only place where I find the string Common Public is in the wsdl4j license file - not in any source file. So either the wsdl4j license file no longer applies or I'm missing something. Can someone help me out here? Thanks, David
RE: Question About wsdl4j License
Just to clarify, when I said I grep'd the source, I meant ALL of the source as found in the source distribution zip file, not just the files I believe make up wsdl4j. From: David Dillard [mailto:david_dill...@symantec.com] Sent: Tuesday, October 06, 2009 12:33 PM To: axis-user@ws.apache.org Subject: Question About wsdl4j License Hi, I've got a question about the wsdl4j license in Axis2. In the legal stuff it says that wsdl4j is made available under the CPL 1.0. However, when I look at the source files that I *believe* make up all of wsdl4j I see that they're all under the Apache 2 license. In addition, I grep'd the source and the only place where I find the string Common Public is in the wsdl4j license file - not in any source file. So either the wsdl4j license file no longer applies or I'm missing something. Can someone help me out here? Thanks, David
unsubscribe
unsubscribe
Re: Axis2 1.5 In Production
On Fri, Sep 11, 2009 at 6:01 AM, ibrahim demir ibrahimdem...@yahoo.com wrote: We are using Axis2 1.4.1 both on client side and server side for calling web services and serving our services in a production environment. Is there any one using Axis2 1.5 in prod environment. Can you share your practicies.. Essentially works the same as 1.4 when we upgraded. Seamless upgrade. -Dave
Axis 1.4 strange characters lt; #13;....
Hello, My name is David and i have seen that you are an experienced user of axis. I need to connect to one Web Service that have a wsdl that i can't change.=20 I am receiving strange characters in their response: For example: You must present a photo ID when checking in. Your credit card is charged at the time you book. #13;#10;#9;#9;Bed type and smoking preferences are not guaranteed.Your reservation is prepaid and is guaranteed #13;#10;#9;#9;for late arrival. The total charge includes all room charges and taxes, as well as fees for access #13;#10;#9;#9;and booking. Any incidental charges such as parking, phone calls, and room service will be handled #13;#10;#9;#9;directly between you and the property. The wsdl is RPC encoded and i can only use Axis 1.4 because Axis 2 doesn't allow RPC encoded.=20 I don't know how to solve this problem because i receive many strange characters Do you know how to solve, including some header in the stub? The stub of axis have one method setHeader. I have tried the following:=20 stub.setHeader(urn:thisNamespace, charset, ISO-8859-1); or stub.setHeader(urn:thisNamespace, charset, UTF-8); And the result is the same. Do you know how to solve? Regards -- View this message in context: http://www.nabble.com/Axis-1.4-strange-characters--lt13--tp25117696p25117696.html Sent from the Axis - User mailing list archive at Nabble.com.
no exe in bin distro + failed build
Hi All, Sorry, this might sounds as a stupid question, but I just downloaded axis-bin-1_4.tar.gz but there are no class files ? How is this a bin distribution ? So, I got the src distro, and try to build it (simply running ant with sun's 1.6 jvm) and I get this (see below) Any idea ? I don't understand way the distro is organised, why the build fails... Many thanks in advance for your help David $ ant Buildfile: build.xml Warning: 'file:xmls/properties.xml' in /home/micd/keep/core/trunk/util/axis-1_4/build.xml should be expressed simply as 'xmls/properties.xml' for compliance with other XML tools Warning: 'file:xmls/path_refs.xml' in /home/micd/keep/core/trunk/util/axis-1_4/build.xml should be expressed simply as 'xmls/path_refs.xml' for compliance with other XML tools Warning: 'file:xmls/taskdefs.xml' in /home/micd/keep/core/trunk/util/axis-1_4/build.xml should be expressed simply as 'xmls/taskdefs.xml' for compliance with other XML tools Warning: 'file:xmls/targets.xml' in /home/micd/keep/core/trunk/util/axis-1_4/build.xml should be expressed simply as 'xmls/targets.xml' for compliance with other XML tools axis-clover-setenv: axis-clover-setup: axis-xmlbeans-setenv: axis-xmlbeans-setup: setenv: check-javadoc-needed: printEnv: [echo] - [echo]Build environment for Axis 1.4 [2005] [echo] - [echo] Building with Apache Ant version 1.7.0 compiled on August 29 2007 [echo] using build file /home/micd/keep/core/trunk/util/axis-1_4/build.xml [echo] Java 1.6.0_14 located at /usr/lib/jvm/java-6-sun-1.6.0.14/jre [echo] - [echo] --- Flags (Note: If the {property name} is displayed, [echo]then the component is not present) [echo] [echo] basedir = /home/micd/keep/core/trunk/util/axis-1_4 [echo] axis.home = /home/micd/keep/core/trunk/util/axis-1_4 [echo] build.dir = /home/micd/keep/core/trunk/util/axis-1_4/build [echo] build.dest = /home/micd/keep/core/trunk/util/axis-1_4/build/classes [echo] lib.dir = /home/micd/keep/core/trunk/util/axis-1_4/lib [echo] [echo] === Required Libraries (for building code) === [echo] activation.present=true [echo] commons-discovery.present=true [echo] commons-logging.present=true [echo] wsdl4j.present=true [echo] [echo] --- Optional Libraries (for building code) --- [echo] attachments.present=true [echo] bsf.present=true [echo] castor.present=true [echo] commons-httpclient.present=true [echo] commons-net.present=true [echo] ibm.jsse.present=${ibm.jsse.present} [echo] jimi.present=true [echo] jms.present=true [echo] jetty.present=${jetty.present} [echo] jdk14.jsse.present=true [echo] mailapi.present=true [echo] regexp.present=true [echo] security.present=${security.present} [echo] servlet.present=true [echo] sun.jsse.present=true [echo] xmlbeans.present=${xmlbeans.present} [echo] [echo] --- Miscellaneous (for running tests) --- [echo] axis-ant.present=${axis-ant.present} [echo] clover.present=${clover.present} [echo] httpunit.present=true [echo] junit.present=true [echo] log4j.present=true [echo] [echo] --- Property values --- [echo] debug=on [echo] nowarn=off [echo] source=1.3 [echo] target=1.3 [echo] deprecation=true [echo] build.compiler=${build.compiler} [echo] javac.fork=no [echo] axis_nojavadocs=${env.axis_nojavadocs} [echo] javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl [echo] javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl [echo] sun.boot.class.path=/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/classes [echo] jikes.class.path=${jikes.class.path} [echo] [echo] -- Network Settings --- [echo] [echo] http.proxyHost = [echo] http.proxyPort = [echo] http.nonProxyHosts = localhost [echo] http.proxyUser = [echo] http.proxyPassword = [echo] [echo] -- Test Environment for AXIS --- [echo] [echo] test.functional.remote = no [echo] test.functional.local = yes [echo] test.functional.both = no [echo] test.functional.reportdir = /home/micd/keep/core/trunk/util/axis-1_4/test-reports [echo] test.functional.SimpleAxisPort = 8080 [echo] test.functional.TCPListenerPort = 8088 [echo] test.functional.fail = yes [echo] [echo] classpath: \home\micd\keep\core\trunk\util\axis-1_4\${xercesImpl.jar
RE: Reexamining problem with Axis not generating container
-Original Message- From: KARR, DAVID (ATTCINW) Sent: Thursday, July 30, 2009 11:01 AM To: axis-user@ws.apache.org Subject: Reexamining problem with Axis not generating container A couple weeks ago I posted a note about a problem (title Axis skips generating type if it thinks it can just make an array) where Axis 1.3 doesn't generate a container class if an element only has a single child. I had thought the problem was just annoying, but now I'm seeing it's more serious than that. Axis fails to deserialize legal XML if I don't add a kludge element to make it create the container class. When I generate code for the following: xs:complexType name=SomethingItemPropertyListInfo xs:sequence xs:element name=PropertyData type=SomethingPropertyInfo minOccurs=0 maxOccurs=unbounded/ xs:element name=Dummy type=xs:boolean minOccurs=0/ /xs:sequence /xs:complexType It generates a container class corresponding to the PropertyData element, and the class corresponding to the SomethingItemPropertyListInfo element has a data element of that type. If I comment out the Dummy element, however, the data element in the class corresponding to the SomethingItemPropertyListInfo element is simply an array of SomethingPropertyInfo. This is annoying, but it's not fatal, as I can just change code references, depending on whether a container class was generated or not. What is fatal is that when I don't have the Dummy element defined, then legal XML using these structures (note that Dummy is optional, so it doesn't need to be present in the data) fails to deserialize, throwing an exception like the following: - 2009-07-30 09:49:29,551 ERROR [org.apache.axis.encoding.ser.BeanPropertyTarget] [set] [Thread:main] - [Could not convert [Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo; to bean field 'itemPropertyListData', type [Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo;] 2009-07-30 09:49:29,551 ERROR [org.apache.axis.client.Call] [invoke] [Thread:main] - [Exception:] java.lang.IllegalArgumentException: argument type mismatch at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget. j ava:157) at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImp l .java:249) at org.apache.axis.encoding.ser.ArrayDeserializer.valueComplete(ArrayDeser i alizer.java:583) at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.j a va:509) at org.apache.axis.encoding.DeserializationContext.endElement(Deserializat i onContext.java:1087) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java : 171) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement. j ava:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at org.apache.axis.client.Call.invoke(Call.java:2467) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) If I'm understanding this correctly, this error message is saying that I have a value of type SomethingServicePropertyInfo[], and I'm trying to assign it to a field named itemPropertyListData, which is of type SomethingServicePropertyInfo[]. I must be misunderstanding this, because I don't see how that could fail to convert. If it matters, I've done some additional debugging and determined a little more information. The problem appears to occur when you have nested unbounded (maxOccurs=unbounded) elements. This produces a situation where a generated instance variable and setter is of type Name[][] (two-dimensional array). Unfortunately, the resulting value to be inserted is a Name[] (one-dimensional array). In addition, the error message that Axis constructs is incorrect. The error message it generates is the following: Could not convert [Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo; to bean field 'itemPropertyListData', type [Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo;] But it should have been (notice the one [ changing to [[): Could not convert [Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo; to bean field 'itemPropertyListData', type [[Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo;]
Reexamining problem with Axis not generating container
A couple weeks ago I posted a note about a problem (title Axis skips generating type if it thinks it can just make an array) where Axis 1.3 doesn't generate a container class if an element only has a single child. I had thought the problem was just annoying, but now I'm seeing it's more serious than that. Axis fails to deserialize legal XML if I don't add a kludge element to make it create the container class. When I generate code for the following: xs:complexType name=SomethingItemPropertyListInfo xs:sequence xs:element name=PropertyData type=SomethingPropertyInfo minOccurs=0 maxOccurs=unbounded/ xs:element name=Dummy type=xs:boolean minOccurs=0/ /xs:sequence /xs:complexType It generates a container class corresponding to the PropertyData element, and the class corresponding to the SomethingItemPropertyListInfo element has a data element of that type. If I comment out the Dummy element, however, the data element in the class corresponding to the SomethingItemPropertyListInfo element is simply an array of SomethingPropertyInfo. This is annoying, but it's not fatal, as I can just change code references, depending on whether a container class was generated or not. What is fatal is that when I don't have the Dummy element defined, then legal XML using these structures (note that Dummy is optional, so it doesn't need to be present in the data) fails to deserialize, throwing an exception like the following: - 2009-07-30 09:49:29,551 ERROR [org.apache.axis.encoding.ser.BeanPropertyTarget] [set] [Thread:main] - [Could not convert [Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo; to bean field 'itemPropertyListData', type [Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo;] 2009-07-30 09:49:29,551 ERROR [org.apache.axis.client.Call] [invoke] [Thread:main] - [Exception:] java.lang.IllegalArgumentException: argument type mismatch at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.j ava:157) at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl .java:249) at org.apache.axis.encoding.ser.ArrayDeserializer.valueComplete(ArrayDeseri alizer.java:583) at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.ja va:509) at org.apache.axis.encoding.DeserializationContext.endElement(Deserializati onContext.java:1087) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java: 171) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j ava:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at org.apache.axis.client.Call.invoke(Call.java:2467) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) If I'm understanding this correctly, this error message is saying that I have a value of type SomethingServicePropertyInfo[], and I'm trying to assign it to a field named itemPropertyListData, which is of type SomethingServicePropertyInfo[]. I must be misunderstanding this, because I don't see how that could fail to convert.
Windows 32 bit client SSL Support
I have a HTTPS SOAP service that does not need a client certificate. It seems from the logs I need to generate a client certificate for SSL to work? I have .net clients that work with this service without any issues. I am using Axis2C 1.6 [Tue Jul 21 10:23:09 2009] [info] [ssl client] CA certificate not specified [Tue Jul 21 10:23:09 2009] [error] ..\..\src\core\transport\http\sender\ssl\ssl_utils.c(51) Cannot find certificates [Tue Jul 21 10:23:09 2009] [error] ..\..\src\core\transport\http\sender\ssl\ssl_stream.c(101) Error occurred in SSL engine [Tue Jul 21 10:23:09 2009] [error] ..\..\src\core\transport\http\sender\http_client.c(287) Data stream creation failed for Host blah.blah.com and 443 port [Tue Jul 21 10:23:09 2009] [error] ..\..\src\core\transport\http\sender\http_client.c(550) client data stream null or socket error for host blah.blah.com and 443 port [Tue Jul 21 10:23:09 2009] [error] ..\..\src\core\transport\http\sender\http_client.c(554) A read attempt(HTTP) for the reply without sending the request [Tue Jul 21 10:23:09 2009] [error] ..\..\src\core\transport\http\sender\http_sender.c(1384) status_code 0 [Tue Jul 21 10:23:09 2009] [error] ..\..\src\core\engine\engine.c(179) Transport sender invoke failed Regards, -David
Axis and users.lst path
Hello, I am trying to set up a small part of security in my web application which integrates AXIS (OpenHealthTool). So axis is used as jar and not as a whole web application I want to use the default SimpleAuthenticationHandler with the users.lst. My question is: where must I put the users.lst file in order that AXIS finds it? I try in /my-web-app/WEB-INF but it doen't work... Thank you in advance for your answers! David
RE: Axis skips generating type if it thinks it can just make an array
-Original Message- From: KARR, DAVID (ATTCINW) Sent: Monday, July 13, 2009 3:51 PM To: axis-user@ws.apache.org Subject: Axis skips generating type if it thinks it can just make an array I'm using Axis 1.3. I have a schema with a complexType which has a single sequence of one element (unbounded count on that one element). It looks something like this (the commented element will come up later): xs:complexType name=SomethingItemPropertyListInfo xs:sequence xs:element name=PropertyData type=SomethingPropertyInfo minOccurs=0 maxOccurs=unbounded/ !--xs:element name=Dummy type=xs:boolean minOccurs=0/ -- /xs:sequence /xs:complexType When we generate code from this schema, the generated class corresponding to this type is, well, nonexistent. It generates nothing for it. If we instead comment in the Dummy element, it generates the SomethingItemPropertyListInfo class. This is a workaround, but an annoying one. We'd really like to have the schema definition not include Dummy, but still generate the SomethingItemPropertyListInfo type. At this point, we haven't attempted to inject Castor or XMLBeans into the picture to customize our code generation. We would definitely consider that if that's the only viable way to resolve this issue. If it helps, I've been setting up a little testbed to give me more diagnostics for this problem. I tried adding the -D (debug) flag to the command line, and I've compared the output when I have Dummy and when I don't. When I have Dummy, I see this (relevant excerpts): - org.apache.axis.wsdl.symbolTable.DefinedType QName: {http://csi.cingular.com/CSI/Namespaces/Types/Public/CingularDataModel.x sd}SomethingItemPropertyListInfo name: com.cingular.csi.CSI.Namespaces.Types.Public.CingularDataModel_xsd.Somet hingItemPropertyListInfo isReferenced? true Class: org.apache.axis.wsdl.symbolTable.DefinedType Base?: false Undefined?:false isSimpleType? false Node: [xs:complexType: null] Dims: isOnlyLiteralReferenced: false RefType: null org.apache.axis.wsdl.symbolTable.CollectionType QName: {http://csi.cingular.com/CSI/Namespaces/Types/Public/CingularDataModel.x sd}SomethingItemPropertyListInfo[0,unbounded] name: com.cingular.csi.CSI.Namespaces.Types.Public.CingularDataModel_xsd.Somet hingItemPropertyListInfo[] isReferenced? true Class: org.apache.axis.wsdl.symbolTable.CollectionType Base?: false Undefined?:false isSimpleType? false Node: [xs:element: null] Dims: [] isOnlyLiteralReferenced: false RefType: QName: {http://csi.cingular.com/CSI/Namespaces/Types/Public/CingularDataModel.x sd}SomethingItemPropertyListInfo name: com.cingular.csi.CSI.Namespaces.Types.Public.CingularDataModel_xsd.Somet hingItemPropertyListInfo isReferenced? true Class: org.apache.axis.wsdl.symbolTable.DefinedType Base?: false Undefined?:false isSimpleType? false Node: [xs:complexType: null] Dims: isOnlyLiteralReferenced: false RefType: null Generating gen\com\cingular\csi\CSI\Namespaces\Types\Public\CingularDataModel_xsd\S omethingItemPropertyListInfo.java - When I don't have Dummy, I see this: - org.apache.axis.wsdl.symbolTable.DefinedType QName: {http://csi.cingular.com/CSI/Namespaces/Types/Public/CingularDataModel.x sd}SomethingItemPropertyListInfo name: com.cingular.csi.CSI.Namespaces.Types.Public.CingularDataModel_xsd.Somet hingPropertyInfo[] isReferenced? true Class: org.apache.axis.wsdl.symbolTable.DefinedType Base?: false Undefined?:false isSimpleType? false Node: [xs:complexType: null] Dims: [] isOnlyLiteralReferenced: false RefType: QName: {http://csi.cingular.com/CSI/Namespaces/Types/Public/CingularDataModel.x sd}SomethingPropertyInfo name: com.cingular.csi.CSI.Namespaces.Types.Public.CingularDataModel_xsd.Somet hingPropertyInfo isReferenced? true Class: org.apache.axis.wsdl.symbolTable.DefinedType Base?: false Undefined?:false isSimpleType? false Node: [xs:complexType: null] Dims: isOnlyLiteralReferenced: false RefType: null org.apache.axis.wsdl.symbolTable.CollectionType QName: {http://csi.cingular.com/CSI/Namespaces/Types/Public/CingularDataModel.x sd}SomethingItemPropertyListInfo[0,unbounded] name: com.cingular.csi.CSI.Namespaces.Types.Public.CingularDataModel_xsd.Somet hingPropertyInfo[][] isReferenced? true Class: org.apache.axis.wsdl.symbolTable.CollectionType Base?: false Undefined?:false isSimpleType? false Node: [xs:element: null] Dims: [] isOnlyLiteralReferenced: false RefType: QName: {http://csi.cingular.com/CSI/Namespaces/Types/Public/CingularDataModel.x sd}SomethingItemPropertyListInfo name
Axis skips generating type if it thinks it can just make an array
I'm using Axis 1.3. I have a schema with a complexType which has a single sequence of one element (unbounded count on that one element). It looks something like this (the commented element will come up later): xs:complexType name=SomethingItemPropertyListInfo xs:sequence xs:element name=PropertyData type=SomethingPropertyInfo minOccurs=0 maxOccurs=unbounded/ !--xs:element name=Dummy type=xs:boolean minOccurs=0/ -- /xs:sequence /xs:complexType When we generate code from this schema, the generated class corresponding to this type is, well, nonexistent. It generates nothing for it. If we instead comment in the Dummy element, it generates the SomethingItemPropertyListInfo class. This is a workaround, but an annoying one. We'd really like to have the schema definition not include Dummy, but still generate the SomethingItemPropertyListInfo type. At this point, we haven't attempted to inject Castor or XMLBeans into the picture to customize our code generation. We would definitely consider that if that's the only viable way to resolve this issue.
RE: Error installing Axis2.war in Jboss
Hi rishi, I had a bit of fun with this myself. In the end we have steered away from JBoss so I don't have much help other than this advice. From what I found there is two ways around it. The first is quick (and dirty?). Just delete xml-apis-1.3.04.jar and xercesImpl-2.8.1.jar (or their applicable versions) from the Axis2 war and deploy that. It should work then. The other way is to mess around with Class Loading Configuration. I didn't have much joy with this but I didn't play with it for long enough to really know: http://www.jboss.org/community/wiki/ClassLoadingConfiguration Good luck! David From: rishi [mailto:kapur@gmail.com] Sent: Wednesday 17 June 2009 5:29 AM To: axis-user@ws.apache.org Subject: Error installing Axis2.war in Jboss Hi All, I am having trouble installing Axis2 1.4.1 or 1.5 they both are giving same error as below. All I did was to put axis2.war in jboss-5.1.0.GA\server\default. This is in both Jboss 5.1and 5.01 Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration at org.apache.xerces.parsers.SAXParser.init(Unknown Source) at org.apache.xerces.parsers.SAXParser.init(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.init(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.init(Unknown Source) at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.init(SaxJBossXBParser.java:92) ... 75 more 2009-06-16 15:17:28,039 ERROR [org.jboss.web.tomcat.service.deployers.JBossContextConfig] (main) XML error parsing: jboss.web/localhost/context.xml.default org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100) at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:549) at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:537) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java: Please let me know if you have it working in Jboss. Thanks a lot -rishi
RE: what is the best way to generate java code when the wsdl is changed?
Hi, Let me know if I am misunderstanding your problem. I believe what you are doing is generating from the WSDL with standard settings so Axis2 is generating files with a XSkeleton.java where you put your implementation. If that is the case I would set up the Axis2 plugin to create an interface from the WSDL rather than the skeleton class itself. That way you can recreate the interface at will whenever the WSDL changes and just implement the interface with your own class. This does mean that your class will generate compile errors each time something major changes or a new method is added that your class does not implement, you will just have to change your implementation to match the interface and you're good to go. David This e-mail and any files transmitted with it may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorised to receive for the recipient), please contact the sender by reply e-mail and delete all copies of this message. -Original Message- From: Chang Xing [mailto:chang.x...@sage.ch] Sent: Wednesday 27 May 2009 3:52 PM To: axis-user@ws.apache.org Subject: what is the best way to generate java code when the wsdl is changed? Hi I am using Eclipse with axis2 plugin to generate Java code from a wsdl file. the wsdl file is changed frequently. so I need to regenerate the Java code from the wsdl. But if I generate code to the same project, it will take a long time and the skeleton java file won't be generated again because there's already a skeleton file( I guess so). So I have to create another java project and generate code to this project from the wsdl file. Does anybody have a better way to do this work? Thanks Chang
RE: what is the best way to generate java code when the wsdl is changed?
Hi Chang, Unfortunately I have never used the Axis2 plugin so my knowledge on it is almost 0. After looking at a little information on it I couldn't immediately see how to get it to generate an interface. From the command line you just pass wsdl2java an option of -ssi and it is possible to do it in Maven by setting generateServerSideInterfacetrue/generateServerSideInterface. Sorry I can't be of more help with the Eclipse plugin, it may not be capable of doing what I'm talking about. David -Original Message- From: Chang Xing [mailto:chang.x...@sage.ch] Sent: Wednesday 27 May 2009 5:16 PM To: axis-user@ws.apache.org Subject: Re: what is the best way to generate java code when the wsdl is changed? Hi David Your idea sounds new to me. But how do you configure the axis2plug to generate interface rather than the skeleton class? There's not much options with the plugin in eclipse. Thanks Chang David Meiklejohn wrote: Hi, Let me know if I am misunderstanding your problem. I believe what you are doing is generating from the WSDL with standard settings so Axis2 is generating files with a XSkeleton.java where you put your implementation. If that is the case I would set up the Axis2 plugin to create an interface from the WSDL rather than the skeleton class itself. That way you can recreate the interface at will whenever the WSDL changes and just implement the interface with your own class. This does mean that your class will generate compile errors each time something major changes or a new method is added that your class does not implement, you will just have to change your implementation to match the interface and you're good to go. David This e-mail and any files transmitted with it may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorised to receive for the recipient), please contact the sender by reply e-mail and delete all copies of this message. -Original Message- From: Chang Xing [mailto:chang.x...@sage.ch] Sent: Wednesday 27 May 2009 3:52 PM To: axis-user@ws.apache.org Subject: what is the best way to generate java code when the wsdl is changed? Hi I am using Eclipse with axis2 plugin to generate Java code from a wsdl file. the wsdl file is changed frequently. so I need to regenerate the Java code from the wsdl. But if I generate code to the same project, it will take a long time and the skeleton java file won't be generated again because there's already a skeleton file( I guess so). So I have to create another java project and generate code to this project from the wsdl file. Does anybody have a better way to do this work? Thanks Chang
[no subject]
Dear all, I am using Axis2 with Rampart 1.4 in order to provide WS-Security to my web services. I want to sign and encrypt all incoming/outgoing messages using X509 Certificates, then , I configured both client and service to do this using inflow and outflow elements. The problem is that I want the service to encrypt the outgoing messages with the public key of the Client’s certificate, but this certificate must be selected using the key alias of the client. In order to do that, I need to access to the information of the incoming message header. How can I do that? I mean, How can I access to the Security header information in the Service Implementation? Thanks in advance, Regards V Guardiola
RE: When Basic authentication is on, client calls server twice
We also got bit by this bug and have used the recommended fix of adding a missing else keyword. This has worked for us for several months without issue. To make it easier for others, I just attached a patch file to JIRA AXIS2C-1244. I hope this can make it into the next release of AXIS2/C. I hope this helps. Thanks, -David From: Gordon Brown [mailto:gordonw.br...@yahoo.com] Sent: Wednesday, May 13, 2009 12:14 PM To: Apache AXIS C User List Cc: axis-c-...@ws.apache.org Subject: When Basic authentication is on, client calls server twice Hi There, I am currently encountering a serious bug that seems exist in axis2/c. I am using version 1.5 and I also tried version 1.6. The bug has to do with the usage of Basic Authentication in web service client calls. I noticed that the server side receives two calls for each one client call. This caused problem in server side, because for each call, the server side is supposed to post data in a database table and then send out emails. Now, for each client call, the server side post the same data twice and send out emails twice. This is absolutely unacceptable. This means that Basic authentication is not supported in axis2/c. I was browsing the bug database and noticed that there is a bug reported (https://issues.apache.org/jira/browse/AXIS2C-1244) for this problem. Is there any plan to resolve this issue? Thanks! Gordon
[Axis2] Retrieve client certificate info used in connection to web service
Hello, I am attempting to figure out if it is possible to retrieve certificate information that was sent by the client as part of a web service request. The catch is it isn't using WS Security, it is simply HTTP authentication with the certificate. What I am trying to achieve is basically this: A client sends a request to a web service with their certificate as part of the request. The server verifies that it trusts the certificate. The web service uses the certificate information to figure out who the client is and then send that client ID information down the line to other systems. I was able to find some information on using MessageContext to get the HttpServletRequest which then you are supposed to be able to get the certificate used by calling getAttribute on the request. However, I couldn't find any information on doing this in Axis2. This solution will likely be deployed in JBoss but it could potentially end up in Tomcat. Is it possible to do what I am attempting to do with Axis2? Or should I be looking for another solution to achieve this? Is there any software that will provide functionality similar to what I am after? Any help will be greatly appreciated. Regards, David
Re: Axis2 Performance Tips
On Tue, May 5, 2009 at 1:29 AM, ibrahim demir ibrahimdem...@yahoo.com wrote: I woner if there is performance tips and tricks guide for Axis2. I have tried to optimize my sevice and tried to make it simpler in order to have fast response but I believe that is not enough. Yes, there are a number of things you can do to speed up Axis2. However, are you creating a web service or are you accessing a web service? I haven't focused on web service performance, as it seems to be pretty good already, but if you are using axis2 as a client there are a number of things you can do. So can you share your experiences or tips here on performance optimizations about Axis2. For example using the HTTPConstants.REUSE_HTTP_CLIENT HTTPConstants.CACHED_HTTP_CLIENT options has an effect on performance or not? These options definitely make a difference in performance especially if you are accessing services on a high latency network in rapid succession. Some of the things I do: 1. Use Commons-Pool to maintain a pool of Stubs. Stub creation is expensive! 2. For each stub, set REUSE_HTTP_CLIENT to true and CACHED_HTTP_CLIENT to your own cached HttpClient. 3. For each HttpClient, you will likely want to increase the DefaultMaxConnections and MaxTotalConnections using your own MultiThreadedHttpConnectionManager. In addition, also make sure you set the Version to HTTP_1_1 of your HttpClient, too. IMO Axis2 should provide a framework for doing all of those things easily by default. Perhaps I will contribute some code when I get some time to abstract it out. :-) -Dave
RE: Guththila and UTF-8?
That sounds easy enough. Thanks, -David From: Rajika Kumarasiri [rajika.kumaras...@gmail.com] Sent: Friday, May 01, 2009 10:02 PM To: Apache AXIS C User List Subject: Re: Guththila and UTF-8? You can grant apache license permission by clicking the check box when submitting the patch to JIRA. -Rajika On Fri, May 1, 2009 at 8:01 PM, David Taylor (Lowell) dktay...@f5.commailto:dktay...@f5.com wrote: That sounds reasonable. Do you have an example of what I need to say to give apache license permission to the patch? Thanks, -David From: uthaiyashan...@gmail.commailto:uthaiyashan...@gmail.com [mailto:uthaiyashan...@gmail.commailto:uthaiyashan...@gmail.com] On Behalf Of Uthaiyashankar Sent: Thursday, April 30, 2009 10:54 PM To: Apache AXIS C User List Subject: Re: Guththila and UTF-8? Hi David, On Thu, Apr 30, 2009 at 11:28 PM, David Taylor (Lowell) dktay...@f5.commailto:dktay...@f5.com wrote: Supun, Thanks for the offer to help. I have a fix working, now. It handles UTF-8 code for element and attribute values, but depends on the system locale for element and attribute names (it still uses isspace and isalpha). It would probably be better to use iswspace and iswalpha, though I am not sure whether they are as portable to all systems AXIS2/C supports. What do you think about that? In any case, what should be the next step for my changes? Would you like me to email a patch or attach it to the JIRA bug? Do you prefer just regular diff -u patches? You have to attach the patch to JIRA bug. Regular diff -u patch is enough. When attaching the patch, you have to give apache licence permission to the patch. Regards, Shankar My changes also include new unit tests for the UTF-8 transcoder. I integrated them with the other Guththila unit tests that were a bit crufty, so I got them working, too. I’ll include that in the patch as well. Thanks, -David From: Supun Kamburugamuva [mailto:supu...@gmail.commailto:supu...@gmail.com] Sent: Monday, April 27, 2009 11:51 PM To: Apache AXIS C User List Subject: Re: Guththila and UTF-8? Great! I'll be more than happy to help you with this. Supun.. On Mon, Apr 27, 2009 at 8:59 PM, David Taylor (Lowell) dktay...@f5.commailto:dktay...@f5.com wrote: Thank you very much for the quick update. Maybe I’ll offer to take that task…. Let me think about it. Thanks, -David From: Samisa Abeysinghe [mailto:sam...@wso2.commailto:sam...@wso2.com] Sent: Monday, April 27, 2009 11:57 AM To: Apache AXIS C User List Subject: Re: Guththila and UTF-8? We have not looked into this for some time, because both folks who were involved with this part of the code went on to pursue their studies. It is time that we look for new volunteers to cover this. Samisa... On Mon, Apr 27, 2009 at 9:21 PM, David Taylor (Lowell) dktay...@f5.commailto:dktay...@f5.com wrote: It doesn’t appear that Guththila supports UTF-8 even though guththila_get_encoding is hardcoded to return “UTF-8”. After googling for a bit, I am not clear on what the plans are for UTF-8 support. Is it planned any time soon? JIRA AXIS2C-1265 hasn’t been updated in a while. I’d appreciate any info on this. Thanks, -David https://issues.apache.org/jira/browse/AXIS2C-1265 -- Software Engineer, WSO2 Inc http://wso2.org supunk.blogspot.comhttp://supunk.blogspot.com -- S.Uthaiyashankar Software Architect WSO2 Inc. http://wso2.com/ - The Open Source SOA Company -- http://wso2.org http://llvm.org http://www.minix3.org
Axis2 Java6
Hello, I am using Axis2 1.4.1 (deployment in Tomcat) and a Java 6 application and I get the BadVersion Error when starting Tomcat. I do not get this error when I compile the application in Java 1.5. I know that the FAQ (https://svn.wso2.com/~thilina/axis2fullsite/faq.html#a4) says something about that issue but it does not work for me. First there is no stax-api.jar in the axis2/lib dir but only geronimo-stax-api_1.0_spec-1.0.1.jar so I added this jar to my jre's lib directory but that did not help. Also Tomcat 6 has no common/endorsed folder as suggested in the FAQ. I would really appreciate if somebody has experienced a similar problem and has a solution. Thanks a lot, David
RE: Guththila and UTF-8?
Supun, Thanks for the offer to help. I have a fix working, now. It handles UTF-8 code for element and attribute values, but depends on the system locale for element and attribute names (it still uses isspace and isalpha). It would probably be better to use iswspace and iswalpha, though I am not sure whether they are as portable to all systems AXIS2/C supports. What do you think about that? In any case, what should be the next step for my changes? Would you like me to email a patch or attach it to the JIRA bug? Do you prefer just regular diff -u patches? My changes also include new unit tests for the UTF-8 transcoder. I integrated them with the other Guththila unit tests that were a bit crufty, so I got them working, too. I'll include that in the patch as well. Thanks, -David From: Supun Kamburugamuva [mailto:supu...@gmail.com] Sent: Monday, April 27, 2009 11:51 PM To: Apache AXIS C User List Subject: Re: Guththila and UTF-8? Great! I'll be more than happy to help you with this. Supun.. On Mon, Apr 27, 2009 at 8:59 PM, David Taylor (Lowell) dktay...@f5.commailto:dktay...@f5.com wrote: Thank you very much for the quick update. Maybe I'll offer to take that task Let me think about it. Thanks, -David From: Samisa Abeysinghe [mailto:sam...@wso2.commailto:sam...@wso2.com] Sent: Monday, April 27, 2009 11:57 AM To: Apache AXIS C User List Subject: Re: Guththila and UTF-8? We have not looked into this for some time, because both folks who were involved with this part of the code went on to pursue their studies. It is time that we look for new volunteers to cover this. Samisa... On Mon, Apr 27, 2009 at 9:21 PM, David Taylor (Lowell) dktay...@f5.commailto:dktay...@f5.com wrote: It doesn't appear that Guththila supports UTF-8 even though guththila_get_encoding is hardcoded to return UTF-8. After googling for a bit, I am not clear on what the plans are for UTF-8 support. Is it planned any time soon? JIRA AXIS2C-1265 hasn't been updated in a while. I'd appreciate any info on this. Thanks, -David https://issues.apache.org/jira/browse/AXIS2C-1265 -- Software Engineer, WSO2 Inc http://wso2.org supunk.blogspot.comhttp://supunk.blogspot.com
Guththila and UTF-8?
It doesn't appear that Guththila supports UTF-8 even though guththila_get_encoding is hardcoded to return UTF-8. After googling for a bit, I am not clear on what the plans are for UTF-8 support. Is it planned any time soon? JIRA AXIS2C-1265 hasn't been updated in a while. I'd appreciate any info on this. Thanks, -David https://issues.apache.org/jira/browse/AXIS2C-1265
RE: Guththila and UTF-8?
Thank you very much for the quick update. Maybe I'll offer to take that task Let me think about it. Thanks, -David From: Samisa Abeysinghe [mailto:sam...@wso2.com] Sent: Monday, April 27, 2009 11:57 AM To: Apache AXIS C User List Subject: Re: Guththila and UTF-8? We have not looked into this for some time, because both folks who were involved with this part of the code went on to pursue their studies. It is time that we look for new volunteers to cover this. Samisa... On Mon, Apr 27, 2009 at 9:21 PM, David Taylor (Lowell) dktay...@f5.commailto:dktay...@f5.com wrote: It doesn't appear that Guththila supports UTF-8 even though guththila_get_encoding is hardcoded to return UTF-8. After googling for a bit, I am not clear on what the plans are for UTF-8 support. Is it planned any time soon? JIRA AXIS2C-1265 hasn't been updated in a while. I'd appreciate any info on this. Thanks, -David https://issues.apache.org/jira/browse/AXIS2C-1265
Stubs Options Configuration
Hi, I'm using Axis2 1.4.1 and WSDL2Java created stubs to access a web service. I'm trying to enable keep-alive and gzip encoding to reduce network latency and improve throughput, but am not having any luck. I would have expected to need to call Stub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED, Boolean.FALSE) to get keep alive working from the documentation, but then I realised that I'm not even seeing any chunked headers in the request (it doesn't affect operation, either). So what exactly do I need to do to get this working? Anyone have a code snippet or example? My searches thus far have turned up blank. Thanks! Dave
Re: Stubs Options Configuration
On Wed, Apr 22, 2009 at 5:06 PM, David Rees dree...@gmail.com wrote: I would have expected to need to call Stub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED, Boolean.FALSE) to get keep alive working from the documentation, but then I realised that I'm not even seeing any chunked headers in the request (it doesn't affect operation, either). OK, more reading and now I realize that keep-alive should be on by default, but to get any performance benefit, I also need to REUSE_HTTP_CLIENT. So I've done that and yes, performance has improved now, but I run into the default limit of only 2 concurrent connections per host limit. How can I set my own MULTITHREAD_HTTP_CONNECTION_MANAGER or raise the default limit? This is a custom application so I am not worried about exceeding RFC specifications for concurrent connections. Is it as simple as Stub._getServiceClient().getOptions().setProperty(HTTPConstants.MULTITHREAD_HTTP_CONNECTION_MANAGER, myConnMan)? Are there any gotchas I should keep in mind? Thanks Dave
Re: Stubs Options Configuration
On Wed, Apr 22, 2009 at 6:30 PM, David Rees dree...@gmail.com wrote: OK, more reading and now I realize that keep-alive should be on by default, but to get any performance benefit, I also need to REUSE_HTTP_CLIENT. So I've done that and yes, performance has improved now, but I run into the default limit of only 2 concurrent connections per host limit. How can I set my own MULTITHREAD_HTTP_CONNECTION_MANAGER or raise the default limit? This is a custom application so I am not worried about exceeding RFC specifications for concurrent connections. Talking to myself a bit more, but I finally figured out how to do it with the help of this thread[1] on the axis-dev list. The key is to set both REUSE_HTTP_CLIENT to true and CACHED_HTTP_CLIENT to my own HttpClient class. Here's what I am doing is pseudo code: Wrap the creation of new stubs in a function which then calls these functions: Options o = stub._getServiceClient().getOptions(); o.setProperty(HTTPConstants.CHUNKED, Boolean.FALSE); o.setProperty(HTTPConstants.MC_ACCEPT_GZIP, Boolean.TRUE); o.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE); o.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, getHttpClient()); getHttpClient creates a cached HttpClient with my own MultiThreadedHttpConnectionManager: MultiThreadedHttpConnectionManager manager = new MultiThreadedHttpConnectionManager(); manager.getParams().setDefaultMaxConnectionsPerHost(20); httpClient = new HttpClient(manager); httpClient.getParams().setVersion(HttpVersion.HTTP_1_1); So far this appears to work well and significantly reduces response time and improves performance when making a lot of requests in a row. Would be nice if this were documented somewhere official, but at least now it will be in the mail archives. :-) -Dave [1] http://markmail.org/message/e4wdlwgnkkttqiov
Strings passed as parameters into Axis2 implemented web service have carriage return stripped.
I am using Axis2 1.2, and have a Web Service API which receives a text string which contains CRLF (carriage-return, linefeed) characters. By the time the string gets through the de-serialization layer on the receiving server-side, the CRLF has become just LF. This probably works well for Unix, but I am running on Windows. Is there any way to control this? Is this a bug? Anyone seen this before? Thanks, Dave
RE: Messages being sent twice in axis2c/1.5.0
I had this problem myself a little while back, and I found this workaround that seems to fix it for me. I haven't tested it extensively, though so YMMV. -David --- ./src/core/transport/http/sender/http_sender.c 2008-07-10 08:52:25.0 -0400 +++ ./src/core/transport/http/sender/http_sender.c 2008-11-11 13:53:36.0 -0500 @@ -1002,7 +1002,7 @@ env); } -if (force_http_auth_with_head) +else if (force_http_auth_with_head) { axis2_http_request_line_t *head_request_line = NULL; axis2_http_request_line_t *temp = NULL; From: Raghu Udupa [mailto:rud...@easylink.com] Sent: Friday, January 30, 2009 11:59 AM To: Apache AXIS C User List Subject: Messages being sent twice in axis2c/1.5.0 Hi, I am using Axis2C/1.5.0 on a Linux server as a client communicating to a Web service. When a message is sent either using http or using https protocol, the same message is being sent twice with in a fraction of second. I do see that this problem was reported to Axis2c user group before. Has this problem been resolved? I am attaching tcpmon log. I am using ADB to generate the stub code. If this problem has been resolved already, can I just upgrade the run time library to a newer release without having to regenerate the ADB code? ADB generated stub code is modified significantly. Thanks, Raghu
Re: Axis2 Java codegen tool fails to include message parts mapped to SOAP headers
I agree that the tool not at least spitting out a warning is probably a bug. Please open a JIRA [1] to get that added. David [1] https://issues.apache.org/jira/browse/AXIS2 On Wed, Dec 24, 2008 at 7:12 PM, Gilbert Pilz gilbert.p...@oracle.com wrote: Hi, I'm new to Axis2 but I sort of know my way around SOAP etc. I'm trying to build an Axis2 implementation of the Web Services Test Forum (WSTF) Notify-Echo scenario. The WSDL for this scenario is a little tricky. The Notify and Echo messages contain two parts, the actual data to be sent and a SessionData element that provides an app-level session ID. The service is supposed to concatenate all the notify and echo data from a given session and return it on the Echo operation. For example: Notify(foo, session1) Notify(blub, session2) Echo(baz, session1) -- returns foobaz So far, pretty simple. The tricky part is in the SOAP bindings where the SessionData part is mapped to a SOAP header like so: wsdl:operation name=Notify soap12:operation/ wsdl:input soap12:header use=literal part=SessionData message=tns:Notify/ soap12:body use=literal parts=Notify/ /wsdl:input /wsdl:operation When I process this WSDL using the Axis2 codegen task it seems to work fine; there are no warnings etc. However, the generated Java code doesn't reflect the presence of SessionData element. Here's the server skeleton for the Notify method: /** * Auto generated method signature * * @param notify14 */ public void Notify(org.wstf.www.docs.scenarios.sc002.Notify notify14) { //TODO : fill this with the necessary business logic } This just seems wrong to me. I think the tool should either generate code the accurately reflects the portType (i.e. including all the parts of all the input and output messages) or it should warn you that it is leaving something out. I'm using version 1.4.1 of Axis2. I'm invoking the codegen tool via ant like so: taskdef name=codegen classname=org.apache.axis2.tool.ant.AntCodegenTask classpathref=axis.classpath/ target name=compile.wsdl unless=wsdl.compiled depends=init codegen wsdlfilename=src/sc003.wsdl output=generated serverside=true generateservicexml=true portName=soap12port serverSideInterface=true/ /target Gilbert Pilz | SOA/WS Technologist | Oracle Corporation
RE: can't create c++ client
I would guess you might need to define a prefix for the target namespace and use that prefix in the reference. Something like this: - add xmlns:tns=http://www.ptt.com/BizConnect; to the root element. - change reference to element=tns:ContractorCheckListBySpecialtyRequest I didn't try this out, but it may be the ticket. Good luck, -David -Original Message- From: virtan [mailto:vir...@virtan.com] Sent: Tuesday, December 16, 2008 1:46 PM To: axis-c-user@ws.apache.org Subject: can't create c++ client Hi, all. Nobody answered me. Trying to ask once again... I tried to create C++ client from valid wsdl file (attached). Got referenced but not defined error. Sure, it is wrong. All referenced elements properly defined. No problem reported using other wsdl parsers. Can you help me ? Details: Using precompiled linux binaries from http://www.apache.org/dist/ws/axis-c/axis-c-linux-current-bin.tar.gz [vir...@jail ~/tmp/ptt] java -version java version 1.6.0_0 IcedTea6 1.4 (fedora-7.b12.fc10-i386) Runtime Environment (build 1.6.0_0-b12) OpenJDK Client VM (build 10.0-b19, mixed mode) [vir...@jail ~/tmp/ptt] bash -x ./axis.sh + AXISINSTALLDIR=/home/virtan/tmp + CLASSPATH=/home/virtan/tmp/lib/axis/wsdl2ws.jar:/home/virtan/tmp/lib/ axisjava/axis.jar:/home/virtan/tmp/lib/axisjava/commons-discovery.jar:/ home/virtan/tmp/lib/axisjava/commons-logging.jar:/home/virtan/tmp/lib/ axisjava/jaxrpc.jar:/home/virtan/tmp/lib/axisjava/saaj.jar:/home/ virtan/tmp/lib/axisjava/wsdl4j.jar + java -cp /home/virtan/tmp/lib/axis/wsdl2ws.jar:/home/virtan/tmp/lib/ axisjava/axis.jar:/home/virtan/tmp/lib/axisjava/commons-discovery.jar:/ home/virtan/tmp/lib/axisjava/commons-logging.jar:/home/virtan/tmp/lib/ axisjava/jaxrpc.jar:/home/virtan/tmp/lib/axisjava/saaj.jar:/home/ virtan/tmp/lib/axisjava/wsdl4j.jar org.apache.axis.wsdl.wsdl2ws.WSDL2Ws ptt.wsdl -lc -v -sclient java.io.IOException: Element ContractorCheckListBySpecialtyRequest is referenced but not defined. at org .apache .axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java: 657) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:532) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java: 506) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java: 483) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java: 356) at java.lang.Thread.run(Thread.java:636) org.apache.axis.wsdl.wsdl2ws.WrapperFault: java.io.IOException: Element ContractorCheckListBySpecialtyRequest is referenced but not defined. at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.init(Unknown Source) at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(Unknown Source) Caused by: java.io.IOException: Element ContractorCheckListBySpecialtyRequest is referenced but not defined. at org .apache .axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java: 657) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:532) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java: 506) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java: 483) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java: 356) at java.lang.Thread.run(Thread.java:636) Code generation failed. Please see errors above.
RE: can't create c++ client
That's good. It probably means it fixed the first error and is moving on to the next error. Do the same thing. Change the reference to CreditType so it uses the target namespace prefix, tns:CreditType. You'll probably need to do that to all the items you are defining in your WSDL. Keep working through the errors. When I started with SOAP, I found getting the namespaces just right was one of the hardest parts. You might Google for a tutorial on SOAP/XSD/XML namespaces, or find a good example and follow it. Good luck, -David -Original Message- From: virtan [mailto:vir...@virtan.com] Sent: Tuesday, December 16, 2008 2:16 PM To: Apache AXIS C User List Subject: Re: can't create c++ client On 16.12.2008, at 21:57, David Taylor (Lowell) wrote: I would guess you might need to define a prefix for the target namespace and use that prefix in the reference. Something like this: - add xmlns:tns=http://www.ptt.com/BizConnect; to the root element. - change reference to element=tns:ContractorCheckListBySpecialtyRequest I didn't try this out, but it may be the ticket. Tried. Got java.io.IOException: Type CreditType is referenced but not defined. CreditType is not referenced as element in wsdl. Suggestions ? Good luck, -David -Original Message- From: virtan [mailto:vir...@virtan.com] Sent: Tuesday, December 16, 2008 1:46 PM To: axis-c-user@ws.apache.org Subject: can't create c++ client Hi, all. Nobody answered me. Trying to ask once again... I tried to create C++ client from valid wsdl file (attached). Got referenced but not defined error. Sure, it is wrong. All referenced elements properly defined. No problem reported using other wsdl parsers. Can you help me ? Details: Using precompiled linux binaries from http://www.apache.org/dist/ws/axis-c/axis-c-linux-current-bin.tar.gz [vir...@jail ~/tmp/ptt] java -version java version 1.6.0_0 IcedTea6 1.4 (fedora-7.b12.fc10-i386) Runtime Environment (build 1.6.0_0-b12) OpenJDK Client VM (build 10.0-b19, mixed mode) [vir...@jail ~/tmp/ptt] bash -x ./axis.sh + AXISINSTALLDIR=/home/virtan/tmp + CLASSPATH=/home/virtan/tmp/lib/axis/wsdl2ws.jar:/home/virtan/tmp/ lib/ axisjava/axis.jar:/home/virtan/tmp/lib/axisjava/commons- discovery.jar:/ home/virtan/tmp/lib/axisjava/commons-logging.jar:/home/virtan/tmp/lib/ axisjava/jaxrpc.jar:/home/virtan/tmp/lib/axisjava/saaj.jar:/home/ virtan/tmp/lib/axisjava/wsdl4j.jar + java -cp /home/virtan/tmp/lib/axis/wsdl2ws.jar:/home/virtan/tmp/lib/ axisjava/axis.jar:/home/virtan/tmp/lib/axisjava/commons- discovery.jar:/ home/virtan/tmp/lib/axisjava/commons-logging.jar:/home/virtan/tmp/lib/ axisjava/jaxrpc.jar:/home/virtan/tmp/lib/axisjava/saaj.jar:/home/ virtan/tmp/lib/axisjava/wsdl4j.jar org.apache.axis.wsdl.wsdl2ws.WSDL2Ws ptt.wsdl -lc -v -sclient java.io.IOException: Element ContractorCheckListBySpecialtyRequest is referenced but not defined. at org .apache .axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java: 657) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:532) at org .apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java: 506) at org .apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java: 483) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java: 356) at java.lang.Thread.run(Thread.java:636) org.apache.axis.wsdl.wsdl2ws.WrapperFault: java.io.IOException: Element ContractorCheckListBySpecialtyRequest is referenced but not defined. at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.init(Unknown Source) at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(Unknown Source) Caused by: java.io.IOException: Element ContractorCheckListBySpecialtyRequest is referenced but not defined. at org .apache .axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java: 657) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:532) at org .apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java: 506) at org .apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java: 483) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java: 356) at java.lang.Thread.run(Thread.java:636) Code generation failed. Please see errors above. -- virtan / vir...@virtan.com / http://www.virtan.com
RE: thread safe axis2 client stub
I would think that there is no need to create a new client stub for each web service call. You just need to be sure you create a separate stub for each client thread. On each thread you can make as many web service calls as you like using the same proxy. From: Paul French [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2008 4:37 AM To: axis-user@ws.apache.org Subject: RE: thread safe axis2 client stub Can anyone comment on this? It is a major issue for us. Why is the client stub created not thread safe? If it cannot be made thread safe then how can you avoid the huge overhead of instantiating a new client stub per web service call? From: Shehan Simen [mailto:[EMAIL PROTECTED] Sent: 10 December 2008 01:24 To: axis-user@ws.apache.org Subject: RE: thread safe axis2 client stub Yes, I am expecting an answer from someone who develop the axis2. It is very inefficient to create a stub for each call. Regards, Shehan From: Paul French [mailto:[EMAIL PROTECTED] Sent: 2008-12-10 03:29 To: axis-user@ws.apache.org; 'David Ojeda' Subject: RE: thread safe axis2 client stub http://markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub %20thread%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results From: David Ojeda [mailto:[EMAIL PROTECTED] Sent: 09 December 2008 16:16 To: axis-user@ws.apache.org Subject: Re: thread safe axis2 client stub I am also interested in this matter. I would like to hear Deepal's opinion, since he was the one who said that it is not thread safe. Paul: You said: The link below suggests some tricks you can do to make things more efficient. What are these tricks? What link? Cheers, David On Tuesday 09 December 2008 11:50:31 Paul French wrote: This seems strange to me that the client stub cannot be made thread safe. After reading the below I have changed my client service to create the client stub on each call to one of my service methods since the client stub is not thread safe. I have no idea how inefficient this is? I have noticed that every time I create the client stub (for each and every call) I get the message: `[INFO] Deploying module: metadataExchange - file:/C:/downloads/axis2/axis2-1.4.1/lib/mex-1.4.1.jar It suggests a lot of work is going on to simply service a single web service call. The link below suggests some tricks you can do to make things more efficient. What are these tricks? Thanks Paul _ From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: 09 December 2008 04:26 To: axis-user@ws.apache.org Subject: Re: thread safe axis2 client stub I was not aware of this. If the axis2 design not permits this it is better not to use it. thanks, Amila. On Mon, Dec 8, 2008 at 10:00 AM, Shehan Simen [EMAIL PROTECTED] wrote: Also this link: http://markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub %20 t hread%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: 2008-12-08 15:26 To: axis-user@ws.apache.org Subject: Re: thread safe axis2 client stub I have tested with Axis2 1.4 and it worked fine. can you please send the mail thread you mentioned? thanks, Amila. On Mon, Dec 8, 2008 at 9:48 AM, Shehan Simen [EMAIL PROTECTED] wrote: Hi Amila, Thank you for your response. But I found in some discussion, it is saying that the client stub is not thread safe. Is this problem fixed now? In which version I can find it then? Regards, Shehan From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: 2008-12-08 15:13 To: axis-user@ws.apache.org Subject: Re: thread safe axis2 client stub yes thanks, Amila. On Mon, Dec 8, 2008 at 9:31 AM, Shehan Simen [EMAIL PROTECTED] wrote: Hi, I am going to invoke a web service via a client stub generated by axis2. I want to have a single instance of the stub across my application. So when I initiate the stub (when I call the constructor), I don't like to call it again throughout my application. Is it thread safe? Regards, Shehan -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- David Ojeda __ NOD32 3677 (20081209) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com __ NOD32 3680 (20081210) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
Re: thread safe axis2 client stub
I am also interested in this matter. I would like to hear Deepal's opinion, since he was the one who said that it is not thread safe. Paul: You said: The link below suggests some tricks you can do to make things more efficient. What are these tricks? What link? Cheers, David On Tuesday 09 December 2008 11:50:31 Paul French wrote: This seems strange to me that the client stub cannot be made thread safe. After reading the below I have changed my client service to create the client stub on each call to one of my service methods since the client stub is not thread safe. I have no idea how inefficient this is? I have noticed that every time I create the client stub (for each and every call) I get the message: `[INFO] Deploying module: metadataExchange - file:/C:/downloads/axis2/axis2-1.4.1/lib/mex-1.4.1.jar It suggests a lot of work is going on to simply service a single web service call. The link below suggests some tricks you can do to make things more efficient. What are these tricks? Thanks Paul _ From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: 09 December 2008 04:26 To: axis-user@ws.apache.org Subject: Re: thread safe axis2 client stub I was not aware of this. If the axis2 design not permits this it is better not to use it. thanks, Amila. On Mon, Dec 8, 2008 at 10:00 AM, Shehan Simen [EMAIL PROTECTED] wrote: Also this link: http://markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub%20 t hread%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: 2008-12-08 15:26 To: axis-user@ws.apache.org Subject: Re: thread safe axis2 client stub I have tested with Axis2 1.4 and it worked fine. can you please send the mail thread you mentioned? thanks, Amila. On Mon, Dec 8, 2008 at 9:48 AM, Shehan Simen [EMAIL PROTECTED] wrote: Hi Amila, Thank you for your response. But I found in some discussion, it is saying that the client stub is not thread safe. Is this problem fixed now? In which version I can find it then? Regards, Shehan From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: 2008-12-08 15:13 To: axis-user@ws.apache.org Subject: Re: thread safe axis2 client stub yes thanks, Amila. On Mon, Dec 8, 2008 at 9:31 AM, Shehan Simen [EMAIL PROTECTED] wrote: Hi, I am going to invoke a web service via a client stub generated by axis2. I want to have a single instance of the stub across my application. So when I initiate the stub (when I call the constructor), I don't like to call it again throughout my application. Is it thread safe? Regards, Shehan -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- David Ojeda
RE: Axis2 integration with Weblogic admin console
I imagine this is happening because WebLogic just doesn't know it's a web service. The WebLogic admin console doesn't have implicit knowledge of Axis web services. I would assume that if you instead implemented JAX-WS web services, which WebLogic directly supports, the console would list those components as web services. -Original Message- From: Kevin TierOne [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 6:39 AM To: axis-user@ws.apache.org Subject: Axis2 integration with Weblogic admin console I have a web application .war that includes an axis2 (1.3) web service and a GUI component. This application is deployed on a weblogic 9.2 server. The application is 100% functional: - The GUI is available at http://localhost:7001/appName/index.html - The web service is available at http://localhost:7001/appName/webservice - The axis2 admin console is available at http://localhost:7001/appName/axis2-web/index.jsp However, in the weblogic administration console (http://localhost:7001/console), there are no web services listed under the deployment for my application. Does anyone know how to integrate Axis2 web services into the weblogic administration console? Is this even possible? Thanks, Kevin - 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: Adressing, async services and responses
Hello Michele, Thank you for your ideas. I am saying it is not possible because I need some validation on the webservice implementation and then respond. As you said in your first response, the acknowledgment (i.e. HTTP 200) is *always* sent back to the client *before* the server starts processing the request Maybe an example will help: Suppose that we are developing a Webservice for a bank with an operation that transfers money from an user's account to another bank account. The service will be used in a frontend so users transfer money between accounts. A client will set the destined account and amount and the frontend should quickly respond if the operation will be executed or not. 1. A ws-client sends the request to the service, with a xml that contains the user's account, the amount and the destined account. 2. The ws receives the request and validates the input (checks if the user's account has enough funds) 3 if valid, ws spawns a thread in order to make the money transfer (this could take hours if the other account is in some other country, for example) 3.1. ws notifies external system 3.2. ws responds (to the replyTo or faultTo) that it will process this request 4 if not valid ws responds (to the replyTo or faultTo) that it will not process this request. The external system is not notified Maybe with the example above I can make myself clearer? Some other thoughts: - I don't understand how it would be possible to respond to the client replyTo or faultTo and then notifying an external system. My understanding is that replying will be that last instruction in my code (a return or throw). Maybe you mean to do this with a custom handler? - You mention that axis2 uses a dedicated thread pool used to serve incoming requests. I thought that the thread pool was managed by the application server (tomcat,jetty,weblogic) rather than axis2 itself since the webservice request are managed by a servlet after all... Is this correct? Thanks again David On Thursday 20 November 2008 11:53:18 Michele Mazzucco wrote: Hi David, why are you saying it is not possible?! What I have in mind is: 1 - client send request to ws 2 - ws sends a http 200 code back 3 - ws validates the input 4 - ws does the job (no need to spawn a separate thread! -- axis2 uses a dedicated thread pool used to serve incoming requests) 5 - ws responds to client using replyTo or faultTo 6 - ws notifies external system (another ws is fine). You'll need to remove the relatesTo field because such values are stored on the client side. If msg # 6 is a brand new msg, then there's no problem (the relatesTo in msg #5 is with msg #1, which is fine). However, if you forward the result somewhere else (i.e. no client), then msg #5 won't be related to anything on the receiver side, right? Michele On 20 Nov 2008, at 14:47, David Ojeda wrote: Hello Michele, Thank you for your response. If a HTTP 200 acknowledgement is always sent back to the client before the server starts processing, then the situation I was thinking is not possible at all. I thought it may be possible to send an acknowledgement with some response like ok I will process this or there is a validation error. Since this is not possible, I will have to come up with a solution like: 1. client sends request to ws 2. ws validates the input 3. if valid, ws spawns a thread to do some work that takes a while 4. ws responds to the client 5. eventually the thread finishes and notifies an external system (another ws perhaps) That aside, why do you say that I will need to write a handler in order to remove the relatedTo field? I am curious on how to implement the 'server' that will receive the response. Thank you On Thursday 20 November 2008 10:00:42 Michele Mazzucco wrote: Hi David, I don't really see where the problem is when you say there is an initial acknowledgment and then the response is delivered somewhere else. If you use asynchronous communication (i.e. WS-addressing and double channel) the acknowledgment (i.e. HTTP 200) is *always* sent back to the client *before* the server starts processing the request. Then you can specify different endpoints for reply and fault by using setReplyTo() and setFaultTo(), respectively. However be careful that if the response is sent somewhere else, i.e., to a host different from the sender, you'll need to write a handler in order to remove the relatesTo field (WS-addressing stuff). HTH, Michele On 19 Nov 2008, at 22:11, David Ojeda wrote: Hello, I am trying to design a webservice that will respond asynchronously and to a specific URL. I have read documentation on asynchronous services [1] but I have not found a solution for the following situation: 1. A client sends a soap request to the webservice 2. The webservice does some validation of the input (by actually calling
Re: Adressing, async services and responses
Agreed! On Thursday 20 November 2008 14:21:38 Michele Mazzucco wrote: On 20 Nov 2008, at 17:39, David Ojeda wrote: - I don't understand how it would be possible to respond to the client replyTo or faultTo and then notifying an external system. My understanding is that replying will be that last instruction in my code (a return or throw). Maybe you mean to do this with a custom handler? That's correct, but you can send the message to the external system first! (indeed, you'll need some sort of transaction/reliable messaging. Otherwise you'll end up with sending a message to one party and not to the other) - You mention that axis2 uses a dedicated thread pool used to serve incoming requests. I thought that the thread pool was managed by the application server (tomcat,jetty,weblogic) rather than axis2 itself since the webservice request are managed by a servlet after all... Is this correct? Yes, that's true if Axis2 is embedded. If it runs in standalone mode it will use its own thread pool. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Ojeda
Re: Adressing, async services and responses
Michele, You are right, this example is clearly feasible. But what if I wanted to do step step 3.2 before 3. I mean, respond that the ws will process this request *before* actually doing the heavy work (transfering funds). This what I think is not possible with axis2 (maybe not even with other ws soap implementations). David On Thursday 20 November 2008 14:23:00 Michele Mazzucco wrote: On 20 Nov 2008, at 17:39, David Ojeda wrote: I am saying it is not possible because I need some validation on the webservice implementation and then respond. As you said in your first response, the acknowledgment (i.e. HTTP 200) is *always* sent back to the client *before* the server starts processing the request Maybe an example will help: Suppose that we are developing a Webservice for a bank with an operation that transfers money from an user's account to another bank account. The service will be used in a frontend so users transfer money between accounts. A client will set the destined account and amount and the frontend should quickly respond if the operation will be executed or not. 1. A ws-client sends the request to the service, with a xml that contains the user's account, the amount and the destined account. 2. The ws receives the request and validates the input (checks if the user's account has enough funds) 3 if valid, ws spawns a thread in order to make the money transfer (this could take hours if the other account is in some other country, for example) 3.1. ws notifies external system 3.2. ws responds (to the replyTo or faultTo) that it will process this request 4 if not valid ws responds (to the replyTo or faultTo) that it will not process this request. The external system is not notified Maybe with the example above I can make myself clearer? Yes, that's clear. But still I don't understand why you're saying it's not feasible. I honestly can't see why. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Ojeda
Calling one Axis2 Web Service from another
Back in August there was a thread on this list about problems that arise when you try to call an Axis2 Web service from another one: http://www.mail-archive.com/axis-user@ws.apache.org/msg42206.html Basically, you can implement Service A, and write a client using ServiceClient, ServiceClient client = new ServiceClient(); Options clientOptions = new Options(); clientOptions.setTo(new EndpointReference(ServiceAEndpointURL)); client.setOptions(clientOptions); OMElement request makeRequestElement(); OMElement response = client.sendReceive(request); and get this to work from a test program, but if you move this code to the implementation of an operation in a 2nd service, the sendReceive() invocation throws an exception: [WARN] triggerActionNotSupportedFault: messageContext: [MessageContext: logID=urn:uuid:29EB883E1292BECC7B1227033256438] problemAction: urn:anonOutInOpResponse [ERROR] The [action] cannot be processed at the receiver. org.apache.axis2.AxisFault: The [action] cannot be processed at the receiver. at org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFaul t(AddressingFaultsHelper.java:373) at org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSuppo rtedFault(AddressingFaultsHelper.java:336) at org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkAc tion(AddressingValidationHandler.java:149) at org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke( AddressingValidationHandler.java:55) ... As far as I know, this hasn't been resolved - is that correct? I can see that for Web Service deployments that provide wrapper interfaces intended for use by other parties this isn't an issue. However, if you're trying to put together a service-orientated system involving extensive use of services by other services, this seems to be a significant problem - to the point where I wonder whether I'm missing something. I appreciate that these intra Axis2 calls are candidates for migration to some other invocation mechanism such as RMI, but I wouldn't have expected to have to do that in all cases right from the start. Would using Axis2 in the context of an ESB like the WSO2 ESB provide a way avoid this problem? Any comments would be appreciated. Dave
Adressing, async services and responses
Hello, I am trying to design a webservice that will respond asynchronously and to a specific URL. I have read documentation on asynchronous services [1] but I have not found a solution for the following situation: 1. A client sends a soap request to the webservice 2. The webservice does some validation of the input (by actually calling another webservice) 3. If the validation succeds, the webservice responds with an xml that indicates that the operation is pending. 3.1 The webservice does some work that takes a while (1min) 3.2 The webservice responds (succesfully or with a fault) to an URL specified by the client 3.3 End 4. If the validation failed, the webservice responds with an xml that indicates that there is a problem So I think this situation is weird since there is an initial acknowledge to the client (with data) and then the response is delivered somewhere else. I have managed to use the addressing module to specify the URL for the final response options.setReplyTo(new EndpointReference( http://10.21.17.196:/pruebaservlet/pepe;)); However, when I call the service, I do not how to send or receive the acknowledge. I monitored the http communication and the client sends correctly the soap request and the service responds with a 200 OK code but no content. So this is my question: Is it possible to implement this scenario, i.e. an ack that indicates if the operation will or will not be performed, then the response is sent somewhere else. Some other doubts: What would be the ideal way to handle this response? With a simple servlet? Or perhaps an in-only webservice whose in-parameter is the output-parameter of the initial webservice. (I hope I am making some sense with these questions) Thank you [1] http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=4 http://www.ibm.com/developerworks/webservices/library/ws-axis2/ http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using- apache-axis2.html -- David Ojeda
RE: xs:any minOccurs Check is Wrong
I think I have figured out the problem. In this case, there is an anonymous complex type with a sequence. That sequence has an implied minOccurs of 1. But, inside that sequence is only a single item, any, with a minOccurs of 0. The ADB deserializer didn't handle the case where the any had nothing, since the sequence was expecting at least 1 item. I worked around it by adding minOccurs=0 to the sequence. I don't know how the specification says to handle this, but it may be that if all the subitems have minOccurs=0, then the parent should also be treated as though minOccurs=0 as well. Thanks, -David From: Dimuthu Gamage [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 10:04 PM To: Apache AXIS C User List Subject: Re: xs:any minOccurs Check is Wrong Hi David, From the error message of your generated code, it looks like you are checking ItemListTypeSequence instead of ItemListType property. Can you check whether there is anther property named ItemListType?. If it is no other property, then this should probably bugs for not setting @any and @minOccurs. If so please report it to the Apache Jira. https://issues.apache.org/jira/secure/Dashboard.jspa (select Axis2-C project) Thanks Dimuthu On Wed, Nov 12, 2008 at 4:29 AM, David Taylor (Lowell) [EMAIL PROTECTED] wrote: I have a WSDL that I am using to generate ADB stubs. This WSDL includes a type with xs:any that is causing the stub to have code generated to check for at least 1 element in the list, even though the element lists minOccurs=0. Here's the fragment of the WSDL: complexType name=ItemListType sequence maxOccurs=unbounded any namespace=##other processContents=lax minOccurs=0 maxOccurs=unbounded / /sequence /complexType Here is the erroneous check in the generated stub deserialize function: if (i 1) { /* found element out of order */ AXIS2_LOG_ERROR(env-log, AXIS2_LOG_SI, ItemListTypeSequence (@minOccurs = '1') only have %d elements, i); if(element_qname) { axutil_qname_free(element_qname, env); } if(arr_list) { axutil_array_list_free(arr_list, env); } return AXIS2_FAILURE; } The problem appears to be that the XSLT stylesheet is looking for an @any attribute to be set, to avoid generating this section of code. It seems that the xs:any element should set this attribute. However, I can't figure out where that attribute should be set. Any help would be greatly appreciated. Thanks, -David -- Thanks, Dimuthu Gamage http://www.dimuthu.org http://www.wso2.org
BasicHttpContext: method init()V not found
Hi I am trying to run an Axis2 Web service under Tomcat 6.0. I am using Axis2 v1.4.1. The first line of my Web service is: DefaultHttpClient httpclient =3D new DefaultHttpClient(); and I am getting the following runtime error: org.apache.axis2.AxisFault: org.apache.http.protocol.BasicHttpContext: method init()V not found I have compiled the Web service with httpcore-4.0-beta3.jar in the CLASSPATH and the same jar file is in the Tomcat and axis2 lib directories. Can you suggest what might be the problem? Thanks David
RE: Sementation fault on solaris sparc 64-bit
I'd recommend you run valgrind on your program. I'd guess this is a double free of some memory and valgrind would tell you where it is. -David From: Gelle, Sreenivasulu [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 12:26 PM To: [EMAIL PROTECTED]; axis-c-user@ws.apache.org Cc: Yuin, Maria; Zhou, Xiaofan Subject: Sementation fault on solaris sparc 64-bit Importance: High Hi All, I'm using axis2-c 1.3.0 version built on Solaris Sparc 64-bit OS with Sunstudio 11 compiler. Below is stack trace. Please let me know is there any thing has fixed in this area. I'm in the end of release and this issue is show stopper. So your help is so much appreciated. called from signal handler with signal 11 (SIGSEGV) -- [6] MemFreePtr(0x6c6c652f44535f53, 0x78909eb8, 0x10a400, 0x789021d0, 0x, 0x6c6c652f4453), at 0x7f209b58 [7] axutil_allocator_free_impl(0x1051c00d8, 0x6c6c652f44535f53, 0x3, 0x7890ed10, 0x7f61eda0, 0x6b6fae1c), at 0x7890c6c4 [8] axutil_stream_free(0x1051b0558, 0x1051c0138, 0x79011ec9, 0x78902380, 0x3, 0x0), at 0x7890ec04 [9] axutil_stream_free_void_arg(0x1051b0558, 0x1051c0138, 0x3, 0x1051b0558, 0x104ff0118, 0x6b6fafbc), at 0x7890ed10 [10] axutil_property_free(0x104ff0db8, 0x1051c0138, 0x0, 0x6b6fb040, 0x2, 0x10505), at 0x789194e0 [11] axis2_ctx_free(0x1050519f8, 0x1051c0138, 0x7900f463, 0x79052a84, 0x104ff0118, 0x6b6fb14c), at 0x7904d0c0 [12] axis2_msg_ctx_free(0x10533abf8, 0x1051c0138, 0x790106ac, 0x7905b894, 0x0, 0x104ff), at 0x7904d66c [13] axis2_op_ctx_free(0x1052510f8, 0x1051c0138, 0x0, 0x7905fa68, 0x0, 0x0), at 0x79052a84 [14] axis2_op_client_free(0x105251098, 0x1051c0138, 0x1051d1980, 0x0, 0x0, 0x1052c0140), at 0x7905b894 [15] axis2_svc_client_free(0x105260078, 0x1051c0138, 0x1051d1978, 0x1, 0x105051eb8, 0x0), at 0x7905fa68 [16] XTran_webservice::getnext(0x104d84968, 0x104b03218, 0x105260078, 0x10254af38, 0x3, 0x1051c0138), at 0x100f2d97c [17] XTran_webservice::execute(0x104d84968, 0x104b03218, 0x100f2ce40, 0x103cea478, 0x21ff99c, 0x102686d20), at 0x100f2e080 Thanks -Srini
xs:any minOccurs Check is Wrong
I have a WSDL that I am using to generate ADB stubs. This WSDL includes a type with xs:any that is causing the stub to have code generated to check for at least 1 element in the list, even though the element lists minOccurs=0. Here's the fragment of the WSDL: complexType name=ItemListType sequence maxOccurs=unbounded any namespace=##other processContents=lax minOccurs=0 maxOccurs=unbounded / /sequence /complexType Here is the erroneous check in the generated stub deserialize function: if (i 1) { /* found element out of order */ AXIS2_LOG_ERROR(env-log, AXIS2_LOG_SI, ItemListTypeSequence (@minOccurs = '1') only have %d elements, i); if(element_qname) { axutil_qname_free(element_qname, env); } if(arr_list) { axutil_array_list_free(arr_list, env); } return AXIS2_FAILURE; } The problem appears to be that the XSLT stylesheet is looking for an @any attribute to be set, to avoid generating this section of code. It seems that the xs:any element should set this attribute. However, I can't figure out where that attribute should be set. Any help would be greatly appreciated. Thanks, -David
Axis2-1.4.1 and Xmlbeans 2.4.0
Hello, I've noticed that xmlbeans has released a new version 2.4.0. Does anyone have any ideas/experience using axis2-1.4.1 and that version of xmlbeans instead of 2.3.0 ? The changelog is available at http://svn.apache.org/viewvc/xmlbeans/trunk/CHANGES.txt?revision=666108view=markup I would specifically use xmlbeans 2.4.0 for code generation, could this be a problem since axis2 uses 2.3.0? Thank you -- David Ojeda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Adding additional authentication mechanism to a axis c client application
I think Kevin is asking about Negotiate authentication defined in RFC 4559. This is an HTTP transport level authentication scheme. Thanks, -David -Original Message- From: Supun Kamburugamuva [mailto:[EMAIL PROTECTED] Sent: Fri 11/7/2008 9:40 PM To: Apache AXIS C User List Subject: Re: Adding additional authentication mechanism to a axis c client application Not familiar with NTLM. Is that a transport level auth mechanism or soap level auth mechanism? AFAIK kerboros is a SOAP level auth mechanism. To support kerboros authentication [1] needs to be implemented at the Rampart/C level. [1] http://www.oasis-open.org/committees/download.php/16788/wss-v1.1-spec-os-KerberosTokenProfile.pdf On Sat, Nov 8, 2008 at 12:32 AM, Kevin Heneghan [EMAIL PROTECTED] wrote: Hi, I am creating a SOAP/WS-management client to talk to an existing web service. The existing web service requires NTLM or Kerberos authentication. How do I plugin my authentication code to the axis client to negotiate authentication at the HTTP level? In detail. I have existing code that can do NTLM authentication in a share library on linux. I have a SOAP/WS-management client that needs to utilize this library to do NTLM authentication at the HTTP level. How do I put my code into the axis client to do the authentication? Thanks Kevin -- Software Engineer, WSO2 Inc http://wso2.org Web Services with Axis2/C http://wsaxc.blospot.com
Axis2 and maven2 aar generation pom (sample pom)
Hello axis and maven users, Sorry to double post, but I have been struggling for some days with maven2 and axis2 code generation for a web service implementation and sometimes I don't know where to ask questions. Maybe you could excuse my double posting since I am not making a question, but explaining a solution for my problem. I want to make a maven project for a webservice implementation using axis2. It has been very hard because I need to use the xmlbeans databinding and the maven plugins don't work for me in this case. I found a great solution for a multi module project that generates an aar artifact of a webservice, when another project uses this aar artifact. See http://stackoverflow.com/questions/73491 However, this did not work completely for me because: 1. I need the java2wsdl to generate xmlbeans stub classes. Easy to do when using wsdl2java, but when using the axis2-wsdl2code-maven-plugin it is not possible 2. Because of reason 1, I need to generate xmlbeans classes for xsd and wsdl files. The xmlbeans-maven-plugin has a known bug that cannot generate classes for wsdl. It is fixed but not patched to the trunk. 3. I do not want to generate sources every time I compile the project. I just need to run the generate-sources phase once. So I managed to solve my problem with the pom.xml below. This pom only generates an aar file that I was able to hot-deploy to an axis2 server. I don't have the parent pom yet nor the module that packs the aar file in a war, but it's a good start. I just hope it is useful for someone else in the future. Also if anyone wants to take a look and tell me if there is something wrong with it, please tell me. Thanks, pom.xml: ?xml version=1.0? !-- Project for web service aar generation using axis2 and xmlbeans databinding Author: David Ojeda dojeda /at/ integra.la Date: 20081105 -- project parent artifactIdws-parent/artifactId groupIdmy.group/groupId version0.0.1-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion groupIdmy.group/groupId artifactIdws-aar/artifactId packagingaar/packaging namews-aar/name version0.0.1-SNAPSHOT/version urlhttp://example.org/url profiles !-- Profile for axis and xmlbeans source generation. It will activate if the directory target/generated-sources does not exist. Therefore, it will only run once or every time a clean is made. -- profile idsourcegen/id activation activeByDefaultfalse/activeByDefault file missingtarget/generated-sources/missing /file /activation build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.3/version executions !-- Execution for generating the xmlbeans classes and .xsb It is used instead of xmlbeans-maven-plugin because this plugin does not support wsdl files. See http://jira.codehaus.org/browse/MXMLBEANS-42 -- execution idxmlbeans-source-code-generation /id phasegenerate-sources/phase goals goalrun/goal /goals configuration tasks java classname=org.apache.xmlbeans.impl.tool.SchemaCompiler fork=true arg line= -javasource 1.5 -srconly -src target/generated-sources/xmlbeans -d target/generated-sources/xmlbeans src/main/wsdl src/main/xsd src/main/xsd/NStoPkg.xsdconfig / classpath refid=maven.dependency.classpath / classpath refid=maven.compile.classpath / classpath refid=maven.runtime.classpath / /java /tasks /configuration /execution
More questions about maven and axis2
Hello all, I have some questions about using maven and axis2. I am using maven 2.0.9, axis2 1.4.1, axis2-wsdl2code-maven-plugin 1.4.1. Here is my situation: Right now I just want to have a project that generates the client stub for a webservice. I need to use xmlbeans over other databindings. I set up a pom to do this: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdmypackage.ws.client/groupId artifactIdwsclients/artifactId packagingjar/packaging version1.0.0-SNAPSHOT/version namewsclients/name urlhttp://maven.apache.org/url build resources resource directorytarget/generated-sources/axis2/wsdl2code/resources/directory /resource /resources plugins plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.4.1/version executions execution goals goalwsdl2code/goal /goals /execution /executions configuration packageNamemypackage.x1/packageName wsdlFilesrc/main/wsdl/WSClientOperations.wsdl/wsdlFile databindingNamexmlbeans/databindingName /configuration /plugin /plugins /build dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdorg.apache.axis2/groupId artifactIdaxis2/artifactId version1.4.1/version /dependency dependency groupIdorg.apache.axis2/groupId artifactIdaxis2-xmlbeans/artifactId version1.4.1/version /dependency /dependencies /project The first problem I encountered was that I had to explicitly declare the axis2-xmlbeans dependecy. No big deal there. Then, I was having the TypeHolder class problem that xmlbeans usually has when the schemaorg_apache_xmlbeans directory is not in the classpath. That's why I had to add to the pom a resource in the build section. It seems like the plugin doesn't work as it should, because I believe this step should not be necessary. Now I want to add another wsdl so another stub is generated. I plan to have 10-20 wsdl in this project so all stubs are generated here. My first question is: how do I add another wsdl? I checked http://ws.apache.org/axis2/tools/1_4_1/maven-plugins/maven-wsdl2code- plugin.html and there is no documentation for this scenario. Second question: I would rather generate xmlbeans classes separately and tell wsdl2code to only generate stubs with the -Ewdc option. Is this possible with the axis2-wsdl2code-maven-plugin ? Again, the documentation doesn't say anything about this feature. Third question: axis2 and maven users: how do you structure your projects with maven? I am really interested specially if my first and second questions are no and no. Do you use a module for each webservice client and webservice implementation? I was hoping to have a module for all webservices client and another one for the server implementations (although one module per ws implementation works for me too). Thanks for you attention -- David Ojeda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re-generating an Axis 1.4 Web Service in Eclipse?
Hi, I'm using Eclipse Europa and Axis 1.4 (i.e. not Axis2) to generate a Web service in a top-down manner from a wsdl file I have created. This was working fine, and I was able to generate server-side stubs and develop my service until I wanted to alter the wsdl and change some of the elements used in the message definitions (it's a doc/literal service). I tried to recreate the service from the wsdl by re-running the Web Service wizard without doing anything else to the Eclipse project and started to get class not found exceptions associated with generated classes corresponding to an XML element I was no longer using. (I'd post the exception details, but I no longer have the console output.) = Is there something I should have done at this point equivalent to a clean and re-build action? Assuming that there were stale build products in my project I deleted the WebContent folder, hoping that the Web Service wizard / codegen tools would recreate everything necessary. What I find now is that some of the files in this folder are generated anew: the WEB-INF and lib folders are there, and the generated classes are in the src folder tree. But other files are missing, and the service can't be deployed to Tomcat: no META-INF folder, no server-config.wsdd or web.xml. = Is there anything I can do at this point to get the Axis 1.4 Web service tools to generate all the appropriate artefacts as though it was doing it for the first time? Thanks, Dave
RE: Re-generating an Axis 1.4 Web Service in Eclipse?
I now see that the stuff in WEB-INF isn't solely the responsibility of the axis tools, but am still curious: as I iterate through the cycle of: 1) Author or edit my wsdl and xsd files 2) Generate the axis artifacts 3) Work on my service implementation Is there anything that I need to or can do prior to repeating step 2) that with clean out any axis generated artifacts so I don't have any stale files in my Eclipse project? Dave From: Howell, David [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2008 9:44 AM To: axis-user@ws.apache.org Subject: Re-generating an Axis 1.4 Web Service in Eclipse? Hi, I'm using Eclipse Europa and Axis 1.4 (i.e. not Axis2) to generate a Web service in a top-down manner from a wsdl file I have created. This was working fine, and I was able to generate server-side stubs and develop my service until I wanted to alter the wsdl and change some of the elements used in the message definitions (it's a doc/literal service). I tried to recreate the service from the wsdl by re-running the Web Service wizard without doing anything else to the Eclipse project and started to get class not found exceptions associated with generated classes corresponding to an XML element I was no longer using. (I'd post the exception details, but I no longer have the console output.) = Is there something I should have done at this point equivalent to a clean and re-build action? Assuming that there were stale build products in my project I deleted the WebContent folder, hoping that the Web Service wizard / codegen tools would recreate everything necessary. What I find now is that some of the files in this folder are generated anew: the WEB-INF and lib folders are there, and the generated classes are in the src folder tree. But other files are missing, and the service can't be deployed to Tomcat: no META-INF folder, no server-config.wsdd or web.xml. = Is there anything I can do at this point to get the Axis 1.4 Web service tools to generate all the appropriate artefacts as though it was doing it for the first time? Thanks, Dave
RE: Does Axis2 do anything with WS-Addressing and WS-Policy in WSDLs?
How about the addressing wsdl spec, as opposed to the addressing metadata spec (which uses ws:Policy)? Does Axis2 do anything with the former spec? This usually uses the wsaw prefix, and involves the wsaw:UsingAddressing element in the wsdl:binding element, and the wsaw:Action attribute in the wsdl:input element. From: Sanka Samaranayake [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2008 2:59 PM To: axis-user@ws.apache.org Subject: Re: Does Axis2 do anything with WS-Addressing and WS-Policy in WSDLs? Hi David, WS Policy is the primary configuration mechanism of Apache Rampart which is the WS Security implementation for Axis2. In fact Axis2 stores and presents any policy expressions that are defined in services.xml or service WSDL to any candidate modules for interpreting and enforcing those policy expressions during service deployment and runtime. AFAIK Axis2 Addressing module doesn't support WS Addressing Policy expressions hence any policy expressions regarding WS Addressing don't get processed. This is something which is trivial and easy to implement and I guess we should get this done soon. Cheers, Sanka On Mon, Oct 27, 2008 at 4:12 PM, Karr, David [EMAIL PROTECTED] wrote: If I have a WSDL that references WS-Addressing and WS-Policy, using a policy expression that supposedly makes WS-Addressing required in the message, along with the wsam:Action attribute value, does Axis2 do anything useful with that information? -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/
hot update problem
When I copy my new aar file into the services directory, my log statements confirm that the new Web Service class is being loaded bya new DeploymentClassLoader.However, the previous verion of the class still exists in its DeploymentClassLoader and is still servicing client requests, the hot update hasn't worked.What am I doing wrong? My service is "application" scoped.Rgds,David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: hot update problem
Thanks for the reply Deepal.Oct 29, 2008 01:46:02 PM, axis-user@ws.apache.org wrote: When I copy my new aar file into the services directory, my log statements confirm that the new Web Service class is being loaded by a new DeploymentClassLoader. However, the previous verion of the class still exists in its DeploymentClassLoader and is still servicing client requests, the hot update hasn't worked. What am I doing wrong? My service is "application" scopedYes this is a know issues in application scope , this worked before nowit is not. So we will fix the issues before the next release.Deepal . Rgds, David.- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thank you!http://blogs.deepal.org-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]
[Un]marshalling rpc/encoded SOAP body in Axis2 web service
Hi, I'm developing a doc/literal Web service in Axis2 that needs to invoke a 3rd party Web service that uses the rpc/encoded style. From previous posts to this list it looks like my main options are: 1) Use Axis 1.4 to write a doc/literal service that is a wrapper around the 3rd party service, then invoke the wrapper from my Axis2 service. 2) Within my Axis2 web service use an instance of ServiceClient and deal directly with the OMElement instances that are the request and the response. In order to compare the alternatives I'm trying to understand how to approach option 2). I'm already using Axiom rather than any form of data binding, so am OK with that part of things, but have had no luck tracking down some means of [un]marshalling to/from the SOAP encoded body element other than rolling my own implementation. Does anyone have any pointers on how to do this? I realize that this isn't necessarily an Axis2 question, so if you want to point me at another list, thanks fine with me. Thanks, Dave -Original Message- From: Tian Chi [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2008 7:32 PM To: axis-user@ws.apache.org Subject: RE: [Axis2]Help! How to create a SOAP service using Axis2 in my own webapp? Thank you very much for your quick response, Ricky. I'll start building the war file you mentioned. Can I ask you two more questions about how to creat a SOAP service using Axis2? Basically my client will just send a XML file with data using the SOAP service I'll provide him (an URL). From the document, I think the service names will be defined in the services.xml and associate with a java class with all the functions (services) there. My question is how in my class program to get the XML file my client posted? I saw some example, it just pass the parameters using '?' http://my-service-URL/getPrice?book=1234 But using SOAP, my client's XML file will be posted to my service program, How to get the XML document sent from my client to my service? If it's too much to explain, do you know any online exmaples I can look into? My 2nd question is How to define the 'SOAPAction' in the service I'll create? thank you again, -tian --- On Tue, 10/14/08, Ricky Murphy [EMAIL PROTECTED] wrote: From: Ricky Murphy [EMAIL PROTECTED] Subject: RE: [Axis2]Help! How to create a SOAP service using Axis2 in my own webapp? To: axis-user@ws.apache.org Date: Tuesday, October 14, 2008, 11:51 AM Right, there will be a lot of jars. Actually, your web application will end up like what makes axis2.war eventually. you may remove all those admin related stuff from your app. Start with those made axis2.war, use all its directory structure and build your own app and embed axis2 inside. HTH -Ricky Date: Mon, 13 Oct 2008 17:38:14 -0700 From: [EMAIL PROTECTED] Subject: [Axis2]Help! How to create a SOAP service using Axis2 in my own webapp? To: axis-user@ws.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi all, Sorry previous message is still in wrong text format, this is it again. I'm a newbie on using Axis2. After reading through most of the documents on this site, I still couldn't find the answer I need. I'd really apreciate it if someone can help me on this. All Axis2 documents I read on this site are to build new web services/client using Axis2. Currently I have already a big web app in use and I need to add a SOAP service to my web app using Axis2. Is that doable? If yes, what are the steps to make that happen? Is it possible to copy axis2.war into my servlet container (Resin)(both 'axis2' and 'myWebapp' directories under webapps directory) , create a SOAP service in the axis2 app and then forward the request (by deinfing the 'ServiceClass' parameter in services.xml?) to my own web app to handle some complicated database processes? It seems to me it's not doable. Please don't laugh at me if this question is too sily. If the previous approach is not possible. The only other apprach I can think of is to embed Axis2 in my own webapp. In that case, do I need to copy all the needed Axis2 jar files to my own web app in WEB-INF/lib directory? If so, what are the needed jar files for a SOAP service? Basically the SOAP service is receive data from my client, save it to database and respond to client with the results. There are many jar files in Axis2. I just hope to skip some unnecessary Axis2 jar files to avoid overhead since my own web app is already very big. Besides the Axis2 jar files, what else needs to be done to embed a SOAP service in my own web app? I'd really really appreciate it if someone gives me some guidance or shed some lights on this. Hope to hear from you soon. thank you very much, -tian
RE: AXIS2/Java ICU BCEL Build Error
Oops! Sorry. -David -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2008 11:07 PM To: Apache AXIS C User List Subject: Re: AXIS2/Java ICU BCEL Build Error You are on the wrong list, you should be asking the Java list. Samisa... David Taylor (Lowell) wrote: I am trying to build AXIS2/Java version 1.4.1 but I am getting a build failure from the BCEL JarAnalyzer on the ICU 2.6.1 JAR file. I'd appreciate any suggestions on how to work past this. Thanks, -David K. Taylor [INFO] Executed tasks [INFO] [install:install] [INFO] Installing /cavins-vm1/Builds/cavins/dev/third_party_source/axis2-1.4.1/acopiaobj/a xis2-1.4.1-acopia01-build/modules/documentation/pom.xml to /home/cavins/.m2/repository/org/apache/axis2/documentation/1.4.1/documen tation-1.4.1.pom [INFO] [site:site {execution: default}] [INFO] Unable to load parent project from a relative path: Could not find the model file '/cavins-vm1/Builds/cavins/dev/third_party_source/axis2-1.4.1/acopiaobj/ axis2-1.4.1-acopia01-build/modules/parent/../pom.xml'. for project unknown [INFO] Parent project loaded from repository. [INFO] artifact org.apache.maven.skins:maven-default-skin: checking for updates from apache-ws-snapshots2 [INFO] artifact org.apache.maven.skins:maven-default-skin: checking for updates from tomcat-repository [INFO] artifact org.apache.maven.skins:maven-default-skin: checking for updates from eclipse-repo [INFO] Skipped About report, file index.html already exists for the English version. [INFO] Generating Plugin Management report. [INFO] Generating Mailing Lists report. [INFO] Generating Continuous Integration report. [INFO] Generating Dependency Management report. Downloading: http://ws.zones.apache.org/repository2/org/apache/httpcomponents/httpcor e-niossl/4.0-beta1/httpcore-niossl-4.0-beta1.pom Downloading: http://tomcat.apache.org/dev/dist/m2-repository/org/apache/httpcomponent s/httpcore-niossl/4.0-beta1/httpcore-niossl-4.0-beta1.pom Downloading: http://repo1.maven.org/eclipse/org/apache/httpcomponents/httpcore-niossl /4.0-beta1/httpcore-niossl-4.0-beta1.pom Downloading: https://maven-repository.dev.java.net/nonav/repository//org.apache.httpc omponents/poms/httpcore-niossl-4.0-beta1.pom Downloading: http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore-niossl/ 4.0-beta1/httpcore-niossl-4.0-beta1.pom [INFO] Generating Project License report. [INFO] Generating Project Team report. [INFO] Generating Source Repository report. [INFO] Generating Issue Tracking report. [INFO] Generating Project Summary report. [INFO] Generating Project Plugins report. [INFO] Generating Dependency Convergence report. [INFO] Generating Dependencies report. [WARNING] Unable to process class com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class in JarAnalyzer File /home/cavins/.m2/repository/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar org.apache.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 60 at org.apache.bcel.classfile.Constant.readConstant(Constant.java:146) at org.apache.bcel.classfile.ConstantPool.init(ConstantPool.java:67) at org.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java: 222) at org.apache.bcel.classfile.ClassParser.parse(ClassParser.java:136) at org.apache.maven.shared.jar.classes.JarClassesAnalysis.analyze(JarClasse sAnalysis.java:92) at org.apache.maven.report.projectinfo.dependencies.Dependencies.getJarDepe ndencyDetails(Dependencies.java:285) at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRe nderer.hasSealed(DependenciesRenderer.java:1278) at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRe nderer.renderSectionDependencyFileDetails(DependenciesRenderer.java:423) at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRe nderer.renderBody(DependenciesRenderer.java:268) at org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMa venReportRenderer.java:65) at org.apache.maven.report.projectinfo.DependenciesReport.executeReport(Dep endenciesReport.java:239) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenRep ort.java:90) at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(Repo rtDocumentRenderer.java:139) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Def aultSiteRenderer.java:269) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSi teRenderer.java:101) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:129) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:96) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
Basic Auth POST Sent Twice
I am using AXIS2/C 1.5.0 with ADB stubs generated by AXIS2/Java 1.4.1. I have the whttp:defaultMethod in my WSDL file binding set to POST which I verified is being used from tcpdump captures. But, I also noticed that the POST messages, which are not supposed to be interpreted as safe are always being sent twice. This is with Basic authentication. Is there a way to get POST messages with Basic authentication to only be sent once? Thanks, -David K. Taylor
Does Axis2 do anything with WS-Addressing and WS-Policy in WSDLs?
If I have a WSDL that references WS-Addressing and WS-Policy, using a policy expression that supposedly makes WS-Addressing required in the message, along with the wsam:Action attribute value, does Axis2 do anything useful with that information?
RE: How to Set Submission Addressing?
Thanks you very much for the quick response. I'll try that out. -David -Original Message- From: Manjula Peiris [mailto:[EMAIL PROTECTED] Sent: Tue 10/21/2008 9:58 PM To: Apache AXIS C User List Subject: Re: How to Set Submission Addressing? On Tue, 2008-10-21 at 18:03 -0400, David Taylor (Lowell) wrote: I have read that AXIS2/C supports both version 1.0 and the pre-1.0 submission version of WS-Addressing. However, I can't find instructions or an example of how to configure a client to use submission addressing. I would appreciate any help you can give me. Add the following code segment to your client code. axutil_property_t *property = NULL; property = axutil_property_create(env); axutil_property_set_scope(property, env, AXIS2_SCOPE_APPLICATION); axutil_property_set_value(property, env, AXIS2_WSA_NAMESPACE_SUBMISSION); axis2_options_set_property(options, env, AXIS2_WSA_VERSION, property); -Manjula Thanks, -David K. Taylor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to Set Submission Addressing?
That worked great! Thanks again, -David -Original Message- From: David Taylor (Lowell) [mailto:[EMAIL PROTECTED] Sent: Wed 10/22/2008 7:27 AM To: Apache AXIS C User List Subject: RE: How to Set Submission Addressing? Thanks you very much for the quick response. I'll try that out. -David -Original Message- From: Manjula Peiris [mailto:[EMAIL PROTECTED] Sent: Tue 10/21/2008 9:58 PM To: Apache AXIS C User List Subject: Re: How to Set Submission Addressing? On Tue, 2008-10-21 at 18:03 -0400, David Taylor (Lowell) wrote: I have read that AXIS2/C supports both version 1.0 and the pre-1.0 submission version of WS-Addressing. However, I can't find instructions or an example of how to configure a client to use submission addressing. I would appreciate any help you can give me. Add the following code segment to your client code. axutil_property_t *property = NULL; property = axutil_property_create(env); axutil_property_set_scope(property, env, AXIS2_SCOPE_APPLICATION); axutil_property_set_value(property, env, AXIS2_WSA_NAMESPACE_SUBMISSION); axis2_options_set_property(options, env, AXIS2_WSA_VERSION, property); -Manjula Thanks, -David K. Taylor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to Set Submission Addressing?
I have read that AXIS2/C supports both version 1.0 and the pre-1.0 submission version of WS-Addressing. However, I can't find instructions or an example of how to configure a client to use submission addressing. I would appreciate any help you can give me. Thanks, -David K. Taylor
Versioning a service deployed on Axis2
Hi, Is there a recommended or commonly used approach to versioning a service (SOAP, doc/literal) that is to be deployed on Axis2? I'm trying to provide some means of not breaking consumers of an existing service if I have to deploy a new version that isn't backwards compatible. We're using AXIOM / no data binding for the service consumers and producers. In a lot of cases I think I'll just want to move from deploying MyService_V1.aar to deploying MyService_V2.aar. V1 can stay deployed on the Axis2 server until the consumers have all moved on to V2. I've been looking at including version information in the target namespace specified in the WSDL for the service as a mechanism for consumers to specify which version of the service they want to use. I'm struggling to understand what my options are for deploying the old and new versions of my service. Specifically: - I don't seem to need to deploy MyService_V1 and MyService_V2 on different endpoint addresses, but - I assume I do have to give them different names in the service element of the wsdl. Is this correct? Finally, is there any way of using a single endpoint and service name that accepts requests from consumers that may have different XML namespaces depending on the version of the service they are using? Thanks, Dave
RE: Versioning a service deployed on Axis2
Wouldn't it be possible to create a new schema namespace for the next version of a webservice, and then manage the changes internally in one web service? So your first version of the web service might have a schema namespace of: wsdl:types s:schema elementFormDefault=qualified targetNamespace=http://xxx.com/webservices/V1; . The process of creating the next version would involve creating new versions of each datatype which changes, or API call (if parameter list changes), and defining these new types, APIs, in a new namespace in the same WSDL file. s:schema elementFormDefault=qualified targetNamespace=http://xxx.com/webservices/V2; So, the V1 schema of your service might define XXXType, and the V2 schema would define an XXXType2 type to represent XXXType with changes. Your web service would need to handle both. Obviously, this could get messy over time, but guidelines that manage the deprecation and removal of support for past versions could be used to handle that. -Original Message- From: Deepal jayasinghe [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 4:42 PM To: axis-user@ws.apache.org Subject: Re: Versioning a service deployed on Axis2 Barry Alexander wrote: Other than you're on your own advice, can you provide some guidelines or best practices regarding versioning? The only way to get the service version support in Axis2 is to deploy two different services. And then use their service addresses to differentiate the two services. If we use this way then the service version will be automatically visible to outside as well. So for example if you want to have two version of foo service , then you need to have two different aar files in the repository , called (eg.) foo-1.aar and foo-2.aar, in addition to that remember the service name of the two services.xml file should also be different. In other word those will be two different services in Axis2. If you want to have the client transparent version support then one solution could be to write a handler which does the version based dispatching. Meaning when a client send a request it will send the request to the latest service. -Deepal I thought this was an excellent question and currently of hot discussion with my co-workers. Some further questions: Should message version be embedded as part of SOAP headers using WS-Addressing standards? Or part of the wsdl? Can end point resolution be used during in-flow phases/handlers to route services of various versions end points? Should versioning be handled as part of a 'mediator'? On Tue, Oct 21, 2008 at 10:12 AM, Deepal jayasinghe [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Howell, David wrote: Hi, Is there a recommended or commonly used approach to versioning a service (SOAP, doc/literal) that is to be deployed on Axis2? I'm trying to provide some means of not breaking consumers of an existing service if I have to deploy a new version that isn't backwards compatible. We're using AXIOM / no data binding for the service consumers and producers. Actually we had some discussion on how to do the version support in Axis2 (for service) , but we have not implement that. So only option is to manage service yourself. In a lot of cases I think I'll just want to move from deploying MyService_V1.aar to deploying MyService_V2.aar. V1 can stay deployed on the Axis2 server until the consumers have all moved on to V2. I've been looking at including version information in the target namespace specified in the WSDL for the service as a mechanism for consumers to specify which version of the service they want to use. I'm struggling to understand what my options are for deploying the old and new versions of my service. Specifically: - I don't seem to need to deploy MyService_V1 and MyService_V2 on different endpoint addresses, but - I assume I do have to give them different names in the service element of the wsdl. Is this correct? Finally, is there any way of using a single endpoint and service name that accepts requests from consumers that may have different XML namespaces depending on the version of the service they are using? Thanks, Dave -- Thank you! http://blogs.deepal.org - To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Thank you! http://blogs.deepal.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Maven2 and Axis2
Hello all, I am thinking on migrating the project management of my webservices projects from ant to maven2. Does anyone have experience with maven2 and axis2? I can't find an archetype for WebServices (server-side) using axis2. Should I use a standard webapp archetype? What I found is a plugin that generates AAR files (http://ws.apache.org/axis2/tools/1_4_1/maven-plugins/maven-aar-plugin.html) and a code generation plugin (http://ws.apache.org/axis2/tools/1_4_1/maven- plugins/maven-wsdl2code-plugin.html) Thank you -- David Ojeda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 and Axis2
Hello Deepal, Sorry I did not explained myself... I want to accomplish two things: 1. generate a project structure for ws development (using a maven archetype perhaps) 2. automatically generate sources, compile classes, pack AAR, pack a WAR so I can deploy this WAR in a webserver or test it with jetty. Thank you On Thursday 16 October 2008 14:18:22 Deepal jayasinghe wrote: Hello all, I am thinking on migrating the project management of my webservices projects from ant to maven2. Does anyone have experience with maven2 and axis2? I can't find an archetype for WebServices (server-side) using axis2. Should I use a standard webapp archetype? What I found is a plugin that generates AAR files (http://ws.apache.org/axis2/tools/1_4_1/maven-plugins/maven-aar-plugin.ht ml) and a code generation plugin (http://ws.apache.org/axis2/tools/1_4_1/maven- plugins/maven-wsdl2code-plugin.html) Those plugins are to create service and module archives. But I do not fully understand your problem , what really you trying to do ? Thank you! Deepal Thank you -- David Ojeda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 and Axis2
On Thursday 16 October 2008 15:38:44 Deepal Jayasinghe wrote: Sorry I did not explained myself... No problem I want to accomplish two things: 1. generate a project structure for ws development (using a maven archetype perhaps) For that I think you need to read maven2 user guide. Let me rephrase this part: Usually, when starting a new project, I use mvn archetype:create \ -DarchetypeGroupId=somegroup \ -DarchetypeArtifactId=someartifact \ -DarchetypeVersion=someversion \ -DgroupId=mygroupid\ -DartifactId=myartifact And this creates a directory with a pom.xml, src, etc that depends on the archetype. For example, for struts2, it creates a basic src/resources/struts.xml and many other config files used by struts2 Whenever I create a new WS developing project, I usually unpack the axis2 war, because it has the web.xml with the appropiate servlet configuration. I was wondering if there is an archetype for axis2, so the developer doesn't have to create an conf/axis2.xml, web.xml, etc. 2. automatically generate sources, Axis2 does that , have a look at integration module of Axis2 (I mean pom.xml) compile classes, Same integration module pack AAR, pack a WAR so I There is a maven war plugin , look at Axis2 distribution module. Deepal can deploy this WAR in a webserver or test it with jetty. Thank you On Thursday 16 October 2008 14:18:22 Deepal jayasinghe wrote: Hello all, I am thinking on migrating the project management of my webservices projects from ant to maven2. Does anyone have experience with maven2 and axis2? I can't find an archetype for WebServices (server-side) using axis2. Should I use a standard webapp archetype? What I found is a plugin that generates AAR files (http://ws.apache.org/axis2/tools/1_4_1/maven-plugins/maven-aar-plugin. ht ml) and a code generation plugin (http://ws.apache.org/axis2/tools/1_4_1/maven- plugins/maven-wsdl2code-plugin.html) Those plugins are to create service and module archives. But I do not fully understand your problem , what really you trying to do ? Thank you! Deepal Thank you -- David Ojeda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 and Axis2
Hello, I found a thread where someone asked this in 2006 but he did not report his progress... http://markmail.org/message/rq6ldgrwjqkgrdya I even found your article Deepal: http://www.developer.com/java/ent/article.php/10933_3777111_1 After more research, I think there is no archetype. The best thing I can do is use a web application structure and embed axis2. Anyway, I will try this and then the plugins. I'll report back Thanks On Thursday 16 October 2008 17:12:50 David Ojeda wrote: On Thursday 16 October 2008 15:38:44 Deepal Jayasinghe wrote: Sorry I did not explained myself... No problem I want to accomplish two things: 1. generate a project structure for ws development (using a maven archetype perhaps) For that I think you need to read maven2 user guide. Let me rephrase this part: Usually, when starting a new project, I use mvn archetype:create \ -DarchetypeGroupId=somegroup \ -DarchetypeArtifactId=someartifact \ -DarchetypeVersion=someversion \ -DgroupId=mygroupid\ -DartifactId=myartifact And this creates a directory with a pom.xml, src, etc that depends on the archetype. For example, for struts2, it creates a basic src/resources/struts.xml and many other config files used by struts2 Whenever I create a new WS developing project, I usually unpack the axis2 war, because it has the web.xml with the appropiate servlet configuration. I was wondering if there is an archetype for axis2, so the developer doesn't have to create an conf/axis2.xml, web.xml, etc. 2. automatically generate sources, Axis2 does that , have a look at integration module of Axis2 (I mean pom.xml) compile classes, Same integration module pack AAR, pack a WAR so I There is a maven war plugin , look at Axis2 distribution module. Deepal can deploy this WAR in a webserver or test it with jetty. Thank you On Thursday 16 October 2008 14:18:22 Deepal jayasinghe wrote: Hello all, I am thinking on migrating the project management of my webservices projects from ant to maven2. Does anyone have experience with maven2 and axis2? I can't find an archetype for WebServices (server-side) using axis2. Should I use a standard webapp archetype? What I found is a plugin that generates AAR files (http://ws.apache.org/axis2/tools/1_4_1/maven-plugins/maven-aar-plugi n. ht ml) and a code generation plugin (http://ws.apache.org/axis2/tools/1_4_1/maven- plugins/maven-wsdl2code-plugin.html) Those plugins are to create service and module archives. But I do not fully understand your problem , what really you trying to do ? Thank you! Deepal Thank you -- David Ojeda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: When do cleanup functions need to be called?
On Mon, Oct 6, 2008 at 5:27 PM, Mel T [EMAIL PROTECTED] wrote: I have the same problem as described here. Upgrading to 1.4.1 has reduced the leak. I am now going to try the pool of stubs as well for the remaining. Dave, is your client running in Tomcat ? My problem only occurs when I am accessing the WS using a stub from within the same tomcat application. Yes, my client is running in Tomcat, Tomcat 5.5.27 to be exact. I wonder if that is somehow also contributing to the issue? -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error when generating the proxies using xmlbeans
'. Retrieving document at 'XSpaService.wsdl', relative to 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving schema wsdl:imported from 'XSpaService.xsd', relative to 'file:/D:/oa/Zzz2/Wsdl_New/XSpaService.wsdl'. Retrieving schema at 'XReservationService.xsd', relative to 'file:/D:/oa/Zzz2/Wsdl_New/XSpaService.xsd'. Retrieving document at 'XCustomer.wsdl', relative to 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving document at 'XLocation.wsdl', relative to 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving schema wsdl:imported from 'XLocationObjects.xsd', relative to 'file:/D:/oa/Zzz2/Wsdl_New/XLocation.wsdl'. Retrieving document at 'XTee.wsdl', relative to 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving document at 'XDiningService.wsdl', relative to 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving schema wsdl:imported from 'XDiningService.xsd', relative to 'file:/D:/oa/Zzz2/Wsdl_New/XDiningService.wsdl'. Retrieving schema at 'XReservationService.xsd', relative to 'file:/D:/oa/Zzz2/Wsdl_New/XDiningService.xsd'. [INFO] A SOAP port was not found - picking a random port! [INFO] Resolving schema with publicId [http://schemas.zzz.com/OpenActivity/1/0/Reservation/] and systemId [XReservationService.xsd] Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationE ngine.java:271) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansEx tension.java:126) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationE ngine.java:224) ... 2 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansEx tension.java:115) ... 3 more Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: D:\oa\Zzz2\Wsdl_New\XReservationService.xsd:22:3: error: sch-props-correct.2: Duplicate global type: [EMAIL PROTECTED]://schemas.zzz.com/OpenActivity/1/0/Reservation/ (Original global type found in file: null) at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerati onUtility.java:325) ... 8 more Caused by: org.apache.xmlbeans.XmlException: D:\oa\Zzz2\Wsdl_New\XReservationService.xsd:22:3: error: sch-props-correct.2: Duplicate global type: [EMAIL PROTECTED]://schemas. zzz.com/OpenActivity/1/0/Reservation/ (Original global type found in file: null) at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaType SystemCompiler.java:225) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25) Muhammed SOYER I Software Engineer I MICROS Systems, Inc. I 2640 Golden Gate Parkway, Suite 211 I Naples, FL 34105 I (239) 430-4143 * I (239) 643-7911 * I [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]* I www.micros.comhttp://www.micros.com/ -- Ing. David Ojeda Integra Consultores Caracas, Venezuela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error when generating the proxies using xmlbeans
Hello Muhammed, I am not sure about this. When I faced this problem I wasn't sure which files should be deleted. I didn't find any docs about this but this -Ewdc was crucial for my project (generation time was 5min without it and 10seconds with it). The main problem was that there were duplicate classes in the jar generated by scomp and the classes generated by wsdl2java. What I did was erase everything but the ones I wrote in my last message[*] Then I encountered more problems since I now needed the soap, wsdl and xml xsd classes (Apparently the dummy classes of these xsd were generated by wsdl2java... but I did not have the implementation classes). So my solution was generating these classes with scomp as well. I am enclosing these xsd in case you need them. Hope it helps, but sorry I do not know the answer to your question [*] I forgot that I must delete also schemaorg_apache_xmlbeans/** On Wednesday 01 October 2008 10:16:31 Soyer, Muhammed A. wrote: Hi David, Thanks for your reply. It says that it will generate a dummy schema but when I look at the generated files they look legitimate, which files should be dummy? Thanks -Original Message- From: David Ojeda [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2008 10:08 AM To: axis-user@ws.apache.org Subject: Re: Error when generating the proxies using xmlbeans In my experience, I have to delete everything except the skeleton, message receiver, and fault classes if any. I do this with an ant task, so maybe this will help: java classname=org.apache.axis2.wsdl.WSDL2Java failonerror=true fork=true classpath refid=axis2.classpath/ classpath location=etc/axis2log4j/ arg value=-d/ arg value=xmlbeans/ arg value=-g/ arg value=-ss/ arg value=-Ewdc/ arg value=-xsdconfig/ arg file=xsd/NStoPkg.xsdconfig/ arg value=-sd/ arg value=-o/ arg file=output/${ws.name}/ arg value=--noBuildXML/ arg value=-uri/ arg file=wsdl/${ws.name}.wsdl/ /java delete includeemptydirs=true fileset dir=output/${ws.name}/src include name=**/*/ exclude name=**/.svn/**/ exclude name=**/*Skeleton.java/ exclude name=**/*MessageReceiverInOut.java/ exclude name=**/*Fault.java/ /fileset /delete Note that all my fault classes are named *Fault, so their classes are not deleted. On Wednesday 01 October 2008 08:32:29 Soyer, Muhammed A. wrote: In able to continue my work I tried -Ewdc (for xmlbeans) options of wsdl2java, and I could generate the files using xmlbens scomp. Now which files should I replace ? Thanks -- -Ewdc (for xmlbeans) Generate code with a dummy schema. if someone use this option they have to generate the xmlbeans code seperately with the scomp command comes with the xmlbeans distribution and replace the Axis2 generated classes with correct classes From: Soyer, Muhammed A. [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2008 6:01 PM To: axis-user@ws.apache.org Subject: Error when generating the proxies using xmlbeans Hi, I have a WSDL file which imports other WSDL files and they import XSD files. Looks like one of the XSD is being referred multiple times. I guess normally this shouldn't be an issue but when I use the xmlbeans binding I am getting an error saying that I have Duplicate global type . When I use the default binding ADB I don't get an error message but I can't use ADB because of its limitations for inherited complex types. I am using axis2 1.4.1 . Do you have any suggestions to work around the issue? Thanks Using JAVA_HOME:d:\jdev\10g10134\jdk Retrieving document at 'CentralReservation.wsdl'. Retrieving document at 'XReservationService.wsdl', relative to 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving schema wsdl:imported from 'XReservationService.xsd', relative to 'file:/D:/oa/Zzz2/Wsdl_New/XReservationService.wsdl'. Retrieving document at 'XClassService.wsdl', relative to 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving schema wsdl:imported from 'XClassService.xsd', relative to 'file:/D:/oa/Zzz2/Wsdl_New/XClassService.wsdl'. Retrieving schema at 'XReservationService.xsd', relative to 'file:/D:/oa/Zzz2/Wsdl_New/XClassService.xsd'. Retrieving document at 'XSpaService.wsdl', relative to 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving schema wsdl:imported from 'XSpaService.xsd', relative to 'file:/D:/oa/Zzz2/Wsdl_New/XSpaService.wsdl'. Retrieving schema at 'XReservationService.xsd', relative to 'file:/D:/oa/Zzz2
Re: axis/tomcat restart problem
Hello, What do you mean by every time tomcat is restarted and This doesnt happen when i restart my local tomcat ? I am guessing that local tomcat is a tomcat instance installed manually in your home and there is another instance installed by portage/emerge ? On Friday 26 September 2008 07:27:55 srdjan wrote: Yes,but axis is not standalone server,tomcat is,and it recognizes axis as some sort of servlet. I am deploying my service on axis using wsdd.My service is simply a java class(+ a client for another service) ,not a servlet.I can deploy it on tomcat as war,but it wont work,because its not a servlet and it uses axis. Perhapse I am mistaken on this, if someone knows a way i can do this, i will gladly listen. Again,my problem is not in deploying my service,my problem is that my service disapears( its wsdl is not visible on ..:8080/axis/servlet/AxisServlet) every time tomcat is restarted. This doesnt happen when i restart my local tomcat. the worst thing is i can't seem to find a similar situation anywhere.. thanks for your effort David David Ojeda wrote: Hello, I don't think that your problem is related to the way you installed axis. I believe most people don't use that particular flavor of linux nor install axis using emerge, rpm, apt-get, pacman, etc. IMO most people just deploy the axis war in tomcat or deploy a customized war with the axis content. In my case, I create a war with the axis content, the webservices classes, resources, jars and aars, and the appropiate axis configuration. Hope it helps. On Thursday 25 September 2008 12:06:34 srdjan wrote: hi, i have recently succesfully deployed my service on axis,however when i restart tomcat on the remote server my service is somehow lost- its wsdl is no longer visible.all the class files of the service are in place,and everything is ok with service itself( i have tested it on my local tomcat). tomcat is on the remote server which runs on linux gentoo,and i have developed my service under windows,but i seriously doubt that the problem lays there. could the problem be in that i haven't actualy instaled axis(using the linux emerge command) but have just copied axis/webaps in tomcat/webaps? i have lost entire blody day trying to figure this out. any sugestions will be greatly appreciated. thanks -- Ing. David Ojeda Integra Consultores Caracas, Venezuela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ing. David Ojeda Integra Consultores Caracas, Venezuela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How disable auto converting date
I've had some experience with this kind of date-issues, I would recommend changing the wsdl or xsd using xs:dateTime as the type for this data. This way you could use a Calendar. Calendars manage the timezone easily and correctly. On Friday 26 September 2008 01:04:23 Eugeny Bakun wrote: Hello, all! I have some trouble, in my project I use axis for transport data between to user wich work in different time zone. I sent java.util.Date object and it convert to current timezone, how I can disable what? Me need : if I send 24/09/2008 00:00 - 24/09/2008 00:00 now if I send 24/09/2008 00:00 - 23/09/2008 16:00 -- Ing. David Ojeda Integra Consultores Caracas, Venezuela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis/tomcat restart problem
Ok then... I know two ways of deploying a service with wsdd 1. Deploying the axis war with your ws classes and then using the admin servlet to deploy the servlet using the wsdd. This modifies the deployed server-config.wsdd 2. Using org.apache.axis.utils.Admin in order to create and update a server- config.wsdd and then deploy the axis war, ws classes and server-config.wsdd Which one do you do? (Maybe a third one that I do not know) If you are using (1), I would check if the server-config.wsdd is being replaced when restarting tomcat Some other thoughts: - If you are using war files and tomcat is not configured to automatically explode wars, I enable it and try again. Hope my ideas help a bit, it has been a while since I use gentoo and axis1. Now I use arch or ubuntu and axis2 :) On Friday 26 September 2008 10:18:28 srdjan wrote: I'm sorry,I should have been more concise.I mean I have tested my service on the tomcat instance which is on my own computer and it works fine.when I stop and then start the tomcat,my service's wsdl is still visible on the http://localhost:8080/axis/servlet/AxisServlet url. This is not the case with the tomcat which is located on the remote server machine which runs on linux gentoo. when i restart that tomcat,my own service is no longer visible on the ...8080/axis/servlet/AxisServlet url. and yes,this instance of tomcat is instaled using emerge command. David Ojeda wrote: Hello, What do you mean by every time tomcat is restarted and This doesnt happen when i restart my local tomcat ? I am guessing that local tomcat is a tomcat instance installed manually in your home and there is another instance installed by portage/emerge ? On Friday 26 September 2008 07:27:55 srdjan wrote: Yes,but axis is not standalone server,tomcat is,and it recognizes axis as some sort of servlet. I am deploying my service on axis using wsdd.My service is simply a java class(+ a client for another service) ,not a servlet.I can deploy it on tomcat as war,but it wont work,because its not a servlet and it uses axis. Perhapse I am mistaken on this, if someone knows a way i can do this, i will gladly listen. Again,my problem is not in deploying my service,my problem is that my service disapears( its wsdl is not visible on ..:8080/axis/servlet/AxisServlet) every time tomcat is restarted. This doesnt happen when i restart my local tomcat. the worst thing is i can't seem to find a similar situation anywhere.. thanks for your effort David David Ojeda wrote: Hello, I don't think that your problem is related to the way you installed axis. I believe most people don't use that particular flavor of linux nor install axis using emerge, rpm, apt-get, pacman, etc. IMO most people just deploy the axis war in tomcat or deploy a customized war with the axis content. In my case, I create a war with the axis content, the webservices classes, resources, jars and aars, and the appropiate axis configuration. Hope it helps. On Thursday 25 September 2008 12:06:34 srdjan wrote: hi, i have recently succesfully deployed my service on axis,however when i restart tomcat on the remote server my service is somehow lost- its wsdl is no longer visible.all the class files of the service are in place,and everything is ok with service itself( i have tested it on my local tomcat). tomcat is on the remote server which runs on linux gentoo,and i have developed my service under windows,but i seriously doubt that the problem lays there. could the problem be in that i haven't actualy instaled axis(using the linux emerge command) but have just copied axis/webaps in tomcat/webaps? i have lost entire blody day trying to figure this out. any sugestions will be greatly appreciated. thanks -- Ing. David Ojeda Integra Consultores Caracas, Venezuela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ing. David Ojeda Integra Consultores Caracas, Venezuela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ing. David Ojeda Integra Consultores Caracas, Venezuela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis/tomcat restart problem
Hello, I don't think that your problem is related to the way you installed axis. I believe most people don't use that particular flavor of linux nor install axis using emerge, rpm, apt-get, pacman, etc. IMO most people just deploy the axis war in tomcat or deploy a customized war with the axis content. In my case, I create a war with the axis content, the webservices classes, resources, jars and aars, and the appropiate axis configuration. Hope it helps. On Thursday 25 September 2008 12:06:34 srdjan wrote: hi, i have recently succesfully deployed my service on axis,however when i restart tomcat on the remote server my service is somehow lost- its wsdl is no longer visible.all the class files of the service are in place,and everything is ok with service itself( i have tested it on my local tomcat). tomcat is on the remote server which runs on linux gentoo,and i have developed my service under windows,but i seriously doubt that the problem lays there. could the problem be in that i haven't actualy instaled axis(using the linux emerge command) but have just copied axis/webaps in tomcat/webaps? i have lost entire blody day trying to figure this out. any sugestions will be greatly appreciated. thanks -- Ing. David Ojeda Integra Consultores Caracas, Venezuela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: When do cleanup functions need to be called?
On Tue, Sep 23, 2008 at 5:16 AM, Matt Friedman [EMAIL PROTECTED] wrote: When you say: Try 1.4.1. It's much better than 1.4 with this particular memory leak., I take it you mean it is partially fixed, but not entirely fixed in 1.4.1. Is that correct? Did your pool of stubs continue to work for you? My goal is to completely eliminate any mem leaks from our app. Yes, it has continued to work for me, and I don't know of any memory leaks. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Greetings all,
Greetings all, First of all my hat is off to the AXIS group. This is a fantastic tool. My class works perfect as a web service until I try to instantiate a threaded class. Is there a particular way to do this within Axis? My DocumentService class (and internal thread) works perfectly when run as an application. code import java.util.*; import com.custom.classes.*; /** * Class to interact as a web service */ public class DocumentService { // Custom classes private DocumentBroker m_broker; private DocumentAssemblyCreater m_assemblyCreater; /** * Initialize this object */ public DocumentumService() throws Exception { this.m_broker = new com.custom.classes.DocumentBroker(); this.m_assemblyCreater = new DocumentAssemblyCreater(); // Spin the assembly creater as a separate thread this.m_assemblyCreater.start(); } /** * Create an assembly object from a virtual document * We will get back a process token (assembling takes some time to run) */ public String getProcessToken(String username, String password, String documentBase, String publicationId) throws Exception { // Let the DocumentAssemblyCreater handle creating the assembly return this.m_assemblyCreater.getProcessToken(username, password, documentBase, publicationId); } /** * Get the completed document * Pass in the token. Get the publication as a string or null if it has not processed yet. */ public String getDocument(String processToken) throws Exception { // Let the DocumentAssemblyCreater handle creating the assembly return this.m_assemblyCreater.getDocument(processToken); } } /code - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using an AXIS2 client on Oracle Application Server
Hello, You should configure your deployment to prefer web-inf classes rather than classes of OAS. I am not sure how this is configured but I think that it could be the solution you are looking for On Wednesday 20 August 2008 02:04:53 pm Elton Kong wrote: Hi, sorry I can't offer any help on this but I too had the same issue when trying to do this and would love to learn the fix, thanks! Elton Patrick Houbaux wrote: Erratum: the correct version of OAS I'm using is 10.1.3.1.0 Patrick. Patrick Houbaux wrote: Hi all, I have generated a client stubs with AXIS2 1.4 (using xmlbeans) which work great when I use it from a java standalone application. I'm also calling the same piece of code from a jsp which is part of a web application packaged in .war file and deployed on an Oracle Application Server 10.3.1.x using the admin console. When I hit this jsp page I'm getting the following exception for which I'm currently having a hard time to understand why: java.lang.NullPointerException org.apache.xmlbeans.impl.store.Locale.isXmlns(Locale.java:2944) org.apache.xmlbeans.impl.store.Xobj.isXmlns(Xobj.java:132) org.apache.xmlbeans.impl.store.Cur.isXmlns(Cur.java:172) org.apache.xmlbeans.impl.store.Locale.getAllNamespaces(Locale.java:2304) org.apache.xmlbeans.impl.store.Xobj.copy_contents_from(Xobj.java:2295) org.apache.xmlbeans.impl.values.XmlObjectBase.setterHelper(XmlObjectBase .java:1907) org.apache.xmlbeans.impl.values.XmlObjectBase.set(XmlObjectBase.java:195 4) org.plcs.www.headers.impl.BusinessObjectFilterImpl.setPartCharacterizati on(Unknown Source) [...] The war file contains all the axis-bin jars in the WEB-INF/lib folder. Does anybody knows if there is a conflict between one (or more) of the axis jars and the one in OC4J ? If yes, how can I solve that? If no, what could be the root cause of that kind of problem? Thanks for any help on this. Cheers, Patrick. This message contains information that may be privileged or confidential and is the property of Eurostep Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ing. David Ojeda Integra Consultores Caracas, Venezuela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using an AXIS2 client on Oracle Application Server
I'm very glad to help! On Wednesday 20 August 2008 05:21:12 pm Patrick Houbaux wrote: Many thanks David ... this is the solution! In the deployment scenario (the 3rd stage when deploying a war in OAS), we need to specify to search the local classes first. Here is the extract from the OAS docs: Specifying search-local-classes-first at Deployment Time The following example illustrates how to set the search-local-classes-first attribute in the orion-web.xml file generated for the Web module at deployment time, using the Application Server Control Console. 1.Select ApplicationsDeploy to launch the Application Server Control Console deployment wizard. 2.Supply the path to the application in the first page of the wizard. 3.Specify the application name and supply any context URI mappings in the second page. 4.Click Configure Class Loading in the third page of the wizard (Deploy: Deployment Settings). 5.Under Configure Web Module Class Loaders, check the Search Local Classes First checkbox next to the name of the Web module containing the local JAR file to use. 6.Optionally click the Save Deployment Plan button, and save the plan for reuse. Thanks again for having put me on track on this. Cheers, Patrick. David Ojeda wrote: Hello, You should configure your deployment to prefer web-inf classes rather than classes of OAS. I am not sure how this is configured but I think that it could be the solution you are looking for On Wednesday 20 August 2008 02:04:53 pm Elton Kong wrote: Hi, sorry I can't offer any help on this but I too had the same issue when trying to do this and would love to learn the fix, thanks! Elton Patrick Houbaux wrote: Erratum: the correct version of OAS I'm using is 10.1.3.1.0 Patrick. Patrick Houbaux wrote: Hi all, I have generated a client stubs with AXIS2 1.4 (using xmlbeans) which work great when I use it from a java standalone application. I'm also calling the same piece of code from a jsp which is part of a web application packaged in .war file and deployed on an Oracle Application Server 10.3.1.x using the admin console. When I hit this jsp page I'm getting the following exception for which I'm currently having a hard time to understand why: java.lang.NullPointerException org.apache.xmlbeans.impl.store.Locale.isXmlns(Locale.java:2944) org.apache.xmlbeans.impl.store.Xobj.isXmlns(Xobj.java:132) org.apache.xmlbeans.impl.store.Cur.isXmlns(Cur.java:172) org.apache.xmlbeans.impl.store.Locale.getAllNamespaces(Locale.java:2304) org.apache.xmlbeans.impl.store.Xobj.copy_contents_from(Xobj.java:2295) org.apache.xmlbeans.impl.values.XmlObjectBase.setterHelper(XmlObjectBase .java:1907) org.apache.xmlbeans.impl.values.XmlObjectBase.set(XmlObjectBase.java:195 4) org.plcs.www.headers.impl.BusinessObjectFilterImpl.setPartCharacterizati on(Unknown Source) [...] The war file contains all the axis-bin jars in the WEB-INF/lib folder. Does anybody knows if there is a conflict between one (or more) of the axis jars and the one in OC4J ? If yes, how can I solve that? If no, what could be the root cause of that kind of problem? Thanks for any help on this. Cheers, Patrick. -- Ing. David Ojeda Integra Consultores Caracas, Venezuela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Inherited object serialized in reverse order by server, when subclass contains an array.(Axis2-3956)
Personally, I would really like to see https://issues.apache.org/jira/browse/AXIS2-3956; fixed. The auto-generation/deployment of a web service (via scripts, etc) is much easier to implement when the service is defined by a POJO, and inheritance is an important feature. We have gotten inheritance to work in our main web service offering by developing the service WSDL-first. Then, if you use wsdl2java to create server side and client stubs, the serialization problem does not occur. The POJO problem seems to be related to the fact that the client stubs (generated by wsdl2java) and the server side POJO serialization do not agree on the order of the serialization of the array field in the subclass. Basically, there are two different serialization mechanisms, which are at odds. Dave K -Original Message- From: balaji hari [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2008 3:59 PM To: axis-user@ws.apache.org Subject: RE: Inherited object serialized in reverse order by server, when subclass contains an array. Hi, We are facing a similar issue. Did you get a chance to have a workaround for this? The issue in jira is un-assigned. https://issues.apache.org/jira/browse/AXIS2-3956 The type hierarchy SubjectDTO(caseSensitive, frequency, ignoreWhiteSpace, key) | SubjectCollectionDTO (collection, contiguous, ordered) | SubjectLinesDTO The Response XML: ns1:subject xsi:type=com.bmc.bcan.dto.SubjectLinesDTO ns1:collectionaaa new-model/ns1:collection ns1:collection aaa authentication login default group enable /ns1:collection ns1:collection aaa authentication login line /ns1:collection ns1:contiguousfalse/ns1:contiguous ns1:orderedfalse/ns1:ordered ns1:caseSensitivefalse/ns1:caseSensitive ns1:frequency2/ns1:frequency ns1:ignoreWhitespacetrue/ns1:ignoreWhitespace ns1:key xsi:type=com.bmc.bcan.dto.KeyDTO ns1:keyString458169663-8/ns1:keyString /ns1:key /ns1:subject Axis2 ADB error: Exception in thread main org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement collection at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417) at com.bmc.bcan.ws.service.RuleServiceStub.fromOM(RuleServiceStub.java:1038 ) at com.bmc.bcan.ws.service.RuleServiceStub.getRule(RuleServiceStub.java:662 ) at com.bmc.bcan.ws.service.RuleServiceStub.main(RuleServiceStub.java:615) Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement collection at com.bmc.bcan.dto.SubjectDTO$Factory.parse(SubjectDTO.java:827) at com.bmc.bcan.dto.RuleDTO$Factory.parse(RuleDTO.java:2059) at com.bmc.bcan.ws.service.GetRuleResponse$Factory.parse(GetRuleResponse.ja va:422) at com.bmc.bcan.ws.service.RuleServiceStub.fromOM(RuleServiceStub.java:1027 ) ... 2 more Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement collection at com.bmc.bcan.dto.SubjectDTO$Factory.parse(SubjectDTO.java:823) ... 5 more Right now we are able to get this working using xmlbeans databinding in the client side. Any pointers / workaround highly appreciated. Balaji Kraus, David wrote: To further clarify: serialization code provided on the server side by Axis2, based on my POJO and its supporting parameter/return objects, serializes a polymorphic object subclass fields first, followed by superclass fields, when the subclass contains an array. The client code generated from the WSDL of this POJO based service (using wsdl2java-ADB), serializes the polymorphic object in the reverse order with superclass fields preceding subclass fields; and also expects that polymorphic objects received from the server follow this same order. Since the server serializes in the reverse order unexpected subelement errors occur. I am going to assume that this is a bug since I don't see this behavior when the subclass does not contain an array. Dave Kraus From: Kraus, David Sent: Monday, July 28, 2008 5:49 PM To: axis-user@ws.apache.org Subject: Inherited object serialized in reverse order by server, when subclass contains an array. I deployed a simple web service as a POJO to both axis2 1.2 and axis2 1.4. This service basically echoes back an object which demonstrates inheritance. In this example, MWSAttributeObjectInfo is a subclass of MWSObjectInfo. To create the client I used wsdl2java against the deployed service. When I invoked the echoAttrObjInfo method, which simply passes in MWSAttributeObjectInfo
Adding header elements to a response
=http://www.openuri.org/ws/iterauto/WSIterautoID/getIterautoID; / wsdl:input soap:body use=literal / /wsdl:input wsdl:output soap:header use=literal part=hasMoreElementsHeader message=tns:hasMoreElementsHeader/ soap:body use=literal / /wsdl:output wsdl:fault name=WSIterautoIDException soap:fault name=WSIterautoIDException use=literal/ /wsdl:fault /wsdl:operation /wsdl:binding wsdl:service name=WSIterautoID wsdl:port name=WSIterautoID binding=tns:WSIterautoIDSOAP soap:address location=http://10.21.17.196:8080/WebServices/services/WSIterautoID; / /wsdl:port /wsdl:service /wsdl:definitions -- Ing. David Ojeda Integra Consultores Caracas, Venezuela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding header elements to a response
I forgot to mention that I am using Axis 2 1.4 On Wednesday 13 August 2008 03:56:38 pm David Ojeda wrote: Hello all, I've never used the soap header in a WS client or server, but now I need to add a simple true/false element to a soap response. How can I do this? I managed to declare this in the wsdl using soap:header, but there is nothing in the Skeleton that lets me add a header element. Could you please help me? Here is my WSDL: ?xml version=1.0 encoding=UTF-8? wsdl:definitions name=WSIterautoID targetNamespace=http://www.openuri.org/ws/iterauto/WSIterautoID/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:tns=http://www.openuri.org/ws/iterauto/WSIterautoID/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd1=http://www.openuri.org/ws/dummy; wsdl:types xsd:schema xmlns:xsd=http://www.w3.org/2001/XMLSchema; targetNamespace=http://www.openuri.org/ws/iterauto/WSIterautoID/; xsd:element name=getIterautoIDResponse xsd:complexType xsd:sequence xsd:element name=iterautoID type=xsd:string /xsd:element /xsd:sequence /xsd:complexType /xsd:element xsd:complexType name=WSIterautoIDException xsd:sequence xsd:element name=code type=xsd:string /xsd:element xsd:element name=msg type=xsd:string /xsd:element xsd:element name=trace type=xsd:string /xsd:element xsd:element name=from type=xsd:string /xsd:element /xsd:sequence /xsd:complexType xsd:element name=getIterautoIDFault type=tns:WSIterautoIDException /xsd:element xsd:element name=hasMoreElementsHeader type=xsd:boolean /xsd:element /xsd:schema xsd:schema xmlns:xsd=http://www.w3.org/2001/XMLSchema; xsd:import namespace=http://www.openuri.org/ws/dummy; schemaLocation=../xsd/DummyInput.xsd /xsd:import/xsd:schema/wsdl:types wsdl:message name=getIterautoIDRequest wsdl:part name=input element=xsd1:EmptyRequest /wsdl:part/wsdl:message wsdl:message name=getIterautoIDResponse wsdl:part name=id element=tns:getIterautoIDResponse /wsdl:part /wsdl:message wsdl:message name=IterautoIDFault wsdl:part name=fault element=tns:getIterautoIDFault /wsdl:part /wsdl:message wsdl:message name=hasMoreElementsHeader wsdl:part name=hasMoreElementsHeader element=tns:hasMoreElementsHeader /wsdl:part /wsdl:message wsdl:portType name=WSIterautoID wsdl:operation name=getIterautoID wsdl:input message=tns:getIterautoIDRequest/wsdl:input wsdl:output message=tns:getIterautoIDResponse/wsdl:output wsdl:fault name=WSIterautoIDException message=tns:IterautoIDFault /wsdl:fault /wsdl:operation /wsdl:portType wsdl:binding name=WSIterautoIDSOAP type=tns:WSIterautoID soap:binding style=document transport=http://schemas.xmlsoap.org/soap/http; / wsdl:operation name=getIterautoID soap:operation soapAction=http://www.openuri.org
Re: Adding header elements to a response
I have managed to solve this using the toOM method in the MessageReceiverInOut generated by the wsdl. On Wednesday 13 August 2008 03:59:42 pm David Ojeda wrote: I forgot to mention that I am using Axis 2 1.4 On Wednesday 13 August 2008 03:56:38 pm David Ojeda wrote: Hello all, I've never used the soap header in a WS client or server, but now I need to add a simple true/false element to a soap response. How can I do this? I managed to declare this in the wsdl using soap:header, but there is nothing in the Skeleton that lets me add a header element. Could you please help me? Here is my WSDL: ?xml version=1.0 encoding=UTF-8? wsdl:definitions name=WSIterautoID targetNamespace=http://www.openuri.org/ws/iterauto/WSIterautoID/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:tns=http://www.openuri.org/ws/iterauto/WSIterautoID/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd1=http://www.openuri.org/ws/dummy; wsdl:types xsd:schema xmlns:xsd=http://www.w3.org/2001/XMLSchema; targetNamespace=http://www.openuri.org/ws/iterauto/WSIterautoID/; xsd:element name=getIterautoIDResponse xsd:complexType xsd:sequence xsd:element name=iterautoID type=xsd:string /xsd:element /xsd:sequence /xsd:complexType /xsd:element xsd:complexType name=WSIterautoIDException xsd:sequence xsd:element name=code type=xsd:string /xsd:element xsd:element name=msg type=xsd:string /xsd:element xsd:element name=trace type=xsd:string /xsd:element xsd:element name=from type=xsd:string /xsd:element /xsd:sequence /xsd:complexType xsd:element name=getIterautoIDFault type=tns:WSIterautoIDException /xsd:element xsd:element name=hasMoreElementsHeader type=xsd:boolean /xsd:element /xsd:schema xsd:schema xmlns:xsd=http://www.w3.org/2001/XMLSchema; xsd:import namespace=http://www.openuri.org/ws/dummy; schemaLocation=../xsd/DummyInput.xsd /xsd:import/xsd:schema/wsdl:types wsdl:message name=getIterautoIDRequest wsdl:part name=input element=xsd1:EmptyRequest /wsdl:part/wsdl:message wsdl:message name=getIterautoIDResponse wsdl:part name=id element=tns:getIterautoIDResponse /wsdl:part /wsdl:message wsdl:message name=IterautoIDFault wsdl:part name=fault element=tns:getIterautoIDFault /wsdl:part /wsdl:message wsdl:message name=hasMoreElementsHeader wsdl:part name=hasMoreElementsHeader element=tns:hasMoreElementsHeader /wsdl:part /wsdl:message wsdl:portType name=WSIterautoID wsdl:operation name=getIterautoID wsdl:input message=tns:getIterautoIDRequest/wsdl:input wsdl:output message=tns:getIterautoIDResponse/wsdl:output wsdl:fault name=WSIterautoIDException message=tns:IterautoIDFault /wsdl:fault /wsdl:operation /wsdl:portType wsdl:binding name=WSIterautoIDSOAP type=tns:WSIterautoID soap:binding style=document transport=http://schemas.xmlsoap.org/soap/http
RE: Seemingly strange result switching from Axis2 1.3 to 1.4
Just a wild guess but: The error Unexpected subelement typeId would lead me to want to investigate the handling of nil with anyType fields. It looks like the deserializer hit the typeId data, maybe while processing the previous nameList (anyType) field. Try substituting another specific type for nameList. -Original Message- From: nate roe [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 2:11 PM To: axis-user@ws.apache.org Subject: Re: Seemingly strange result switching from Axis2 1.3 to 1.4 Unfortunately, I can't easily provide all of this information. I understand if I've provided too little for a complete picture, but I'm hoping for an avenue of inquiry... I'm not sure where to look or how to diagnose the problem. On Mon, Aug 11, 2008 at 11:38 PM, Amila Suriarachchi [EMAIL PROTECTED] wrote: Can you send your full wsdl, request and response messages? thanks, Amila. On Tue, Aug 12, 2008 at 4:02 AM, nate roe [EMAIL PROTECTED] wrote: I have a POJO service deployed on JBoss 4.05 under Axis2 v1.3. I have modified this service to instead use Axis2 v1.4. I then regenerated the client-side stub classes with Axis2 1.4's wsdl2java, using the new (and slightly different) WSDL. My client now has a parse error reading the response, but to my eye, the response looks logical and appears to follow the WSDL. In the WSDL, the response is defined as: xs:element name=getSampleNamesResponse xs:complexType xs:sequence xs:element maxOccurs=unbounded minOccurs=0 name=return nillable=true type=ax22:SampleNamesX/ /xs:sequence /xs:complexType /xs:element The response is an array of these elements: xs:complexType name=SampleNamesX xs:sequence xs:element minOccurs=0 name=nameList nillable=true type=xs:anyType/ xs:element minOccurs=0 name=typeId nillable=true type=xs:long/ xs:element minOccurs=0 name=typeName nillable=true type=xs:string/ /xs:sequence /xs:complexType The SOAP response looks like this: ns:getSampleNamesResponse xmlns:ns=http://vegas.com; xmlns:ax21=http://vegas.com/xsd; ns:return type=com.vegas.SampleNamesX ax21:nameList xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:nil=true /ax21:nameList ax21:typeId1138/ax21:typeId ax21:typeNamefoo/ax21:typeName /ns:return ns:return type=com.vegas.SampleNamesX ax21:nameList xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:nil=true /ax21:nameList ax21:typeId8311/ax21:typeId ax21:typeNamebar/ax21:typeName /ns:return /ns:getSampleNamesResponse When the client receives this response, however, it throws this exception: 13:47:04,965 ERROR [STDERR] org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement typeId 13:47:04,965 ERROR [STDERR] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) 13:47:04,965 ERROR [STDERR] at com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4832) 13:47:04,965 ERROR [STDERR] at com.vegas.stub.SampleServiceStub.getProductTypes(SampleServiceStub.java: 1672) 13:47:04,965 ERROR [STDERR] at com.vegas.client.SampleClientUtil.getProductTypesStubCall(SampleClientUt il.java:488) 13:47:04,965 ERROR [STDERR] at com.vegas.client.SampleClientUtil.getProductTypes(SampleClientUtil.java: 136) 13:47:04,965 ERROR [STDERR] at com.vegas.client.SampleClientUtil.getProductTypeList(SampleClientUtil.ja va:162) 13:47:04,965 ERROR [STDERR] at org.apache.jsp.SampleClient_jsp._jspService(SampleClient_jsp.java:85) 13:47:04,965 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) 13:47:04,965 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 13:47:04,965 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:334) 13:47:04,965 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) 13:47:04,965 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) 13:47:04,965 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 13:47:04,965 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) 13:47:04,965 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) 13:47:04,965 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte r.java:96) 13:47:04,980 ERROR [STDERR] at
Re: Axis2 Webservice called from another websiervice
On Thu, Aug 7, 2008 at 4:36 AM, Chris Richmond [EMAIL PROTECTED] wrote: in short..there are MAJOR in memory collisions taking place whereas the Axis2 stack gets confused. All in all, it was a miserable failure for using one service calling another, which is practically SOP in the WS world and I've done it with every other WS stack I've used. In the end I had to retool my middleware layer to use another WS stack. Out of curiosity, what WS stack did you end up using? If you ever successfully get Axis2 webservice calling another webservice working and working at production levels, I'd love to hear how you did it. My first attempt to do so using Axis2 1.4 resulted in a very fast memory leak which caused the app server to go OOM after handling a couple dozen requests. However, after upgrading to 1.4-RC1 and using a pool of Stubs for the client WS calls, everything appears to be functioning OK. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Integrating Axis 1.3 and Spring
Sagara, Thanks for the information. Unfortunately, the use of Axis2 is not an option at this point. We're using Axis 1 version 1.3, which apparently does not have good support for integration with Spring. I can see why you would get confused though, the naming conventions are bizarre. Can't we come up with a more distinct name than Axis2? Things like Axis2 version 1.4 sound weird unintuitive. How about a totally different name? How about Atlas? Or Allies? Or X-Axis? Or Tilt? Or anything but the same name with a pseudo version number tacked on the end. Dave From: Sagara Gunathunga [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2008 10:37 PM To: axis-user@ws.apache.org Subject: Re: Integrating Axis 1.3 and Spring Hi Dave, I'm not sure about your question , but Spring user guide [1] shows how you can access beans defined in the Spring application context. you don't need to modify you Spring application context file , but need to define ServiceObjectSupplier parameter in the service.xml file. When you come to Spring AOP proxy beans you need one more extra step to define ServiceClass parameter in the service.xml file . Recently i have done a such example ,please refer following blog entry [2] for more details . [1] - http://ws.apache.org/axis2/1_4/spring.html [2] - http://ssagara.blogspot.com/2008/08/axis2-with-spring-aop.html Hope this will help you , Regards , Sagara Gunathunga Blog - ssagara.blogspot.com Web - http://sagaras.awardspace.com/ On Fri, Aug 1, 2008 at 10:26 PM, David Land [EMAIL PROTECTED] wrote: I have a question about integrating Axis 1.3 with Spring. I want to implement an AOP logging solution for a set of Axis web services. Basically, I want to be able to do some logging and the beginning and end of each web service method. My question is regarding how to get Axis to use an instance of the Spring AOP proxy class. The only solution I could find for doing it was to create a dummy web service class that inherits from org.springframework.remoting.jaxrpc.ServletEndpointSupport and then to override the onInit() method to set a class variable to the AOP object returned from the Spring application context. Then in each of the dummy web service's methods, call the corresponding method on the AOP object. Here is a typical example: --- public class DummyService extends ServletEndpointSupport implements IRealWebService { private IRealWebService real; protected void onInit() { this. real = (IRealWebService)getWebApplicationContext().getBean(wsBean); } public String sayHello(String message) { return real.sayHello(message); } public String doSomethingElse (String message) { return real. doSomethingElse (message); } } --- I'm not a huge fan of this solution because it requires you to keep around this dummy class that doesn't do anything but create and call the Spring generated proxy. Then every time you want add a new method to the web service you would have to go back and update the dummy class as well. Isn't there a way to get Axis to instantiate and use the AOP proxy object from the Spring application context? Maybe some lower level handler in Axis can be overridden so you can inject the Spring object? It's my understanding that Axis2 has better support for Spring, but using Axis2 is not an option at this point. Thanks, Dave --