Re: [axis2 ]soap session scope does not work
Hi Paul, Do you know if with the Secure conversation i can force the client to send the username token only the first time without having the login operation, or I still need this entry point? Is there any usefull documentation on the rampart secure conv. implementation? Thanks, Nencho 2007/4/27, Paul Fremantle [EMAIL PROTECTED]: Nencho With any third-party users of your service, you do need to give them some additional documentation! The WSDL and Policy are a good starting point, but the developer still needs to understand the business processes behind the services. However, you are right that secureconversation will also give you the pattern you want, where the initial login is used to create a token, which is then passed with every request. Paul On 4/27/07, Nencho Lupanov [EMAIL PROTECTED] wrote: Hi Paul, Thanks for the constructive idea :).anyway,I can't confirm that these services will be invoked only by my client code. Consider some third party client - i cannot force himm to call first the login operation, though it is obvious that the rest of the operations will deny to be executed first. Maybe i am stick with the Ws Secure conv implemented in rampart, does someone has tested it with username token sent only the first time? thanks, Nencho 2007/4/27, Paul Fremantle [EMAIL PROTECTED]: Nencho You can specify different policies per operation with Axis2. So you need to identify a specific operation that is the login operation - i.e. the one that users call first (and only first), and statically specify a different policy for this one. I'm not suggesting changing the policy at runtime. That won't work - certainly not at the server side. Paul On 4/27/07, Nencho Lupanov [EMAIL PROTECTED] wrote: Hi Paul, Having different policies includes ex-changing them runtime. 1. Is that posible with axis2 without redeploying the service? 2. How this correlates to the session, because i expect different clients to connect to this service and i cannot just change the policiy since one of the will be at the login state and another will be already loged in. 3. does WS secure conversation way overcome those problems? thanks, Nencho 2007/4/27, Paul Fremantle [EMAIL PROTECTED]: Nencho If you want to do this, you need to have two different policies. One for the login operation/service, which uses UT, and the other for the rest of the operations, which has encryption (if needed) but no UT. Obviously you need to write your own logic to ensure that you check the session is available for those other operations. Paul On 4/27/07, Nencho Lupanov [EMAIL PROTECTED] wrote: Hi Deepal, I have yet another question/issue about the sessions. I am using UsernameToken in a ws security policy handled by rampart. I want to use axis2 sessions so i pass the user/pass only once and then rely on the session to recognize me on a subsequent call.the point is that the rampart policy is alredy there and will expect a username token in every request. Is there any way to overcome this? thanks, Nencho 2007/4/26, Deepal Jayasinghe [EMAIL PROTECTED]: Hi Nencho, Yes we found that issue and we have fixed that in the 1.2branch and the fixes will be available in 1.2 release. Thanks Deepal Hi Deepal, I checked the test and yes i was able to run it successfull. anyway, when i try to put this in my running enviroment i get this strange error: [java] Exception in thread main org.apache.axis2.AxisFault: Unable to fin d corresponding context for the serviceGroupId: urn:uuid:97198317A8B28D4CDF11775 98325288 In services.xml on the server side i have the scope =soapsession attribute At the client side I have the following code *options.setManageSession (true); * *...* client.engageModule(new QName(addressing)); Is there anything else to configure? Thanks, Nencho 2007/4/26, Deepal Jayasinghe [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : Hi Nencho , Axis2 soap session to be work , you need to engage addressing in both the side. It is working , there is a test case in the build so we are testing that daily. org.apache.axis2.engine.ServiceGroupContextTest Thanks Deepal Hi All, I read this axis2 session management article: http://www.developer.com/java/web/article.php/3620661 Basically, it says that i can define my
Re: Question on getFirstChildWithName(qName) within an iterator?
Craig There are some options that might be interesting: * JIBX allows you to bind to existing POJOs by specifying a simple binding file * ADB has a helper mode where it will generate POJOs and leave the XML gorp in other files. * JAXB generates pretty clean nice POJOs. Paul On 5/2/07, Hickman, Craig [EMAIL PROTECTED] wrote: Working for a company that wants to hide much of the complexity of the Axis2 api. I've been building some helper methods to allow the ability to use a set of beans to manipulate and bind the xml to the POJO's without the need for using the code generation tools, which is something the developers at this company wish to refrain from using if possible. So here is my problem: I get the root element and then //GET THE FIRST ELEMENT OMElement root = utils.getOMRootElement(envelope); // SET THE PARTNER SERVICE OBJECTS QName serviceQN = new QName(WSConstants.SERVICE_ELEMENT); Iterator serviceIter = root.getChildrenWithName(serviceQN); getService(serviceIter); //-- private method --// private void getService(Iterator serv) { Map aMap = new HashMap(); //-- pass in iterator and constants for simple xml element parsing --// try { aMap = utils.getSimpleOMSubElement(serv, this.getServiceConstants()); // the utility method as seen below int mapsize = aMap.size(); Iterator keyValuePairs1 = aMap.entrySet().iterator(); for (int i = 0; i mapsize; i++) { Map.Entry entry = (Map.Entry) keyValuePairs1.next(); Object key = entry.getKey(); Object value = entry.getValue(); logger.debug( map values +value.toString()); getServiceElementsSwitch(key, value); } } catch (SOAPException e) { logger.debug(getService SOAPException +e.getMessage()); e.printStackTrace(); } catch (XMLStreamException e) { logger.debug(getService XMLStreamException +e.getMessage()); e.printStackTrace(); } } I pass in a list of the binded elements as strings in a list so that I can iterate through them and then use the getChildWithNames iterator. My only problem is that I can only get the first element text value even though I loop through the list and pass I a new qName each time. I have even tried another helper to get the text value taking in the iterator and and the string value for the qName, but this still brings back only one of the text values. Am I missing something? I've logged it to make sure I'm iterating with the correct elements for the binding, and have run test to make sure the payload of text value is correct. /** * Walk the xml tree of elements * get the simple element and put * in map object for return. * * @param serv * @throws XMLStreamException * @throws SOAPException * @return Map map */ public Map getSimpleOMSubElement(Iterator iter, List wsConstants) throws SOAPException, XMLStreamException { int j = 1; String qName = ; String text = ; for (j = 0; j wsConstants.size(); j++) { qName = (String)wsConstants.get(j); logger.debug(qName = +qName); while (iter.hasNext()) { Object o = iter.next(); if (o instanceof OMElement) { OMElement c = (OMElement) o; OMElement element = getOMElement(c, qName); // helpe method - takes element and constant string text = element.getText(); } j++; logger.debug(text = + j + +text); map.put(j, text); } } return map; } /** * Helper method to get the text elements in a type safe fashion * * @param element * @param name * @return */ public OMElement getOMElement(OMElement result, String element) throws SOAPException, XMLStreamException { QName qName = new QName(element); if (qName == null) { throw new RuntimeException(Missing required method element.); } Iterator i = result.getChildrenWithName(qName); if (! i.hasNext()) {
Re: [axis2 ]soap session scope does not work
Nencho Yes, the conversation initiation will happen on the first call - no matter what operation. I think there are good samples in Rampart. They are the best approach to getting started with Rampart. Paul On 5/2/07, Nencho Lupanov [EMAIL PROTECTED] wrote: Hi Paul, Do you know if with the Secure conversation i can force the client to send the username token only the first time without having the login operation, or I still need this entry point? Is there any usefull documentation on the rampart secure conv. implementation? Thanks, Nencho 2007/4/27, Paul Fremantle [EMAIL PROTECTED]: Nencho With any third-party users of your service, you do need to give them some additional documentation! The WSDL and Policy are a good starting point, but the developer still needs to understand the business processes behind the services. However, you are right that secureconversation will also give you the pattern you want, where the initial login is used to create a token, which is then passed with every request. Paul On 4/27/07, Nencho Lupanov [EMAIL PROTECTED] wrote: Hi Paul, Thanks for the constructive idea :).anyway,I can't confirm that these services will be invoked only by my client code. Consider some third party client - i cannot force himm to call first the login operation, though it is obvious that the rest of the operations will deny to be executed first. Maybe i am stick with the Ws Secure conv implemented in rampart, does someone has tested it with username token sent only the first time? thanks, Nencho 2007/4/27, Paul Fremantle [EMAIL PROTECTED]: Nencho You can specify different policies per operation with Axis2. So you need to identify a specific operation that is the login operation - i.e. the one that users call first (and only first), and statically specify a different policy for this one. I'm not suggesting changing the policy at runtime. That won't work - certainly not at the server side. Paul On 4/27/07, Nencho Lupanov [EMAIL PROTECTED] wrote: Hi Paul, Having different policies includes ex-changing them runtime. 1. Is that posible with axis2 without redeploying the service? 2. How this correlates to the session, because i expect different clients to connect to this service and i cannot just change the policiy since one of the will be at the login state and another will be already loged in. 3. does WS secure conversation way overcome those problems? thanks, Nencho 2007/4/27, Paul Fremantle [EMAIL PROTECTED]: Nencho If you want to do this, you need to have two different policies. One for the login operation/service, which uses UT, and the other for the rest of the operations, which has encryption (if needed) but no UT. Obviously you need to write your own logic to ensure that you check the session is available for those other operations. Paul On 4/27/07, Nencho Lupanov [EMAIL PROTECTED] wrote: Hi Deepal, I have yet another question/issue about the sessions. I am using UsernameToken in a ws security policy handled by rampart. I want to use axis2 sessions so i pass the user/pass only once and then rely on the session to recognize me on a subsequent call.the point is that the rampart policy is alredy there and will expect a username token in every request. Is there any way to overcome this? thanks, Nencho 2007/4/26, Deepal Jayasinghe [EMAIL PROTECTED]: Hi Nencho, Yes we found that issue and we have fixed that in the 1.2 branch and the fixes will be available in 1.2 release. Thanks Deepal Hi Deepal, I checked the test and yes i was able to run it successfull. anyway, when i try to put this in my running enviroment i get this strange error: [java] Exception in thread main org.apache.axis2.AxisFault: Unable to fin d corresponding context for the serviceGroupId: urn:uuid:97198317A8B28D4CDF11775 98325288 In services.xml on the server side i have the scope =soapsession attribute At the client side I have the following code *options.setManageSession (true); * *...* client.engageModule(new QName(addressing)); Is there anything else to configure? Thanks, Nencho 2007/4/26, Deepal Jayasinghe [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] : Hi Nencho , Axis2 soap session to be work , you need to engage addressing in both the side. It is working , there is a
Axis2 performance and listener process construction
Hi, we're fairly new to Axis2 in general but lately we've been writing a small web service to test the Sandesha2 WS-RM stack with Axis2. We have however two questions: 1. Is it normal that it takes about 15 seconds to make 10 synchronous requests? We are just calling a simple Web service operation which takes 3 integers as input parameters and returns an integer so the payload is never large. We have even looked at the requests and responses being sent/received on the wire and there is nothing out of the ordinary. To send our messages we're calling the sendReceive() method on the ServiceClient interface. The test is running locally (both sender and receiver) on a modern laptop ( 1.6ghz mobile). No special configuration of Axis2 has been done (besides Sandesha2, but even before adding that it was just as slow). 2. Could anyone explain why when using a listener as a reponse channel this appears to be a seperate process? Is the process shared by multiple clients? And why did the developers not opt for a thread instead? When a request is made from the client side, does it also pass through the listening process (we're guessing no, as the listener is optional)? Does this have anything to do with reusing the same socket as a response channel for multiple clients? Those are just some of the things we've noticed, if someone could clarify this a little it would help us alot. Thanks, Toon
Re: Axis2 performance and listener process construction
Toon I'm surprised you are getting those results. The Sandesha2 code isn't tuned and the timing parameters are not optimized for fast exchange, but without Sandesha2 the Axis2 calls should take about 100ms for 10 calls. Do you have some sample code I can try? Also I don't understand the comment about a separate process. As far as I know Axis2 and Sandesha never start new processes. Can you give us more details please? Paul On 5/2/07, T W [EMAIL PROTECTED] wrote: Hi, we're fairly new to Axis2 in general but lately we've been writing a small web service to test the Sandesha2 WS-RM stack with Axis2. We have however two questions: 1. Is it normal that it takes about 15 seconds to make 10 synchronous requests? We are just calling a simple Web service operation which takes 3 integers as input parameters and returns an integer so the payload is never large. We have even looked at the requests and responses being sent/received on the wire and there is nothing out of the ordinary. To send our messages we're calling the sendReceive() method on the ServiceClient interface. The test is running locally (both sender and receiver) on a modern laptop ( 1.6ghz mobile). No special configuration of Axis2 has been done (besides Sandesha2, but even before adding that it was just as slow). 2. Could anyone explain why when using a listener as a reponse channel this appears to be a seperate process? Is the process shared by multiple clients? And why did the developers not opt for a thread instead? When a request is made from the client side, does it also pass through the listening process (we're guessing no, as the listener is optional)? Does this have anything to do with reusing the same socket as a response channel for multiple clients? Those are just some of the things we've noticed, if someone could clarify this a little it would help us alot. Thanks, Toon -- Paul Fremantle VP/Technology, WSO2 and OASIS WS-RX TC Co-chair http://bloglines.com/blog/paulfremantle [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wsdl2java ant task and -Ebindingfile
Hi list, how can I specify something like the -Ebindingfile option with the ant task ? TIA and regards Armin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN][Axis2]Axis2 1.2 Released
We have pom.xml for almost all modules. All modules built using m2 are pushed to the SNAPSHOT repo. There is at least 1 sample (jaxws-calculator) in 1.2 that uses m2 Please check the 1.2 final for WSDL2Java and AAR plugins that work and report JIRA issues if they don't work as you expect them to. -- dims On 5/1/07, Vijesh A.V. [EMAIL PROTECTED] wrote: Hi, What exactly meant by Maven2 support?. Is it that all jars are available in a maven2 repository? Axis2 code base also moved to maven2 structure and build? I'm surprised by not seeing any example/sample which can be build using maven2. At least a couple of examples would have been helpful. Moreover WSDL2Java and AAR plugins doesn't seems to be working (checked a few weeks back). Vijesh -Original Message- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: 27 April 2007 20:30 To: axis-user@ws.apache.org Subject: [ANN][Axis2]Axis2 1.2 Released -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just over 4 months since the original 1.1.1 release, we are very proud to announce the release of Apache Axis2 version 1.2 Downloads are available at: http://ws.apache.org/axis2/download.cgi Apache Axis2 is a complete re-design and re-write of the widely used Apache Axis engine and is a more efficient, more scalable, more modular and more XML-oriented Web services framework. It is carefully designed to support the easy addition of plug-in modules that extend its functionality for features such as security and reliability. Modules supporting WS-Security/Secure-Conversation (Apache Rampart), WS-Trust (Apache Rahas), WS-Reliable Messaging (Apache Sandesha) and WS-Eventing (Apache Savan) will be available after the Apache Axis2 1.2 release. Please see these projects' own sites for further information. Major Changes Since 1.1: - - WSDL 2.0 fully support (reading, writing, and codegen) - - POJO annotation (JSR 181) - - JAX-WS integration - - JAX-WS -annotation - - Un-wrapping (Response) - - ADB - support for union and list - - Maven2 support - - JSON support - - Binary serialization (Fast infoste) - - Codegen support for WSDL with Multiple services - - HTTP code generation (both WSDL 1.1 and 2.0) - - Custom deployer support - - Message formatters - - Message Builders - - EJB Provider support Known Issues and Limitations in 1.2 Release: - - Xml-beans databinding does not support response uwwrapping - - ADB databinding does not support minOccurs and maxOccures attributes in sequence and choice elements Apache Axis2 1.2 is a major new release compared to Axis2 1.1. We are striving for a simple and happy first time user experience as well as a satisfying experienced user experience with this release. We welcome any and all feedback at: axis-user@ws.apache.org (please include [axis2] in the subject) [EMAIL PROTECTED] (please include [axis2] in the subject) http://issues.apache.org/jira/browse/AXIS2 Thank you for your interest in Apache Axis2! The Axis2 Development Team http://ws.apache.org/axis2/ - Features of Apache Axis2: Programming Model - Improved XML-centric client API with full WSDL and policy support - Support for POJO and Spring services and clients - Support for any message exchange pattern (MEP) - Synchronous and asynchronous programming model - Archived service deployment model supporting full service encapsulation with versioning support - Archived module deployment model supporting controlled extensibility with versioning support - Hot deployment - WS-Policy driven code generation extensions - Flexible service life cycle model - Automatic support for POX (REST) style invocation of services - Support for querying service's WSDL (with ?wsdl), schema (with ?xsd) and policies (with ?policy) - WSDL 2.0POJO annotation (JSR 181) - JAX-WS intregration - Custom Deployers - Binary serialization (Fast Infoset) - JSON support - EJB Provider support Supported Specifications - SOAP 1.1 and 1.2 - Message Transmission Optimization Mechanism (MTOM) - XML Optimized Packaging (XOP) - SOAP with Attachments - WSDL 1.1, including both SOAP and HTTP bindings - WS-Addressing submission and 1.0 - WS-Policy - SAAJ 1.1 Transports - HTTP - SMTP - JMS - TCP Supported Data Bindings - Axis Data Binding (ADB) - XMLBeans - JibX - JaxMe (Experimental) - JaxBRI (Experimental) Tools - WSDL2Java: Generate Java stubs and skeletons from a WSDL document. - Java2WSDL: Generate a WSDL document from a Java class. - Eclipse Plugins - IntelliJ Idea Plugins - Maven2 Plugins - Web application for administering Apache Axis2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFGMiTqjOGcXNDx0CARAqE8AKCoY8bbAbi0/0STX8xN4bKVy+/6tACdEo9O rHOPAK43tSfwRxSTGBUJwVw=
Re: Axis2 performance and listener process construction
Paul Thanks for your reply. You're right about the timing, seems there was a communication problem with my colleague, my appologies. I just tried it without Sandesha and it is indeed quite fast. To get back to the listener question what I mean is the seperate listener logic which comes with Axis2 to provide a seperate transport channel back from the server to the client to receive responses on (so you can receive asynchronous responses at any time for example). The listener process listens on port 6060 by default. The code to enable the seperate transport channel in java is: clientOptions.setUseSeparateListener(true); After which we set the options for our ServiceClient instance. Hopes this clarifies it. The reason i'm asking about this is because we're having some cleanup/rebinding issues with this process. Often when the client exits the listener process keeps running en suddenly goes berserk consuming all cpu time. This shows in windows task manager as a seperate java process. Toon On 5/2/07, Paul Fremantle [EMAIL PROTECTED] wrote: Toon I'm surprised you are getting those results. The Sandesha2 code isn't tuned and the timing parameters are not optimized for fast exchange, but without Sandesha2 the Axis2 calls should take about 100ms for 10 calls. Do you have some sample code I can try? Also I don't understand the comment about a separate process. As far as I know Axis2 and Sandesha never start new processes. Can you give us more details please? Paul On 5/2/07, T W [EMAIL PROTECTED] wrote: Hi, we're fairly new to Axis2 in general but lately we've been writing a small web service to test the Sandesha2 WS-RM stack with Axis2. We have however two questions: 1. Is it normal that it takes about 15 seconds to make 10 synchronous requests? We are just calling a simple Web service operation which takes 3 integers as input parameters and returns an integer so the payload is never large. We have even looked at the requests and responses being sent/received on the wire and there is nothing out of the ordinary. To send our messages we're calling the sendReceive() method on the ServiceClient interface. The test is running locally (both sender and receiver) on a modern laptop ( 1.6ghz mobile). No special configuration of Axis2 has been done (besides Sandesha2, but even before adding that it was just as slow). 2. Could anyone explain why when using a listener as a reponse channel this appears to be a seperate process? Is the process shared by multiple clients? And why did the developers not opt for a thread instead? When a request is made from the client side, does it also pass through the listening process (we're guessing no, as the listener is optional)? Does this have anything to do with reusing the same socket as a response channel for multiple clients? Those are just some of the things we've noticed, if someone could clarify this a little it would help us alot. Thanks, Toon -- Paul Fremantle VP/Technology, WSO2 and OASIS WS-RX TC Co-chair http://bloglines.com/blog/paulfremantle [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wsdl2java ant task and -Ebindingfile
I don't think the ant task has ever been updated to support -Exxx data binding extension options. You can just use WSDL2Java directly, though, with an Ant javac: java classpathref=axis-classpath fork=true classname=org.apache.axis2.wsdl.WSDL2Java !-- -o parameter sets the output root directory -- arg value=-o/ arg value=${build-client}/gen/ !-- -p parameter gives the package for Axis2 code generation -- arg value=-p/ arg value=${package-name}/ !-- -d parameter selects the databinding framework -- arg value=-d/ arg value=jibx/ arg value=-Ebindingfile/ arg value=binding.xml/ !-- -u parameter unbundles data object classes -- arg value=-u/ !-- -uw parameter unwraps the request messages -- arg value=-uw/ !-- -s generates synchronous methods only -- arg value=-s/ !-- -uri parameter provides the WSDL input -- arg value=-uri/ arg value=${wsdl-path}/ /java or whatever options you want to pass. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Armin Ehrenfels wrote: Hi list, how can I specify something like the -Ebindingfile option with the ant task ? TIA and regards Armin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 performance and listener process construction
Toon, as you said the listener uses port 6060 by default, but by providing a custom configuration context you can change. Furthermore, you can use the same configuration context across different ServiceClient(s) or even use the same ServiceClient across different invocations. Michele On Wed, 2007-05-02 at 13:34 +0200, Toon Wouters wrote: Paul Thanks for your reply. You're right about the timing, seems there was a communication problem with my colleague, my appologies. I just tried it without Sandesha and it is indeed quite fast. To get back to the listener question what I mean is the seperate listener logic which comes with Axis2 to provide a seperate transport channel back from the server to the client to receive responses on (so you can receive asynchronous responses at any time for example). The listener process listens on port 6060 by default. The code to enable the seperate transport channel in java is: clientOptions.setUseSeparateListener(true); After which we set the options for our ServiceClient instance. Hopes this clarifies it. The reason i'm asking about this is because we're having some cleanup/rebinding issues with this process. Often when the client exits the listener process keeps running en suddenly goes berserk consuming all cpu time. This shows in windows task manager as a seperate java process. Toon On 5/2/07, Paul Fremantle [EMAIL PROTECTED] wrote: Toon I'm surprised you are getting those results. The Sandesha2 code isn't tuned and the timing parameters are not optimized for fast exchange, but without Sandesha2 the Axis2 calls should take about 100ms for 10 calls. Do you have some sample code I can try? Also I don't understand the comment about a separate process. As far as I know Axis2 and Sandesha never start new processes. Can you give us more details please? Paul On 5/2/07, T W [EMAIL PROTECTED] wrote: Hi, we're fairly new to Axis2 in general but lately we've been writing a small web service to test the Sandesha2 WS-RM stack with Axis2. We have however two questions: 1. Is it normal that it takes about 15 seconds to make 10 synchronous requests? We are just calling a simple Web service operation which takes 3 integers as input parameters and returns an integer so the payload is never large. We have even looked at the requests and responses being sent/received on the wire and there is nothing out of the ordinary. To send our messages we're calling the sendReceive() method on the ServiceClient interface. The test is running locally (both sender and receiver) on a modern laptop ( 1.6ghz mobile). No special configuration of Axis2 has been done (besides Sandesha2, but even before adding that it was just as slow). 2. Could anyone explain why when using a listener as a reponse channel this appears to be a seperate process? Is the process shared by multiple clients? And why did the developers not opt for a thread instead? When a request is made from the client side, does it also pass through the listening process (we're guessing no, as the listener is optional)? Does this have anything to do with reusing the same socket as a response channel for multiple clients? Those are just some of the things we've noticed, if someone could clarify this a little it would help us alot. Thanks, Toon -- Paul Fremantle VP/Technology, WSO2 and OASIS WS-RX TC Co-chair http://bloglines.com/blog/paulfremantle [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN][Axis2] Axis2 book and training course available
== Axis2 book == I am pleased to announce that our new Axis2 book was published last week. It contains nearly 600 pages and covers all aspects of Web Service development using Axis2. Topics include: - Web Service fundamentals (SOAP, WSDL, Code-First vs. Contract-First) - First steps (installation, basic concepts of Axis2, POJO services, simple clients) - Developing applications with Axis2 and Eclipse (plugins, tools, service debugging) - AXIOM - Contract-First with Axis (code generation, implementing and deploying services) - Axis2 Client API - Synchronous, asynchronous and one-way communication - Error handling - Service lifecycle - Session handling - REST - Axis2 architecture and configuration guide - Message flow and internal message processing - Understanding flows and phases - Description Hierarchy and Context Hierarchy - Developing handlers and modules - XML Data Binding (fundamentals, ADB, XMLBeans, JiBX, JAXB, JaxMe) - Custom Message Receivers - Axis2 Groovy - Deploying EJBs as Web Services - Spring integration - MTOM SwA - Transport protocols (HTTP, SMTP, TCP, JMS) - Support for WS-* extensions (WS-Addressing, WS-Policy, WS-Security, WS-ReliableMessaging) The book details are: Title: Java Web Services mit Apache Axis2 Authors: Thilo Frotscher, Marc Teufel, Dapeng Wang Publisher: entwickler.press ISBN-10: 3935042817 ISBN-13: 978-3935042819 At this stage the book is available in German language only. It can be ordered at your favourite book store. A translation to English is planned and we will let you know as soon as more information is available regarding the publication date. If you are seeking in-depth information about Axis2 in English language *now*, there's a training course available. Please see below. = Axis2 training course = I am also offering a recently updated Axis2 training course (English or German language), which covers all the above topics and is normally 3 to 4 days long. However, the agenda is fully customizable and not fixed. This means that you can decide which topics you would like to cover and combine these topics to create your own custom Axis2 training course. All trainings include numerous practical exercises and are held in your premises. I am currently planning the schedule for the second half of 2007 and there are still some dates available. So if you are interested in booking an Axis2 training course or just like to get some more information about topics and prices, please send an email to [EMAIL PROTECTED] or check here: http://www.frotscher.com/axis2-training.html Please note: At this stage the training course is available in Asia, Europe, Australia and New Zealand only. --- Thilo Frotscher Software Architect Trainer www.frotscher.com --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 performance and listener process construction
Toon Two things: 1) you can modify the default Sandesha timing parameters by editing the module.xml inside META-INF in sandesha2.mar. The default timing parameters are: RetransmissionInterval 6s (6000ms) InactivityTimeout 60s 2) When you do setUseSeparateListener, Axis2 does not spawn a new process. It spawns a thread. So I'm still confused as to what is going on!. Paul On Wed, 2007-05-02 at 13:34 +0200, Toon Wouters wrote: Paul Thanks for your reply. You're right about the timing, seems there was a communication problem with my colleague, my appologies. I just tried it without Sandesha and it is indeed quite fast. To get back to the listener question what I mean is the seperate listener logic which comes with Axis2 to provide a seperate transport channel back from the server to the client to receive responses on (so you can receive asynchronous responses at any time for example). The listener process listens on port 6060 by default. The code to enable the seperate transport channel in java is: clientOptions.setUseSeparateListener(true); After which we set the options for our ServiceClient instance. Hopes this clarifies it. The reason i'm asking about this is because we're having some cleanup/rebinding issues with this process. Often when the client exits the listener process keeps running en suddenly goes berserk consuming all cpu time. This shows in windows task manager as a seperate java process. Toon On 5/2/07, Paul Fremantle [EMAIL PROTECTED] wrote: Toon I'm surprised you are getting those results. The Sandesha2 code isn't tuned and the timing parameters are not optimized for fast exchange, but without Sandesha2 the Axis2 calls should take about 100ms for 10 calls. Do you have some sample code I can try? Also I don't understand the comment about a separate process. As far as I know Axis2 and Sandesha never start new processes. Can you give us more details please? Paul On 5/2/07, T W [EMAIL PROTECTED] wrote: Hi, we're fairly new to Axis2 in general but lately we've been writing a small web service to test the Sandesha2 WS-RM stack with Axis2. We have however two questions: 1. Is it normal that it takes about 15 seconds to make 10 synchronous requests? We are just calling a simple Web service operation which takes 3 integers as input parameters and returns an integer so the payload is never large. We have even looked at the requests and responses being sent/received on the wire and there is nothing out of the ordinary. To send our messages we're calling the sendReceive() method on the ServiceClient interface. The test is running locally (both sender and receiver) on a modern laptop ( 1.6ghz mobile). No special configuration of Axis2 has been done (besides Sandesha2, but even before adding that it was just as slow). 2. Could anyone explain why when using a listener as a reponse channel this appears to be a seperate process? Is the process shared by multiple clients? And why did the developers not opt for a thread instead? When a request is made from the client side, does it also pass through the listening process (we're guessing no, as the listener is optional)? Does this have anything to do with reusing the same socket as a response channel for multiple clients? Those are just some of the things we've noticed, if someone could clarify this a little it would help us alot. Thanks, Toon -- Paul Fremantle VP/Technology, WSO2 and OASIS WS-RX TC Co-chair http://bloglines.com/blog/paulfremantle [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Paul Fremantle VP/Technology, WSO2 and OASIS WS-RX TC Co-chair http://bloglines.com/blog/paulfremantle [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLBeans, Attachments and Rampart
Also I want to secure my message also and I found that Rampart and MTOM have memory problems. Not that I know.. Can you please be more specific and report these problems with samples or test cases, so that we can fix if there is any.. - When I used ADB and MTOM I could see that if I don't enable MTOM, the attachment is sent in binary code as a String inside de SOAP message but if I enable MTOM, it's send outside the message in clear text (I used an xml file as example of attachment). I would like to send the attachment outside the message in binary code. Is this possible?? Attachment will be send in whatever the original format when it is sent as an attachment outside of the message. So XML will appear as it is.. Base64 encoding is not necessary when sending files as attachments outside of the message. - I know that MTOM is better than SwA, but what are the reasons? Please read the introduction part of http://ws.apache.org/axis2/1_2/mtom-guide.html - Is there any limit in the size of messages that axis2 can send, I mean in both the envelope and as attachments?? I'll have to send huge arrays of int or other data. I'll have to send some of them as attachments to avoid the multiple tags the xml would generate. There isn't a limit enforced by Axis2.. You might have to carefully select/write your data sources to deferred read your data in to the memory. In other words make sure they load them to the memory only when writing to the given OutputStream of the getOutputStream method. - The last one: As I'm building big messages, I'm having memory problems and I would like to know if axis can build this messages in parts, like build the first part of the message when it reach a limit size and send it, then build another one and send it.. Use HTTP chunking... I have successfully send attachments larger than 700 MB with HTTP chunking enabled and using FileDataSource, since I read the data off a file.. Thanks, Thilina Any help will be appreciated. Thanks in advance, Jorge Fernández Jorge Fernandez [EMAIL PROTECTED] escribió: Hi all, I would like to know if it's possible to use XMLBeans and Rampart with attachtments cos I heard that XMLBeans doesn't support MTOM and I doubt if Rampart supports SwA or there is any problem in that combination. Thanks and regards, Jorge Fernández LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN][Axis2] Axis2 book and training course available
Congratulations! I was so impressed I blogged it! Paul On 5/2/07, Thilo Frotscher [EMAIL PROTECTED] wrote: == Axis2 book == I am pleased to announce that our new Axis2 book was published last week. It contains nearly 600 pages and covers all aspects of Web Service development using Axis2. Topics include: - Web Service fundamentals (SOAP, WSDL, Code-First vs. Contract-First) - First steps (installation, basic concepts of Axis2, POJO services, simple clients) - Developing applications with Axis2 and Eclipse (plugins, tools, service debugging) - AXIOM - Contract-First with Axis (code generation, implementing and deploying services) - Axis2 Client API - Synchronous, asynchronous and one-way communication - Error handling - Service lifecycle - Session handling - REST - Axis2 architecture and configuration guide - Message flow and internal message processing - Understanding flows and phases - Description Hierarchy and Context Hierarchy - Developing handlers and modules - XML Data Binding (fundamentals, ADB, XMLBeans, JiBX, JAXB, JaxMe) - Custom Message Receivers - Axis2 Groovy - Deploying EJBs as Web Services - Spring integration - MTOM SwA - Transport protocols (HTTP, SMTP, TCP, JMS) - Support for WS-* extensions (WS-Addressing, WS-Policy, WS-Security, WS-ReliableMessaging) The book details are: Title: Java Web Services mit Apache Axis2 Authors: Thilo Frotscher, Marc Teufel, Dapeng Wang Publisher: entwickler.press ISBN-10: 3935042817 ISBN-13: 978-3935042819 At this stage the book is available in German language only. It can be ordered at your favourite book store. A translation to English is planned and we will let you know as soon as more information is available regarding the publication date. If you are seeking in-depth information about Axis2 in English language *now*, there's a training course available. Please see below. = Axis2 training course = I am also offering a recently updated Axis2 training course (English or German language), which covers all the above topics and is normally 3 to 4 days long. However, the agenda is fully customizable and not fixed. This means that you can decide which topics you would like to cover and combine these topics to create your own custom Axis2 training course. All trainings include numerous practical exercises and are held in your premises. I am currently planning the schedule for the second half of 2007 and there are still some dates available. So if you are interested in booking an Axis2 training course or just like to get some more information about topics and prices, please send an email to [EMAIL PROTECTED] or check here: http://www.frotscher.com/axis2-training.html Please note: At this stage the training course is available in Asia, Europe, Australia and New Zealand only. --- Thilo Frotscher Software Architect Trainer www.frotscher.com --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Paul Fremantle VP/Technology, WSO2 and OASIS WS-RX TC Co-chair http://bloglines.com/blog/paulfremantle [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wsdl2java ant task and -Ebindingfile
Dennis, pity ! Thank you, anyway. Regards Armin Dennis Sosnoski wrote: I don't think the ant task has ever been updated to support -Exxx data binding extension options. You can just use WSDL2Java directly, though, with an Ant javac: java classpathref=axis-classpath fork=true classname=org.apache.axis2.wsdl.WSDL2Java !-- -o parameter sets the output root directory -- arg value=-o/ arg value=${build-client}/gen/ !-- -p parameter gives the package for Axis2 code generation -- arg value=-p/ arg value=${package-name}/ !-- -d parameter selects the databinding framework -- arg value=-d/ arg value=jibx/ arg value=-Ebindingfile/ arg value=binding.xml/ !-- -u parameter unbundles data object classes -- arg value=-u/ !-- -uw parameter unwraps the request messages -- arg value=-uw/ !-- -s generates synchronous methods only -- arg value=-s/ !-- -uri parameter provides the WSDL input -- arg value=-uri/ arg value=${wsdl-path}/ /java or whatever options you want to pass. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Armin Ehrenfels wrote: Hi list, how can I specify something like the -Ebindingfile option with the ant task ? TIA and regards Armin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[axis2]WS Security Policy includeToken option problem
Hi All , I am trying the rampart sample that comes with the distro. I am going with sample01, only that i wanted it to be slightly different: I change the sp:IncludeToken attribute, so instead of: sp:SignedSupportingTokens xmlns:sp= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; wsp:Policy sp:UsernameToken sp:IncludeToken= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/ AlwaysToRecipient / /wsp:Policy /sp:SignedSupportingTokens I have: sp:SignedSupportingTokens xmlns:sp= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; wsp:Policy sp:UsernameToken sp:IncludeToken= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Once; / /wsp:Policy /sp:SignedSupportingTokens I am saying that in both requests i can found the following soap with tcpmon: wsse:UsernameToken xmlns:wsu= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; wsu:Id=UsernameToken-1673653wsse:Usernamemy_username/wsse:Usernamewsse:Password Type= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText my_password/wsse:Password/wsse:UsernameToken Does this means that the username and password will be sent only the first time?I tryed this but I still get the whole Usernametoken trasffered every time?Is this supposed to work like this or is there a bug in the rampart handling of the security policy? Thanks, Nencho
axis 2 and eclipse 3.2.1
Hi I just downloaded eclipse 3.2.1 and was trying to create a web service using WST plugin, I think this plugin uses axis 1.3, does anyone know how to upgrade it to use axis 2? Is there any document explaining this Ashish
wsdl2java -u option question
Hello, I'm new to Axis. I'm using the latest version, 1.2, and I've created a simple web service that takes three strings and returns a string. I created a client using wsdl2java. It works fine, but it creates three source files that are 5M in size. Is this expected behaviour, or is it a clue that something's wrong? If I use the -u option (which unpacks the databinding classes), then the generated files are all under 30k. (Still large, but much smaller than 5M.) So given that the code is 100x smaller with the -u option, what functionality gets left out when using it? Thanks, Michael Davis www.damaru.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generating supporting classes
Hi, I've been working with a project that was built around Axis 1.2. The source repository contains only the Axis-generated class files, no source code. So I've had to do some guesswork. Would like to upgrade to Axis 2 but there's a bit I haven't figured out yet. This project contains a number of classes that describes segments of various XML documents that are retrieved by the Axis code. How are these classes generated? Thanks, Rich
Re: WSDL2Java: WSDLProcessingException: Encoded use is not supported?
I believe we are throwing better exceptions now...if you post the wsdl in a bug report, we can take a look to confirm that it is indeed an rpc/encoded wsdl which we don't support. thanks, dims On 5/1/07, wolverine my [EMAIL PROTECTED] wrote: Hi! I encounter the following error when tried to generate web service client using Axis2 1.2 and XMLBeans: WSDL2Java -uri Dummy.wsdl -p com.test.dummy -d xmlbeans -s Using AXIS2_HOME: C:\axis2-1.2 Using JAVA_HOME:C:\Program Files\Java\jdk1.5.0_11 May 2, 2007 11:37:18 AM org.apache.axis2.description.WSDL11ToAxisServiceBuilder populateService SEVERE: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException: Encoded use is not supported Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:137) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: org.apache.axis2.AxisFault: Encoded use is not supported at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:298) at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:100) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:131) ... 2 more Caused by: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException: Encoded use is not supported at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getPartsListFromSoapBody(WSDL11ToAxisServiceBuilder.java:1543) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.createSchemaForPorttype(WSDL11ToAxisServiceBuilder.java:1294) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapperSchema(WSDL11ToAxisServiceBuilder.java:1198) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:252) ... 4 more However, the same command and WSDL file was working fine with Axis2 1.1.1. Do you have any idea of what could be the problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Axis2] MessageReceiver is Null in Axis2 Operation using WS-RM
Hi Chamikara, Upon further review, I don't believe this is a Sandesha2 issue. The operation is generated without a CallbackReceiver value set in the ADB generated stub. If I set a default CallbackReceiver in my client code, everything works fine. Maybe the operation should have a default instance of CallbackReceiver set on it OR the ADB generated stub code should set one on the operation when it is created? Thanks, Ted From: Chamikara Jayalath [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 10:51 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] MessageReceiver is Null in Axis2 Operation using WS-RM Hi Ted, Could u please add JIRA (in Sandesha2) and attach whatever the files necessary to reproduce the error. I just did a test with Axis21.1.1/Sandesha2 1.1 and it ran without trouble. Chamikara On 5/2/07, Ted Jones [EMAIL PROTECTED] wrote: I am using Sandesha2 1.1 with Axis2 1.1.1 and am running into an error where the MessageReceiver is null for the Axis operation and is causing a NPE. The following code in the OutInAxisOperation class is where the exception occurs: if (options.isUseSeparateListener()) { CallbackReceiver callbackReceiver = (CallbackReceiver) axisOp .getMessageReceiver(); callbackReceiver.addCallback(mc.getMessageID(), callback); I have the message receivers defined in my client axis2.xml and server axis.xml. I even have the message receivers defined in the service.xml for good measure. I have set the following options in the Axis2 client: clientOptions.setTransportInProtocol(org.apache.axis2.Constants.TRANSPOR T_HTTP); clientOptions.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,org. apache.axis2.addressing.AddressingConstants.Final.WSA_NAMESPACE ); clientOptions.setUseSeparateListener(true); The client/service works without Sandesha2 since I am not using a separate listener in that case. Is there anything else I need to add the the Axis2.xml or client code to get the receiver set on the operation? TIA, Ted -- Chamikara Jayalath WSO2 Inc. http://wso2.com/ http://wso2.org/ - For your Oxygen needs
RE: Axis2-1.1.1 samples DATABINDING CAN'T GENERATE SERVICE
: Thanks, there was a problem with castor -1.1 jar and/or classpath. I downloaded Castor-1.1.1 jars and put this time all the downloaded jars into the classpath and then ant generate.service worked OK. The first time i had only castor-1.1.jar in classpath. however ant run.client (command from readme.txt) ran into exception in thread main java.lang.NoClassDefFoundError: StockClient a class that was built during the process. Jparisotl Hickman, Craig wrote: Did you run the 'ant download.jars' ? After that you should then run 'ant' again... I just checked it out for the first time myself... the Readme has the correct instructions. _ From: jacques parisot [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 2:31 PM To: AXIS2 Subject: Fw: Axis2-1.1.1 samples DATABINDING CAN'T GENERATE SERVICE From: jacques parisot mailto:[EMAIL PROTECTED] To: AXIS2 mailto:axis-user@ws.apache.org Sent: Wednesday, April 25, 2007 5:45 PM Subject: Axis2-1.1.1 samples DATABINDING CAN'T GENERATE SERVICE New to axis but have run all samples of user'sguide ok. cant generate.service for databinding from AXIS2\samples\databinding castor-1.1.jar and stax-utils.jar in ...\samples\databinding\lib directory eventually added to classpath with same result results is as follows ... and much more Buildfile: build.xml generate.service: [mkdir] Created dir: C:\AXIS2\samples\databinding\build\service [mkdir] Created dir: C:\AXIS2\samples\databinding\build\service\classes [echo] [java] java.lang.NoClassDefFoundError: org/exolab/castor/builder/SourceGeneratorMain [java] Exception in thread main [java] Retrieving schema wsdl:imported from 'StockQuote.xsd', relative to 'file:/C:/AXIS2/samples/databinding/'. [copy] Copying 1 file to C:\AXIS2\samples\databinding\build\service\src [javac] Compiling 2 source files to C:\AXIS2\samples\databinding\build\service\classes [javac] C:\AXIS2\samples\databinding\build\service\src\samples\databinding\StockQuot eServiceSkeleton.java:33: package samples.databinding.data does not exist [javac] import samples.databinding.data.Change; [javac]^ [javac] C:\AXIS2\samples\databinding\build\service\src\samples\databinding\StockQuot eServiceSkeleton.java:34: package samples.databinding.data does not exist [javac] import samples.databinding.data.GetStockQuote; [javac]^ [javac] C:\AXIS2\samples\databinding\build\service\src\samples\databinding\StockQuot eServiceSkeleton.java:35: package samples.databinding.data does not exist [javac] import samples.databinding.data.GetStockQuoteResponse; [javac]^ [javac] C:\AXIS2\samples\databinding\build\service\src\samples\databinding\StockQuot eServiceSkeleton.java:36: package samples.databinding.data does not exist [javac] import samples.databinding.data.LastTrade; [javac]^ [javac] C:\AXIS2\samples\databinding\build\service\src\samples\databinding\StockQuot eServiceSkeleton.java:37: package samples.databinding.data does not exist [javac] import samples.databinding.data.Quote; [javac]^ [javac] C:\AXIS2\samples\databinding\build\service\src\samples\databinding\StockQuot eServiceSkeleton.java:56: cannot find symbol [javac] symbol : class GetStockQuote [javac] location: class samples.databinding.StockQuoteServiceSkeleton [javac] Unmarshaller unmarshaller = new Unmarshaller(GetStockQuote.class); is castorxx.jar ok? whatabout package samples.databinding.data ? (no such directory created..) Environment Win 2K and XP (same result) latest updates axis-2-1.1.1 container java SDK AS platform 9.0_01 (build b02-p01) java 1.6.0-b105 java_home C:\Program Files\java\jdk1.6.0 Thanks for a clue Jacques Parisot JPIO [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/RE%3A-Axis2-1.1.1--samples--DATABINDING--CAN%27T-GENERATE-SERVICE-tf3659786.html#a10289865 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question on getFirstChildWithName(qName) within an iterator?
Thanks, but I resolved the issue: see code below* Craig Hickman, Sr. Architect ADP Working with the previous Axis1 I was able to write a very easy implementaion for a ServiceRouter and ServiceProcessor that worked for exposing all my services through a properties lookup and hiding the Axis1 implementaion and complexity for users. Now I figure to do the same. Being a java guy, I wondered why people needed to go through all these extra steps to use code generators, even if they are nice and slick and supposedly are there to help I have issues and concerns of maintainability and ease of use of other developers in house who will be left to build on these services. Not the way to go. So I figure its best to expose only what is worthwhile in your api and create a set of utility classes that will help regular java developers build the services easily without knowing all the goodies behind the scenes. I'm well on the way of doing this and simplifying things for others. I think once I do this I'm defintely going to write a pro/con article on my experience with the Axis2 api and third party tools which it uses. I like Axis2 but think things could be improved greatly for users in the sense of thinking in java and objects in a manner that is more user friendly. Obviously this is just my own opinon and hopefully you will not take it as a negative in a detrimental sense. After I finish this would it be worthwhile to send my findings to anyone within the Axis2 community? * Test XML pull parsed: service partner-num100250/partner-num client-id146/client-id auth-codepotato123/auth-code client-user2/client-user client-id23/client-id2 browser-form-posthttp://www.someplace.com/browser-form-post operationcreate/operation client-id37/client-id3 /service The public method in the skeleton that is called by the receiver: public org.apache.axiom.soap.SOAPEnvelope create(org.apache.axis2.context.MessageContext msgContext) throws ErrorException { envelope = msgContext.getEnvelope(); try { SOAPBody body = envelope.getBody(); if (body == null) { ErrorException run = utils.getErrorMessage(WSConstants.SOAP_MESSAGE_MISSING); throw run; } // GET THE FIRST ELEMENT OMElement root = utils.getOMRootElement(envelope); // SET THE PARTNER SERVICE OBJECTS QName serviceQN = new QName(WSConstants.SERVICE); Iterator serviceIter = root.getChildrenWithName(serviceQN); getService(serviceIter); // the private method that gets the elements and sets the bean // SET THE CANDIDATE SERVICE OBJECTS QName candidateQN = new QName(WSConstants.CANDIDATE); Iterator candidate = root.getChildrenWithName(candidateQN); getCandidate(candidate); // UNLOAD THE SERVICE AND SEND THE OBJECTS TO THE SASSCORE SERVICES service = new ServiceManagerImpl(); envelope = service.create(this.getSsoBO()); // delegate that sends all to backend POJO's } catch (OMException e) { ErrorException ex = utils.getErrorMessage(WSConstants.SERVICE_FAILED); throw ex; } return envelope; } The private util method in the skel: private void getService(Iterator serv) { Map aMap = new HashMap(); //-- pass in iterator and constants for simple xml element parsing --// try { aMap = utils.getOMTextToMap(serv, Arrays.asList(WSConstants.SERVICE_ARRAY)); // call to the XMLUtils.getOMTextToMap(...) int mapsize = aMap.size(); Iterator keyValuePairs1 = aMap.entrySet().iterator(); for (int i = 0; i mapsize; i++) { Map.Entry entry = (Map.Entry) keyValuePairs1.next(); Object key = entry.getKey(); Object value = entry.getValue(); getServiceElementsSwitch(key, value); } } catch (SOAPException e) {
Re: [Axis2] Other ways of doing sessions w/o addressing
Can't answer your second question, but the first one may be no. The bottom of page 1 of the below article states Managing a SOAP session requires you to engage addressing modules on both the server side and client side: http://www.developer.com/java/web/article.php/3620661 Hopefully a more advanced user can think of another option for you. Glen Am Mittwoch, den 02.05.2007, 12:37 -0400 schrieb Vickram Jain: Is there a way to generate sessions without using the WS-Addressing module? The consumer for my application has trouble dealing with XML as it is, and so keeping our message pared down is important. I'd hate to have to fatten up my messages at this point. If this is not possible, then one other question: is addressing module only set to respond with a session token only if the caller uses the addressing headers? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Other ways of doing sessions w/o addressing
You can manage the sessions yourself by generating your own token via a return value and mandate the passing of it back in a future calls, but then you have to manage the token yourself. That does have the advantage of after a few days work its stable and flexible. I've done that with both ehcache / UUID and alternatively ejb stateful session beans. HTH, Robert On 5/2/07, Glen Mazza [EMAIL PROTECTED] wrote: Can't answer your second question, but the first one may be no. The bottom of page 1 of the below article states Managing a SOAP session requires you to engage addressing modules on both the server side and client side: http://www.developer.com/java/web/article.php/3620661 Hopefully a more advanced user can think of another option for you. Glen Am Mittwoch, den 02.05.2007, 12:37 -0400 schrieb Vickram Jain: Is there a way to generate sessions without using the WS-Addressing module? The consumer for my application has trouble dealing with XML as it is, and so keeping our message pared down is important. I'd hate to have to fatten up my messages at this point. If this is not possible, then one other question: is addressing module only set to respond with a session token only if the caller uses the addressing headers? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2 - array of object - no data ?
I got this working. For posterity's sake: you need to have a 'get' and 'set' for each param in your bean. instead of class MyBean { public String str0; public int n0; } use class MyBean { private String str0; private int n0; public String getStr() { return str0; } public void setStr(String s) { str0 = s; } public int getN() { return n0; } public void setN(int n) { n0 = n; } } Probably obvious to most people but it set me back a few days. Also - dont name your get/set something with two capital letters in a row. It won't work. I was using 'getMAC()' and 'setMAC()' and they always returned NULL. When I changed them to 'getMac()' and 'setMac()' they worked fine. One to grow on. jony wrote: One thing that I don't think I made clear: the empty values are coming from my server back to the client. The sample code you refer to seems to be more concerned with pushing values from client-server. Ill keep reading the site to better understand it. Martin Gainty wrote: Good Morniong Jony How is the parameter for ServiceClient.sendReceive(param) being constructed? If you look at this example here a createPayLoad() method is called which adds the necessary OMElement.value to OMElement.method from OMAbstractFactory http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html ??? M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: jony [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Tuesday, May 01, 2007 10:17 AM Subject: axis2 - array of object - no data ? I have a simple client that does a 'login' and then asks for an array of object (Bean) from the server. The structure of the object is String str1 String str2 int nVal The 'login' is an exchange of a random string sent from the server. The client encrypts it and sends it back. The server encrypts the original and compares it to what the client sends back. If they match the session is marked 'valid'. No problem! Almost. The strings and Boolean are exchanged correctly between the client and server. But when I return my array of object (a bean) I get 'java.lang.InstantiationException'. I checked the IO using the TCPMonitor and saw that the returned SOAP message contained the appropriate # of 'ns:return /' blocks but they were all empty! It gets better... in this same server I make a call to some JNI (C++ .DLL) which returns an array of object (another bean) and it *works*. The values go through correctly. So clearly there is some marshalling step that I need to do with my java-only code that is happening when I use JNI but not when I use the Java 'new' operator. Whats the step? Is there some other way to allocate the memory in Java such that SOAP will pick it up? -- View this message in context: http://www.nabble.com/axis2---array-of-object---no-data---tf3675269.html#a10269733 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/axis2---array-of-object---no-data---tf3675269.html#a10291689 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2 - array of object - no data ?
Hi Jony , That was one of the issue with annogen, but we have fixed the issue in 1.2 Please try with Axis2 1.2. Thanks Deepal jony wrote: I got this working. For posterity's sake: you need to have a 'get' and 'set' for each param in your bean. instead of class MyBean { public String str0; public int n0; } use class MyBean { private String str0; private int n0; public String getStr() { return str0; } public void setStr(String s) { str0 = s; } public int getN() { return n0; } public void setN(int n) { n0 = n; } } Probably obvious to most people but it set me back a few days. Also - dont name your get/set something with two capital letters in a row. It won't work. I was using 'getMAC()' and 'setMAC()' and they always returned NULL. When I changed them to 'getMac()' and 'setMac()' they worked fine. One to grow on. jony wrote: One thing that I don't think I made clear: the empty values are coming from my server back to the client. The sample code you refer to seems to be more concerned with pushing values from client-server. Ill keep reading the site to better understand it. Martin Gainty wrote: Good Morniong Jony How is the parameter for ServiceClient.sendReceive(param) being constructed? If you look at this example here a createPayLoad() method is called which adds the necessary OMElement.value to OMElement.method from OMAbstractFactory http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html ??? M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: jony [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Tuesday, May 01, 2007 10:17 AM Subject: axis2 - array of object - no data ? I have a simple client that does a 'login' and then asks for an array of object (Bean) from the server. The structure of the object is String str1 String str2 int nVal The 'login' is an exchange of a random string sent from the server. The client encrypts it and sends it back. The server encrypts the original and compares it to what the client sends back. If they match the session is marked 'valid'. No problem! Almost. The strings and Boolean are exchanged correctly between the client and server. But when I return my array of object (a bean) I get 'java.lang.InstantiationException'. I checked the IO using the TCPMonitor and saw that the returned SOAP message contained the appropriate # of 'ns:return /' blocks but they were all empty! It gets better... in this same server I make a call to some JNI (C++ .DLL) which returns an array of object (another bean) and it *works*. The values go through correctly. So clearly there is some marshalling step that I need to do with my java-only code that is happening when I use JNI but not when I use the Java 'new' operator. Whats the step? Is there some other way to allocate the memory in Java such that SOAP will pick it up? -- View this message in context: http://www.nabble.com/axis2---array-of-object---no-data---tf3675269.html#a10269733 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal The highest tower is built one brick at a time - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
embedding axis2 in a webapp and REST
I'm using axis2 v1.1.1 I'm embedding axis2 in my webapp following the example shown here: http://www.redhat.com/magazine/021jul06/features/apache_axis2/ I'm following what the article calls Use Case 2. I've added the Axis servlet to my web.xml: ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileindex.html/welcome-file /welcome-file-list servlet servlet-nameGc3Servlet/servlet-name servlet-classorg.genecruiser.ui.Gc3Servlet/servlet-class /servlet servlet-mapping servlet-nameGc3Servlet/servlet-name url-pattern/gc3Servlet/url-pattern /servlet-mapping servlet servlet-nameAxisServlet/servlet-name display-nameApache-Axis Servlet/display-name servlet-classorg.apache.axis2.transport.http.AxisServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameAxisServlet/servlet-name url-pattern/services/*/url-pattern /servlet-mapping /web-app - My services.xml is very simple: service name=GeneCruiser scope=application descriptionInitial GeneCruiser gene service /description messageReceivers messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-only; class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver/ messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /messageReceivers parameter name=ServiceTCCLcomposite/parameter parameter name=ServiceClassorg.genecruiser.service.GeneService /parameter /service -- I've included the axis2 jars in my webapp's WEB-INF/lib directory. I can get to the WSDL using this URL and it looks fine: http://localhost:8080/genecruiser3-0/services/GeneCruiser?wsdl But I can't get to my REST service (defined using POJOs). I was expecting to invoke find it using: http://localhost:8080/genecruiser3-0/services/GeneCruiser/gene?id=52051 I have successfully deployed the same REST service code to an axis2 webapp, but I need to combine my webapp and webservice in a single war file. When I used the separate axis2 webapp, I had to edit axis2/conf/axis2.xml to enable REST. But following the example shown above, there is no axis2.xml, so how do I set the disableREST parameter to false? I've tried to get to the axis2 services list using: http://localhost:8080/genecruiser3-0/services/listServices but this returns a blank page. I've looked at this example, which seems to add a serviceGroup tag to the XML (if I'm following it correctly). Is this required as well? Thanks, Jared - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2 Eclipse dependencies with Maven2
At the Maven2 repository at http://repo1.maven.org/maven2/org/apache/axis2/axis2/, all dependencies get properly placed into my lib directory, but the dependencies apart from axis2 itself don't get updated in the Eclipse .classpath. Have dependencies like axiom only been declared as provided or runtime scope, as opposed to compile? Why is this happening, how might I be able to fix it? -- View this message in context: http://www.nabble.com/Axis2-Eclipse-dependencies-with-Maven2-tf3682724.html#a10293095 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
axis 2 error, associated Fault container is not available
Hi I have a WSDL file, and i created all the java classes using WSDL2Java, and was writing a client program as below, MapsLimsTransactionsLocator locator = new MapsLimsTransactionsLocator(); MapsLimsTransactionsBindingStub stub = new MapsLimsTransactionsBindingStub(new URL( locator.getMapsLimsTransactionsPortAddress()), (Service)locator.getCall()); LimsResponse response = stub.syncPurchaseItemIn(request); But i am getting the following error, any ideas what may be missing URL http://MPPGMS11:30901/MapsLimsTransactions/MapsLimsTransactionsPort AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode: faultString: Internal server runtime exception faultActor: faultNode: faultDetail: {http://seebeyond/com/xsddefined/FaultMessages}SOAPFaultMessage:ans1:Faultfaultcode xmlns=SERVER_ERROR/faultcodefaultstring xmlns=root cause: com.stc.otd.runtime.UnmarshalException: error: Expected element [EMAIL PROTECTED]://www.pfizer.com/maplims/ at the end of the content in element [EMAIL PROTECTED]://www.pfizer.com/maplims/ error: Expected element [EMAIL PROTECTED]://www.pfizer.com/maplims/ at the end of the content in element [EMAIL PROTECTED]://www.pfizer.com/maplims/ and the associated Fault container is not available/faultstringfaultactor xmlns=wsserver/faultactordetail xmlns=root cause: com.stc.otd.runtime.UnmarshalException: error: Expected element [EMAIL PROTECTED]://www.pfizer.com/maplims/ at the end of the content in element [EMAIL PROTECTED]://www.pfizer.com/maplims/ error: Expected element [EMAIL PROTECTED]://www.pfizer.com/maplims/ at the end of the content in element [EMAIL PROTECTED]://www.pfizer.com/maplims/ and the associated Fault container is not available/detail/ans1:Fault Internal server runtime exception at org.apache.axis.message.SOAPFaultBuilder.createFault( SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement( SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement( DeserializationContext.java:1087) Ashish
Re: axis 2 error, associated Fault container is not available
It has something to do with SOAPVersion ftp://www6.software.ibm.com/software/developer/library/ws-reliablemessaging200403.pdf the good news is that if you're still using Axis 1.x you can override the SingleSOAPVersion attribute with the correct version(SOAP 1.1 version that wont produce these Fault Container errors) the not so good news is that it seems that functionality got tossed when moving to 2.x here is an excerpt from org.apache.axis2.description.AxisService This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Ashish Kulkarni To: axis-user@ws.apache.org Sent: Wednesday, May 02, 2007 3:40 PM Subject: axis 2 error, associated Fault container is not available Hi I have a WSDL file, and i created all the java classes using WSDL2Java, and was writing a client program as below, MapsLimsTransactionsLocator locator = new MapsLimsTransactionsLocator(); MapsLimsTransactionsBindingStub stub = new MapsLimsTransactionsBindingStub(new URL( locator.getMapsLimsTransactionsPortAddress()), (Service)locator.getCall()); LimsResponse response = stub.syncPurchaseItemIn(request); But i am getting the following error, any ideas what may be missing URL http://MPPGMS11:30901/MapsLimsTransactions/MapsLimsTransactionsPort AxisFault faultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode: faultString: Internal server runtime exception faultActor: faultNode: faultDetail: { http://seebeyond/com/xsddefined/FaultMessages}SOAPFaultMessage:ans1:Faultfaultcode xmlns=SERVER_ERROR/faultcodefaultstring xmlns=root cause:com.stc.otd.runtime.UnmarshalException : error: Expected element [EMAIL PROTECTED]://www.pfizer.com/maplims/ at the end of the content in element [EMAIL PROTECTED]://www.pfizer.com/maplims/ error: Expected element [EMAIL PROTECTED]://www.pfizer.com/maplims/ at the end of the content in element [EMAIL PROTECTED]://www.pfizer.com/maplims/ and the associated Fault container is not available/faultstringfaultactor xmlns=wsserver/faultactordetail xmlns=root cause:com.stc.otd.runtime.UnmarshalException : error: Expected element [EMAIL PROTECTED]://www.pfizer.com/maplims/ at the end of the content in element [EMAIL PROTECTED]://www.pfizer.com/maplims/ error: Expected element [EMAIL PROTECTED]://www.pfizer.com/maplims/ at the end of the content in element [EMAIL PROTECTED]://www.pfizer.com/maplims/ and the associated Fault container is not available/detail/ans1:Fault Internal server runtime exception at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) Ashish
Re: axis 2 error, associated Fault container is not available (part 2)
(Part 2) public static AxisService createClientSideAxisService(Definition wsdlDefinition, QName wsdlServiceName, String portName, Options options) throws AxisFault { WSDL11ToAxisServiceBuilder serviceBuilder = new WSDL11ToAxisServiceBuilder(wsdlDefinition, wsdlServiceName, portName); serviceBuilder.setServerSide(false); AxisService axisService = serviceBuilder.populateService(); options.setTo(new EndpointReference(axisService.getEndpoint())); options.setSoapVersionURI(axisService.getSoapNsUri()); return axisService; } and look at the treatment from org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter String stubName = localPart + STUB_SUFFIX; Document doc = getEmptyDocument(); Element rootElement = doc.createElement(class); addAttribute(doc, package, packageName, rootElement); addAttribute(doc, name, stubName, rootElement); addAttribute(doc, servicename, localPart, rootElement); //The target nemespace is added as the namespace for this service addAttribute(doc, namespace, axisService.getTargetNamespace(), rootElement); addAttribute(doc, interfaceName, localPart, rootElement); addAttribute(doc, callbackname, localPart + CALL_BACK_HANDLER_SUFFIX, rootElement); // add the wrap classes flag if (codeGenConfiguration.isPackClasses()) { addAttribute(doc, wrapped, yes, rootElement); } // add SOAP version addSoapVersion(doc, rootElement); my advice is to re-implement your seebeyond service in Axis 1.x I assume they provided a wsdl Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Wednesday, May 02, 2007 4:48 PM Subject: Re: axis 2 error, associated Fault container is not available It has something to do with SOAPVersion ftp://www6.software.ibm.com/software/developer/library/ws-reliablemessaging200403.pdf the good news is that if you're still using Axis 1.x you can override the SingleSOAPVersion attribute with the correct version(SOAP 1.1 version that wont produce these Fault Container errors) the not so good news is that it seems that functionality got tossed when moving to 2.x here is an excerpt from org.apache.axis2.description.AxisService This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Ashish Kulkarni To: axis-user@ws.apache.org Sent: Wednesday, May 02, 2007 3:40 PM Subject: axis 2 error, associated Fault container is not available Hi I have a WSDL file, and i created all the java classes using WSDL2Java, and was writing a client program as below, MapsLimsTransactionsLocator locator = new MapsLimsTransactionsLocator(); MapsLimsTransactionsBindingStub stub = new MapsLimsTransactionsBindingStub(new URL( locator.getMapsLimsTransactionsPortAddress()), (Service)locator.getCall()); LimsResponse response = stub.syncPurchaseItemIn(request); But i am getting the following error, any ideas what may be missing URL http://MPPGMS11:30901/MapsLimsTransactions/MapsLimsTransactionsPort AxisFault faultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode: faultString: Internal server runtime exception faultActor: faultNode: faultDetail: { http://seebeyond/com/xsddefined/FaultMessages}SOAPFaultMessage:ans1:Faultfaultcode xmlns=SERVER_ERROR/faultcodefaultstring xmlns=root cause:com.stc.otd.runtime.UnmarshalException : error: Expected element [EMAIL PROTECTED]://www.pfizer.com/maplims/ at the end of the content in element [EMAIL PROTECTED]://www.pfizer.com/maplims/ error: Expected element [EMAIL PROTECTED]://www.pfizer.com/maplims/ at the end of the content in element [EMAIL PROTECTED]://www.pfizer.com/maplims/ and the associated Fault container is not available/faultstringfaultactor xmlns=wsserver/faultactordetail xmlns=root cause:com.stc.otd.runtime.UnmarshalException : error: Expected element [EMAIL PROTECTED]://www.pfizer.com/maplims/ at the end of the content
HELP - The attachments stream can only be accessed once; either by using the IncomingAttachmentStreams class or by getting a collection of AttachmentPart objects. They cannot both be called within the
I am using Axis 1.4 and getting the above error. Thanks, Prasad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: targetnamespace hard-coded in code generated through WSDL2Java
I filed a JIRA concerning that subject: http://issues.apache.org/jira/browse/AXIS2-2600 Ulf - Original Message - From: asinghal123 [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Tuesday, May 01, 2007 7:25 PM Subject: targetnamespace hard-coded in code generated through WSDL2Java Hi, While generating code using WSDL2Java in Axis, the targetnamespace is hard-coded in the generated Java files. Because of this the code needs to be regenerated if the targetnamespace changes. Please let me know how to use same Axis generated code and use the targetname space from some properties file. Thanks. -- View this message in context: http://www.nabble.com/targetnamespace-hard-coded-in-code-generated-through-WSDL2Java-tf3676192.html#a10272597 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP - The attachments stream can only be accessed once; either by using the IncomingAttachmentStreams class or by getting a collection of AttachmentPart objects. They cannot both be called within
This may be related to AXIOM internally (I don't know if AXIOM is used in Axis 1, however). I googled the error message and it seems like the only thing that could cause that error message to occur (search on The attachments stream within [1]) is that you called *both* getPart() and getIncomingAttachmentStreams() -- but you can only call one of the methods. Glen [1] http://mail-archives.apache.org/mod_mbox/ws-commons-dev/200703.mbox/% [EMAIL PROTECTED] Am Mittwoch, den 02.05.2007, 16:20 -0500 schrieb Prasad Viswatmula: I am using Axis 1.4 and getting the above error. Thanks, Prasad - 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: what is extraElement?
The xsd:any (there's only one) will map to a single OMElement -- which may in turn contain anything. Therefore, the xsd:any is the last element (only element) in your sequence). Anne On 5/2/07, no spam [EMAIL PROTECTED] wrote: ok, but this seems to be thinking of an xsd:any element as the last item in a sequence, for extensibility purposes, most likely. That's not the case here. In the WSDL case I sent earlier, Microsoft has kindly made ViewFields essentially nothing BUT a sequence of xsd:any. It's like a C interface where everything is a void *. Excerpt: s:element minOccurs=0 maxOccurs=1 name=viewFields s:complexType mixed=true s:sequence s:any / /s:sequence /s:complexType /s:element So I don't want just one extra element, but N of them. (or to be more precise, there IS just one extra, but inside it is a sequence of a whole bunch of them.) Bob - Original Message From: Davanum Srinivas [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Tuesday, May 1, 2007 6:03:59 PM Subject: Re: what is extraElement? if your schema has xsd:any or similar construct, we generate code for attaching extra elements. You are supposed to construct OMElement's and call the setter for sending data and on the other side you can use the getter for the extra element to get the extra data corresponding to the schema construct. -- dims On 5/1/07, no spam [EMAIL PROTECTED] wrote: ok, here is a simpler question than my previous ones: what is the purpose of the extraElement in all the generated Java code? I have not been able to find Word One of documentation anywhere on this. I did get a extra element cannot be null exception in some code that I ran as an experiment, so obviously it must do something. Bob Ahhh...imagining that irresistible new car smell? Check out new cars at Yahoo! Autos. -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ahhh...imagining that irresistible new car smell? Check out new cars at Yahoo! Autos. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 and Maven
When you have a project that depends on the axis2 artifact and you do a mvn deploy, all of the Axis2 JARs (e.g. axis2-adb, axis2-codegen, etc...) get imported automatically into the WAR file as specified in my pom.xml, which I'd expect to happen. Why, though, do these JARs not get stored in my local repository like all other depedendencies that are downloaded automatically? How can I make this happen without specifying a direct dependency to each of Axis2's dependencies in my project's pom.xml? Also, I looked at the .pom of Axis2 1.2 (http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/axis2/axis2/1.2/axis2-1.2.pom) and noticed that every module is given as a modulemodules/artifactName/module. However, relative to the axis2 artifact where .pom is located, these other artifacts are not located at that relative link. Shouldn't it be module../../artifactName/module instead to get the relative links to resolve properly? (Also, there is no modules folder in this repository.) Thilina Gunarathne wrote: You can use maven2 safely by pointing to the axis2 maven2 repo..[1].. Please use this repo http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/axis2/ -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis2-and-Maven-tf3567687.html#a10296209 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: axis 2 and eclipse 3.2.1
Axis2 Eclipse plug-in is available here http://ws.apache.org/axis2/tools/index.html which can used now. From: Lahiru Sandakith [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 10:24 PM To: axis-user@ws.apache.org Subject: Re: axis 2 and eclipse 3.2.1 hi Ashish, There has been development underway already to integrate Axis2 to Eclipse. It will be ship under Eclipse WTP 2.0. If you need to try you can have the integration builds from here http://download.eclipse.org/webtools/downloads/drops/R2.0/I-I20070426103 1-200704261031/ please note there are some known issues in that primary because its still under development. Thanks Lahiru On 5/2/07, Ashish Kulkarni [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi I just downloaded eclipse 3.2.1 and was trying to create a web service using WST plugin, I think this plugin uses axis 1.3, does anyone know how to upgrade it to use axis 2? Is there any document explaining this Ashish -- Regards Lahiru Sandakith DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ---