How to trace SOAP request/response messages for Axis-C?
Hi all, I know gSOAP has SENT.log and RECV.log for SOAP request/response messages. And Axis-C can define axiscpp.conf ClientLogPath:C:\ClientLog.txt - to log SOAP request messages. But how to log SOAP response messages? Thanks! Rose _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Fwd: Re: [ANN][Axis2] Apache Axis2/C 0.92 Released]
Since question asked in both user and developer list I'm forwarding the answer to this list. Original Message Subject: Re: [ANN][Axis2] Apache Axis2/C 0.92 Released Date: Mon, 19 Jun 2006 15:19:14 +0600 From: Samisa Abeysinghe [EMAIL PROTECTED] Reply-To: Apache AXIS C Developers List axis-c-dev@ws.apache.org To: Apache AXIS C Developers List axis-c-dev@ws.apache.org References: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Franz Fehringer wrote: Hello, The feature list says Key Features 15. WSDL Code Generation Tool for Stub and skeletons (based on Java tool) Un-Implemented Architecture Features (TBD post 1.0) 4. WSDL2C Are these not the same? Well currently we use the Java tool to generate C code. However, we would ideally like to use a tool written in C to get the job done. Thanks, Samisa... Greetings Franz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN][Axis2] Apache Axis2/C 0.92 Released
Hi, The code generator for Axis2 is based on an extensible template based approach that allows it to be used for multiple languages. What Dimuthu has done is write the C extension of the Java based code generator (basically the XSLT templates). However it is desirable that the C code is generated using a C tool, partially because even i the Java tool is functionally enough it requires the JVM to be installed, which is not so desirable in a minimalistic environment. Hence the WSDL2C (the C version of the tool going with the same architecture of the java tool) is pursued as a separate requirement. Ajith On 6/19/06, Franz Fehringer [EMAIL PROTECTED] wrote: Hello, The feature list says Key Features 15. WSDL Code Generation Tool for Stub and skeletons (based on Java tool) Un-Implemented Architecture Features (TBD post 1.0) 4. WSDL2C Are these not the same? Greetings Franz Samisa Abeysinghe schrieb: Hi All, We are pleased to announce the release of Apache Axis2/C version 0.92. You can download this release from http://ws.apache.org/axis2/c/download.cgi We welcome your early feedback on this implementation. Please send your feedback to [EMAIL PROTECTED] Major Changes Since Last Release 1. Completed MTOM implementation with multiple attachment support and non-optimized case 2. Completed service client API with send robust and fire and forget 3. Added message to description hierarchy 4. Archive based deployment Model (for services and modules) 5. Code generation for WSDL using Java WSDL2Code tool 6. ADB support (with Java WSDL2Code tool) 7. WS-Security usernameToken support 8. Initial implementation of the XML Schema parser (To be used in WSDL parser and REST support) 9. Initial implementation of WSDL parser (To be used in dynamic invocation) 10. Changed double pointer environment parameters into pointer parameters to improve efficiency Key Features 1. AXIOM, an XML object model optimized for SOAP 1.1/1.2 Messages. This has complete XML infoset support. 2. Support for One-Way Messaging (In-Only) and Request Response Messaging (In-Out) 3. Module Architecture, mechanism to extend the SOAP processing model 4. Context hierarchy 5. Directory based deployment model 6. Raw XML providers 7. WS-Addressing, both the submission (2004/08) and final (2005/08) versions 8. Transports supports: HTTP * Both simple axis server and Apache2 httpd module o SSL client transport 9. Service Groups 10. Service client and operation client APIs 11. REST support (POST case) 12. Module version support 13. Archive based deployment Model 14. MTOM support 15. WSDL Code Generation Tool for Stub and skeletons (based on Java tool) New * Axis Data Binding - ADB New 16. Security module, usernameToken support New Un-Implemented Architecture Features (TBD in 1.0) 1. Sessions scoping for Application, SOAP, Transport and Request levels 2. Different character encoding support 3. REST (REpresentational State Transfer) Support (GET case) 4. Dynamic client invocation (given a WSDL, consume services dynamically) Un-Implemented Architecture Features (TBD post 1.0) 1. Security module with encryption and signing 2. Server side Web Service Policy support 3. C2WSDL 4. WSDL2C Thanks for your interest in Axis2C -- Apache Axis2C Team -- - 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] -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Proxy Service within samples
I know that some of this proxy functionality is provided in the Synapse project - but has anyone written a very simple proxy to broker Web services (similar to the Axis 1.x sample at http://genome.jouy.inra.fr/doc/web/axis-1_2_1/samples/proxy/ProxyService.java) that consists of a message receiver and a simple mediator?Any inputs / help towards getting this functionality implemented would be appreciated. Thanks,RonOn 6/17/06, Soactive Inc [EMAIL PROTECTED] wrote: Does anyone know if the following service that was provided as a sample within the Axis 1.x samples is also shipped with Axis 2? http://genome.jouy.inra.fr/doc/web/axis-1_2_1/samples/proxy/ProxyService.javaI found that this code does not work on Axis 2 since the Context classes have changed. I would appreciate if someone could point me to the Axis 2 version. Thanks,Ron
RE: A concrete axis + ssl client example.
Thanks manuel... I am using a self signed certificate and so I had to import my servers certificate (not issued by any CA, but me ;) ) into the truststore and change the default trust store as they are not available in the default CA file available in the JRE.. That is the reason that I set the truststore explicitly ofcourse I can import my servers certificate into the default file to avoid setting any properties related to trust store..you can say I do this for testing purpose Thanks again for pointing out that. I thought you could have given a few links that discuss these things (SSL, Certificates in JAVA) in detail to help all of us in the group. Cheers -Subir S -Original Message- From: Manuel Mall [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 9:08 PM To: axis-user@ws.apache.org Subject: Re: A concrete axis + ssl client example. On Friday 16 June 2006 21:07, [EMAIL PROTECTED] wrote: Hi, I guess if you use the stubs generated using WSDL2Java then there is nothing much to do. Set the trust store property and trust store password property before invoking the client. Just leave the other properties as default it self. System.setProperty(javax.net.ssl.trustStore, c:\\TraceLogs\\tempstore.jks); System.setProperty(javax.net.ssl.trustStorePassword, temp123); For client authentication you usually the the keyStore and keyStorePassword properties not the trustStore. The keyStore contains your key and the corresponding certificate presented to the server. The trustStore contains certificates of the servers you trust. Actually typically not the certificates itself but the CA certificates. The CA trustStore that comes with your JDK/JRE contains many of the commonly used CA certificates (Verisign and the like) and normally you don't need to make any changes to it. System.setProperty(javax.net.ssl.keyStore, path to keystore); System.setProperty(javax.net.ssl.keyStorePassword, password); works for me to use SSL client authentication. The biggest complication typically is to get your keyStore sorted out. The details of that depend on how you your private/public key pair and from that your certificate is issued to you. This topic is however way off this list. -Subir S -Original Message- From: ip vp [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 6:56 PM To: axis-user@ws.apache.org Subject: A concrete axis + ssl client example. Can somebody supply a concrete example of axis client accessing webservice using ssl and a client certificate ? regards Manuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A concrete axis + ssl client example.
Hey Subir, Can you provide some code or example for what you did...? I am looking to implement a similar functionality.Thanks,SaiOn 6/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks manuel...I am using a self signed certificate and so I had to import my servers certificate (not issued by any CA, but me ;) ) into the truststore and change the default trust store as they are not available in the default CA file available in the JRE.. That is the reason that I set the truststore explicitly ofcourse I can import my servers certificate into the default file to avoid setting any properties related to trust store..you can say I do this for testing purpose Thanks again for pointing out that.I thought you could have given a few links that discuss these things (SSL, Certificates in JAVA) in detail to help all of us in the group.Cheers-Subir S-Original Message- From: Manuel Mall [mailto:[EMAIL PROTECTED]]Sent: Friday, June 16, 2006 9:08 PMTo: axis-user@ws.apache.orgSubject: Re: A concrete axis + ssl client example. On Friday 16 June 2006 21:07, [EMAIL PROTECTED] wrote: Hi, I guess if you use the stubs generated using WSDL2Java then there is nothing much to do. Set the trust store property and trust store password property before invoking the client. Just leave the other properties as default it self. System.setProperty(javax.net.ssl.trustStore, c:\\TraceLogs\\tempstore.jks); System.setProperty(javax.net.ssl.trustStorePassword, temp123);For client authentication you usually the the keyStore andkeyStorePassword properties not the trustStore. The keyStore contains your key and the corresponding certificate presented to the server. ThetrustStore contains certificates of the servers you trust. Actuallytypically not the certificates itself but the CA certificates. The CA trustStore that comes with your JDK/JRE contains many of the commonlyused CA certificates (Verisign and the like) and normally you don'tneed to make any changes to it.System.setProperty(javax.net.ssl.keyStore , path tokeystore);System.setProperty(javax.net.ssl.keyStorePassword, password);works for me to use SSL client authentication.The biggest complication typically is to get your keyStore sorted out. The details of that depend on how you your private/public key pair andfrom that your certificate is issued to you. This topic is however wayoff this list. -Subir S -Original Message- From: ip vp [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 14, 2006 6:56 PM To: axis-user@ws.apache.org Subject: A concrete axis + ssl client example. Can somebody supply a concrete example of axis client accessing webservice using ssl and a client certificate ? regardsManuel-To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com-To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Setting attributes in SOAP envelope
Hi, I am changing a piece of code of mine to use Axis 2 instead of Commons HttpClient. I am able to connect to an existing web service using HttpClient. In my current code the SOAP envelope generated is as follows: ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd=\http://www.w3.org/2001/XMLSchema xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance soapenv:Header /But when I use Axis2, I don't know how to set the xmlns:xsd and xmlns:xsi property. So the SOAP envelope gets generated as follows:?xml version='1.0' encoding='utf-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/soapenv:Header /I am currently getting the SOAP envelope by using: SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();SOAPEnvelope envelope = factory.getDefaultEnvelope();Can somebody tell me how to set xmlns:xsd and xmlns:xsi properties? I checked that the service returns an error code if I don't set these properties. --Ques 2:In the continuation of the SOAP request, I get the following:ns1:ShowChart xmlns:ns1=http://someurlI get this by doing: OMNamespace namespace = factory.createOMNamespace(http://someurl,ns1);OMElement params = factory.createOMElement(ShowChart, namespace); I would like to set an extra attribute of the following:soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/in the above OMElement. How can I do this?Thanks,Sai
Re: [Axis2] Proxy Service within samples
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Soactive Inc wrote: Does anyone know if the following service that was provided as a sample within the Axis 1.x samples is also shipped with Axis 2? http://genome.jouy.inra.fr/doc/web/axis-1_2_1/samples/proxy/ProxyService.java I found that this code does not work on Axis 2 since the Context classes have changed. I would appreciate if someone could point me to the Axis 2 version. Thanks, Ron http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawRuntimeProxyTest.java?view=markup Contains a testcase on how to configure Axis2 to support Proxy services. For more info please look http://ws.apache.org/axis2/0_95/http-transport.html Thank you Saminda -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEloMRYmklbLuW6wYRAhrdAJoCsLVfrNhTaPNPtjarRFYDCMiNLACgrhFC Wr7Owqxsig4LmIGVVU7OE/Y= =s8e5 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Asynchronous Web service / JMS
hi all can someone help me get started writing a simple asynchronous Web service. i've read loads but highly confused. do i need JMS? if so, can somene help me set it up (i'm using eclipse and can't find any example of settign up JMS). To use JMS, do i need anything else: thanks for any help _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS2] Need some help to create a session
Hi Maze; Loïc MAZE wrote: Hi all, I'm a beginner with Axis 2 and I would like to know how to create a session and insert data in it. I’m especially interested in SOAP sessions. I've spent several hours on this mailing but I’ve found absolutely nothing about that. Can somebody supply a concrete example of axis session ? Any information in this regard will be highly appreciated. Well Axis2 has four types of sessions called; - request - soap session - application - transport yes we dont have enough documentation to explain the session management stuff and we dont have enough either. We have only one sample and test case which uses SOAPsession management. - Calculator sample uses soap session management - org.apache.axis2.engine.ServiceGroupContextTest Best regards, Loïc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Asynchronous Web service / JMS
hi all can someone help me get started writing a simple asynchronous Web service. i've read loads but highly confused. do i need JMS? if so, can somene help me set it up (i'm using eclipse and can't find any example of settign up JMS). To use JMS, do i need anything else: thanks for any help _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Operation Not found WSA Action = null
thank you Chinthaka, this fixed the problem !On 6/16/06, Eran Chinthaka [EMAIL PROTECTED] wrote: When you do REST invocation, we do not look at the SOAPAction header orWS-A headers in the server side. So the server side code couldn't dispatch to the proper operation.But if you change the toEpr tohttp://localhost:7001/axis2/rest/MyService/MyAction, then it shouldwork. I presume MyAction is the name of the operation. If not put the name of the operation instead of MyAction, in the epr.-- Chinthakaheikki wrote: Hi, I've seen the earlier posts on similar subjects but I have not found my solution .. I have a service that I want to access in REST style. The client code isString toEpr = http://localhost:7001/axis2/rest/MyService ;Options options = new Options();options.setTo(new EndpointReference(toEpr));options.setAction(MyAction);options.setTransportInProtocol (Constants.TRANSPORT_HTTP);options.setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE);ServiceClient sender = new ServiceClient(); sender.engageModule(new QName(Constants.MODULE_ADDRESSING));sender.setOptions(options);XMLStreamReader reader = document.newXMLStreamReader(); // document is an XMLBeans binding that already has read its data from an XML fileStAXOMBuilder builder = new StAXOMBuilder(reader);OMElement payload= builder.getDocumentElement();OMElement result = sender.sendReceive(payload); When executing, on the server I get the following exception : org.apache.axis2.AxisFault: Operation Not found EPR is /axis2/services/MyService and WSA Action =""> It makes no difference whether or not I set the action on the options, as in the above client code. It also makes no difference whether or not I set the addressing module on the sender, as in the above code. In services.xml on the server I have the following serviceGroupservice name=MyServicemessageReceiversmessageReceiver mep= http://www.w3.org/2004/08/wsdl/in-out class=com.this.and.that.MyServiceMessageReceiverInOut//messageReceiversparameter locked=false name=ServiceClass com.this.and.that.MyServiceSkeleton/parameteroperation name=MyRQ mep=http://www.w3.org/2004/08/wsdl/in-out actionMappingMyAction/actionMapping/operation/service /serviceGroup Does anyone have an idea what I'm missing or doing wrong ?? thank you Heikki Doeleman
Re: [axis1] more stable version of axis
Hello Michel, I confirm you client side timeouts work as expected in Axis 1.4 . To set client side socket timeouts, you have to invoke myStub.setTimeout(x) (in millis). Note that you retrieve your stub calling MyServiceLocator.getMyBinding() and note that setTimeout(x) is implemented by (org.apache.axis.client.Stub). This stub.setTimeout(millis) is used to both set the socket.setSotimeout(x) and the socket.connect (endpoint, timeoutInMillis) The default sender (HTTPSender) implements the previously described configuration settings. The CommonsHTTPSender (based on Jakarta Commons HTTP Client) implements the previous confiiguration settings but you can also globally define timeouts as defined on the wiki : http://wiki.apache.org/ws/FrontPage/Axis/AxisCommonsHTTP . Sample : HelloWorldBindingStub binding = (HelloWorldBindingStub) new HelloWorldServiceLocator().gethelloWorldBinding(); // Time out after a minute binding.setTimeout(6); Hope this helps, Cyrille -- Cyrille Le Clerc [EMAIL PROTECTED] [EMAIL PROTECTED] +33 6.61.33.69.86 On 6/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: thanks, I think I will use the 1.4 then, I need just to be sure that the time out configuration works for client, could you please confirm ? Michel Lequim From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anne Thomas Manes Sent: Friday, June 16, 2006 7:11 PM To: axis-user@ws.apache.org Subject: Re: [axis1] more stable version of axis The formal release came out quite recently, but the build was produced quite a while ago, and it's the one used in Geronimo. On 6/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: yes but axis 1.4 was released very recently, in april 2006, it is not too risky to use it in production ? Michel Lequim From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Anne Thomas Manes Sent: Friday, June 16, 2006 2:22 AM To: axis-user@ws.apache.org Subject: Re: [axis1] more stable version of axis Axis 1.4 fixes a number of array bugs. I recommend it over 1.2. On 6/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear axis users, we are to plan here to use axis in production but we are not sure about the version we will use, I hope someone can help us. We think axis 2 is not enough stable, too recent release and some bugs are still found (by example for the timeout configuration which is a feature we really need). We then hesitate between axis 1.2 to 1.4, axis 1.4 seems to be also very recent so we plan to use axis 1.3. Do you think it is a good choice ? thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Asynchronous Web service / JMS
can you point me to links as i can't find examples. i'm obviousy searching for the wrong thing. i've found documents expaling what Asynchronous ws are, but no examples thanks for your help From: James Clinton [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: RE: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 12:04:48 +0100 Examples on IBM developerWorks site using Axis with and without JMS. -Original Message- From: Plorks mail [mailto:[EMAIL PROTECTED] Sent: 19 June 2006 11:19 To: axis-user@ws.apache.org Subject: Asynchronous Web service / JMS hi all can someone help me get started writing a simple asynchronous Web service. i've read loads but highly confused. do i need JMS? if so, can somene help me set it up (i'm using eclipse and can't find any example of settign up JMS). To use JMS, do i need anything else: thanks for any help _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE. IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE ON NOTICE OF ITS STATUS. PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS EMAIL AND ANY ATTACHMENT FROM YOUR SYSTEM. YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY PURPOSE, NOR DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON: TO DO SO COULD BE A BREACH OF CONFIDENCE EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED AMENDMENT, AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR AMENDMENT OR THE CONSEQUENCES THEREOF. WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR VIRUSES OR UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES. WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS IN ANY EMAIL OR ATTACHMENT. --- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [axis1] more stable version of axis
thanks for all, it help us a lot Michel Lequim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cyrille Le Clerc Sent: Monday, June 19, 2006 1:41 PM To: axis-user@ws.apache.org Subject: Re: [axis1] more stable version of axis Hello Michel, I confirm you client side timeouts work as expected in Axis 1.4 . To set client side socket timeouts, you have to invoke myStub.setTimeout(x) (in millis). Note that you retrieve your stub calling MyServiceLocator.getMyBinding() and note that setTimeout(x) is implemented by (org.apache.axis.client.Stub). This stub.setTimeout(millis) is used to both set the socket.setSotimeout(x) and the socket.connect (endpoint, timeoutInMillis) The default sender (HTTPSender) implements the previously described configuration settings. The CommonsHTTPSender (based on Jakarta Commons HTTP Client) implements the previous confiiguration settings but you can also globally define timeouts as defined on the wiki : http://wiki.apache.org/ws/FrontPage/Axis/AxisCommonsHTTP . Sample : HelloWorldBindingStub binding = (HelloWorldBindingStub) new HelloWorldServiceLocator().gethelloWorldBinding(); // Time out after a minute binding.setTimeout(6); Hope this helps, Cyrille -- Cyrille Le Clerc [EMAIL PROTECTED] [EMAIL PROTECTED] +33 6.61.33.69.86 On 6/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: thanks, I think I will use the 1.4 then, I need just to be sure that the time out configuration works for client, could you please confirm ? Michel Lequim From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anne Thomas Manes Sent: Friday, June 16, 2006 7:11 PM To: axis-user@ws.apache.org Subject: Re: [axis1] more stable version of axis The formal release came out quite recently, but the build was produced quite a while ago, and it's the one used in Geronimo. On 6/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: yes but axis 1.4 was released very recently, in april 2006, it is not too risky to use it in production ? Michel Lequim From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Anne Thomas Manes Sent: Friday, June 16, 2006 2:22 AM To: axis-user@ws.apache.org Subject: Re: [axis1] more stable version of axis Axis 1.4 fixes a number of array bugs. I recommend it over 1.2. On 6/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear axis users, we are to plan here to use axis in production but we are not sure about the version we will use, I hope someone can help us. We think axis 2 is not enough stable, too recent release and some bugs are still found (by example for the timeout configuration which is a feature we really need). We then hesitate between axis 1.2 to 1.4, axis 1.4 seems to be also very recent so we plan to use axis 1.3. Do you think it is a good choice ? thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = = = = = = = = = = = = = = = = = = = = = = = = = Fortis Bank disclaimer : http://www.fortisbank.be/legal/disclaimer.htm Fortis Bank privacy policy : http://www.fortisbank.be/legal/privacy_policy.htm = = = = = = = = = = = = = = = = = = = = = = = = = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WSDL for .NET service
Good Morning All- I am working with a company which has a .NET service butthey donot produce a WSDLThis seems backwards but does Axis client have any capability to produce/generate a WSDL from a .NET service? Many Thanks,Martin -- This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you.
RE: need some help creatign an asynchronous web service
You don't need JMS. Hopefully the links I have sent you will clear things up. -Original Message- From: Plorks mail [mailto:[EMAIL PROTECTED] Sent: 19 June 2006 12:03 To: axis-user@ws.apache.org Subject: need some help creatign an asynchronous web service hi all can someone help me get started writing a simple asynchronous Web service. i've read loads but highly confused. do i need JMS? if so, can somene help me set it up (i'm using eclipse and can't find any example of settign up JMS). To use JMS, do i need anything else? can i just use axis to do this? thanks help much appreciated _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE. IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE ON NOTICE OF ITS STATUS. PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS EMAIL AND ANY ATTACHMENT FROM YOUR SYSTEM. YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY PURPOSE, NOR DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON: TO DO SO COULD BE A BREACH OF CONFIDENCE EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED AMENDMENT, AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR AMENDMENT OR THE CONSEQUENCES THEREOF. WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR VIRUSES OR UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES. WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS IN ANY EMAIL OR ATTACHMENT. --- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Generated MyServiceMessageReceiverInOut using REST causes UnsupportedOperationException
Hallo,I'm using Axis2 to create a service that is accessed in REST style.The MyServiceMessageReceiverInOut class, which was generated by Axis2's WSDL2Java utility, causes the following exception when I access the service in REST style : java.lang.UnsupportedOperationException: The parser is already consumed!at org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReader(OMElementImpl.java:635)[... more ...]The following change to the method fromOM() in MyServiceMessageReceiverInOut fixed it : public org.apache.xmlbeans.XmlObject fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type, java.util.Map extraNamespaces) { try { if (MyRQDocument.class.equals( type)) { if (extraNamespaces != null) { // // replaced this line : // // return MyRQDocument.Factory.parse(param.getXMLStreamReaderWithoutCaching (), // // by this line : // return MyRQDocument.Factory.parse(param.getXMLStreamReader(), new org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces( extraNamespaces)); } else { return MyRQDocument.Factory.parse(param.getXMLStreamReaderWithoutCaching ()); } } [... more ...]Has someone had a similar error? Can someone explain what is going on here, and whether applying this fix is a viable solution? thank you, Heikki Doeleman
[Axis2] Release planning for Axis2 ?
Hallo,I'm not sure I should ask this on the Axis users' list, but maybe someone can point me in the right direction.We're considering using Axis2 as a WebService framework. The service we're creating will be accessed in REST style. After a little tweaking, the service endpoint is doing fine, however I'm running into the following error before the response is being sent back : java.lang.NullPointerException at java.io.Writer.init(Writer.java:70) at java.io.OutputStreamWriter.init(OutputStreamWriter.java:79) at org.apache.axiom.om.impl.MTOMXMLStreamWriter .init(MTOMXMLStreamWriter.java:74) [.. more ..]This problem was fixed in the nightly builds under AXIS2-787, see http://www.mail-archive.com/axis-dev@ws.apache.org/msg17838.html .However, this company is not willing to make use of nightly builds. My question is thus, when will there be available a next release that contains this fix ?Kind regards,Heikki Doeleman
Re: Axis2 generates invalid parameters in WSDL for simple service
This is the WSDL that the Version service generates (an apache service that is installed by default). The getVersion() method takes no parameters and returns a string. According to the WSDL though it does take a parameter (wsdl:message name=getVersionMessagewsdl:part element=ns0:getVersion name=part1 //wsdl:message). When you try to use it from .NET, it generates the stubs with the extra parameter. No matter what you send then, axis returns an error. The same service under Axis 1.4 produces valid WSDL that works fine from .NET The WSDL was generated from : http://localhost:8080/axis/services/version?wsdl wsdl:definitions xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:axis2=http://ws.apache.org/axis2; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:ns0=http://axisversion.sample/xsd; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; xmlns:ns1=http://org.apache.axis2/xsd; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; targetNamespace=http://ws.apache.org/axis2;wsdl:typesxs:schema xmlns:ns=http://axisversion.sample/xsd; targetNamespace=http://axisversion.sample/xsd; elementFormDefault=unqualified attributeFormDefault=unqualified xs:element name=getVersion xs:complexType / /xs:element xs:element name=getVersionResponse xs:complexType xs:sequence xs:element type=xs:string name=return / /xs:sequence /xs:complexType /xs:element /xs:schema/wsdl:typeswsdl:message name=getVersionMessagewsdl:part element=ns0:getVersion name=part1 //wsdl:messagewsdl:message name=getVersionResponsewsdl:part element=ns0:getVersionResponse name=part1 //wsdl:messagewsdl:portType name=versionPortTypewsdl:operation name=getVersionwsdl:input message=axis2:getVersionMessage /wsdl:output message=axis2:getVersionResponse //wsdl:operation/wsdl:portTypewsdl:binding type=axis2:versionPortType name=versionSOAP11Bindingsoap:binding style=document transport=http://schemas.xmlsoap.org/soap/http; /wsdl:operation name=getVersionsoap:operation style=document soapAction=urn:getVersion /wsdl:inputsoap:body namespace=http://ws.apache.org/axis2; use=literal //wsdl:inputwsdl:outputsoap:body namespace=http://ws.apache.org/axis2; use=literal //wsdl:output/wsdl:operation/wsdl:bindingwsdl:binding type=axis2:versionPortType name=versionSOAP12Bindingsoap12:binding style=document transport=http://schemas.xmlsoap.org/soap/http; /wsdl:operation name=getVersionsoap12:operation style=document soapAction=urn:getVersion /wsdl:inputsoap12:body namespace=http://ws.apache.org/axis2; use=literal //wsdl:inputwsdl:outputsoap12:body namespace=http://ws.apache.org/axis2; use=literal //wsdl:output/wsdl:operation/wsdl:bindingwsdl:binding type=axis2:versionPortType name=versionHttpBindinghttp:binding verb=POST /wsdl:operation name=getVersionhttp:operation location=getVersion /wsdl:inputmime:content type=text/xml //wsdl:inputwsdl:outputmime:content type=text/xml //wsdl:output/wsdl:operation/wsdl:bindingwsdl:service name=versionwsdl:port binding=axis2:versionSOAP11Binding name=versionSOAP11port0soap:address location=http://localhost:8080/axis2/services/version; //wsdl:portwsdl:port binding=axis2:versionSOAP12Binding name=versionSOAP12port0soap12:address location=http://localhost:8080/axis2/services/version; //wsdl:portwsdl:port binding=axis2:versionHttpBinding name=versionHttpport0http:address location=http://localhost:8080/axis2/rest/version; //wsdl:port/wsdl:service/wsdl:definitions -- Original Message -- From: Ajith Ranabahu [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org Date: Sun, 18 Jun 2006 11:57:02 +0530 Hi, Can you post the full WSDL that was generated please ? I suppose you used Java2WSDL ? Ajith On 6/18/06, John Pletka [EMAIL PROTECTED] wrote: Perhaps I am doing something wrong, but the WSDL that Axis2 v1.0 is generating is unusable because it adds message parts that are not in the class. The same class in Axis 1.4 generates it clean. For example, for the sample class: public class TestAxis { public String getDate(){ return new java.util.Date().toString(); } } Axis2 generates wsdl:message name=getDateMessage wsdl:part element=ns0:getDate name=part1 / /wsdl:message wsdl:message name=getDateResponse wsdl:part element=ns0:getDateResponse name=part1 / /wsdl:message Looking at the original code, there should not be any message for the getDateMessage input. Basically it seems to assume that everything is coming in as an OEMessage data type. This makes integration with non-axis2 clients next to impossible. For example if Visual Studio .NET 2003 points to that WSDL file, the stubs it generates require an input parameter (which the method should not require), and since it is an axis2 internal data type, nothing you put in there is accepted by the axis2 engine. Axis1.4 generates clean wsdl from the same source that is easily called from .NET. Is there
Re: [Axis2] Namespaces with and without security turned on
Hi, Solution for JIRA issue AXIS2-771 tested OK. Great work! Regards Marcus Ludvigson On 5/27/06, Ruchith Fernando [EMAIL PROTECTED] wrote: Sure ... will take a look at it. Thanks, Ruchith On 5/26/06, Eran Chinthaka [EMAIL PROTECTED] wrote: Seems like a bug in ns handling of DOOM. Can you please create a JIRA issue (http://issues.apache.org/jira/browse/AXIS2). Ruchith, you wanna try this ? Marcus Ludvigson wrote: Hi, I am executing a webservice with and without security turned on. The result when executing the WS with security turned on is that I get excessive amount of namespaces ( axis2ns23, axis2ns24, axis2ns25, etc) compared to executing without security. I also get a ArrayIndexOutOfBoundsException the first time running with security but it works if I run it again. Who is generating all of these namespaces, and can I do something to avoid it? See info below. Regards, Marcus Ludvigson Result when executing without security: listAllServicesResponse xmlns=http://corp.net/ConfigManager/listAllServices; service secure=false servicename=Program/ service secure=false servicename=Apps/ service secure=false servicename=ConfigManager/ service secure=false servicename=version/ /listAllServicesResponse Result when executing with security: listAllServicesResponse xmlns:axis2ns21=http://corp.net/ConfigManager/listAllServices; xmlns:xenc= http://www.w3.org/2001/04/xmlenc#; xmlns:wsa=http://www.w3.org/2005/08/addressing; xmlns:wsu= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; xmlns=http://corp.net/ConfigManager/listAllServices; xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/; service secure=false servicename=Program xmlns:axis2ns22= http://corp.net/ConfigManager/listAllServices/ http://corp.net/ConfigManager/listAllServices/ service secure=false servicename=Apps xmlns:axis2ns23=http://corp.net/ConfigManager/listAllServices/ http://corp.net/ConfigManager/listAllServices/ service secure=true servicename=ConfigManager xmlns:axis2ns24=http://corp.net/ConfigManager/listAllServices/ http://corp.net/ConfigManager/listAllServices/ /listAllServicesResponse Relevant part from the WSDL: xs:schema targetNamespace=http://corp.net/ConfigManager/listAllServices; elementFormDefault=qualified xs:element name=listAllServicesResponse xs:complexType xs:sequence xs:element name=service maxOccurs=unbounded xs:complexType xs:attribute name=servicename type=xs:string / xs:attribute name=secure type=xs:boolean / /xs:complexType /xs:element /xs:sequence /xs:complexType /xs:element /xs:schema ArrayIndexOutOfBounds: SymbMap.index(Object) line: not available SymbMap.get(String) line: not available NameSpaceSymbTable.addMapping(String, String, Attr) line: not available Canonicalizer20010315ExclOmitComments(Canonicalizer20010315Excl).handleAttributesSubtree(Element, NameSpaceSymbTable) line: not available Canonicalizer20010315ExclOmitComments(CanonicalizerBase).canonicalizeSubTree(Node, NameSpaceSymbTable, Node) line: not available Canonicalizer20010315ExclOmitComments(CanonicalizerBase).engineCanonicalizeSubTree(Node, Node) line: not available Canonicalizer20010315ExclOmitComments(CanonicalizerBase).engineCanonicalize(XMLSignatureInput) line: not available Canonicalizer20010315ExclOmitComments(Canonicalizer20010315Excl).engineCanonicalize(XMLSignatureInput, String) line: not available TransformC14NExclusive.enginePerformTransform(XMLSignatureInput, OutputStream) line: not available Transform.performTransform(XMLSignatureInput, OutputStream) line: not available Transforms.performTransforms(XMLSignatureInput, OutputStream) line: not available Reference.getContentsAfterTransformation(XMLSignatureInput, OutputStream) line: not available Reference.dereferenceURIandPerformTransforms(OutputStream) line: not available Reference.calculateDigest() line: not available Reference.verify() line: not available SignedInfo(Manifest).verifyReferences(boolean) line: not available SignedInfo.verify(boolean) line: not available XMLSignature.checkSignatureValue(Key) line: not available XMLSignature.checkSignatureValue(X509Certificate) line: not available SignatureProcessor.verifyXMLSignature(Element, Crypto, X509Certificate[], Set, byte[][]) line: 264 SignatureProcessor.handleToken(Element, Crypto, Crypto, CallbackHandler, WSDocInfo, Vector, WSSConfig) line: 79 WSSecurityEngine.processSecurityHeader(Element, CallbackHandler, Crypto, Crypto) line: 269 WSSecurityEngine.processSecurityHeader(Document, String, CallbackHandler, Crypto, Crypto) line: 191 WSDoAllReceiver.processMessage (MessageContext) line: 180 WSDoAllReceiver(WSDoAllHandler).invoke(MessageContext) line: 82
Classcast exception
Hi, When I try to invoke a webservice from an object, I get the following exception: java.lang.ClassCastException: org.apache.axis.transport.http.HTTPSenderat org.apache.axis.AxisFault.makeFault(AxisFault.java:101)at org.apache.axis.client.AxisClient.invoke(AxisClient.java:216)at org.apache.axis.client.Call.invokeEngine(Call.java:2784)at org.apache.axis.client.Call.invoke(Call.java:2767)at org.apache.axis.client.Call.invoke(Call.java:2443)at org.apache.axis.client.Call.invoke(Call.java :2366)at org.apache.axis.client.Call.invoke(Call.java:1812)at com.intel.wsman.wseventing.IPMIEventHandler.receive(IPMIEventHandler.java:47)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at AggregatedListener.doGet(AggregatedListener.java :114)at AggregatedListener.doPost(AggregatedListener.java:143)at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)at org.apache.catalina.servlets.InvokerServlet.serveRequest (InvokerServlet.java:419)at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169)at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)at javax.servlet.http.HttpServlet.service (HttpServlet.java:802)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at filters.ExampleFilter.doFilter(ExampleFilter.java:101)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)at filters.ExampleFilter.doFilter(ExampleFilter.java:101)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:869)at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java :527)at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)at java.lang.Thread.run (Unknown Source)Caused by: java.lang.ClassCastException: org.apache.axis.transport.http.HTTPSenderat org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:157)at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance (WSDDDeployableItem.java:274)at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)at org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:410) at org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257)at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332)at org.apache.axis.client.AxisClient.invoke(AxisClient.java:163) Please do note thatthe webservice is up running and could be accessed otherwise. Thanks in advancefor all inputs.
Re: Asynchronous Web service / JMS
You do not need JMS in order to do async services. The user guide has examples using a callback that work just fine. JMS from an axis2 standpoint is another transport and has advantages / disadvantages from the callback approach. Although I've used JMS a lot I've never done web services with them, though I have used the callback method as described in the user guide with great success. HTH, Robert http://www.braziloutsource.com/ On 6/19/06, Plorks mail [EMAIL PROTECTED] wrote: can you point me to links as i can't find examples. i'm obviousy searching for the wrong thing. i've found documents expaling what Asynchronous ws are, but no examples thanks for your help From: James Clinton [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: RE: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 12:04:48 +0100 Examples on IBM developerWorks site using Axis with and without JMS. -Original Message- From: Plorks mail [mailto:[EMAIL PROTECTED] Sent: 19 June 2006 11:19 To: axis-user@ws.apache.org Subject: Asynchronous Web service / JMS hi all can someone help me get started writing a simple asynchronous Web service. i've read loads but highly confused. do i need JMS? if so, can somene help me set it up (i'm using eclipse and can't find any example of settign up JMS). To use JMS, do i need anything else: thanks for any help _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE. IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE ON NOTICE OF ITS STATUS. PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS EMAIL AND ANY ATTACHMENT FROM YOUR SYSTEM. YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY PURPOSE, NOR DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON: TO DO SO COULD BE A BREACH OF CONFIDENCE EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED AMENDMENT, AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR AMENDMENT OR THE CONSEQUENCES THEREOF. WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR VIRUSES OR UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES. WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS IN ANY EMAIL OR ATTACHMENT. --- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - 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]
deploying axis 2 ver 1.0
Please can someone tell me how i deploy Axis 2 to Tomcat? I hae downloaded the binary and there is no axis2.war file, neither is there a webapps directory I'm reading a tutorial, this is for Axis 2 ver 0.92 Quote Deploying Axis2 Deploying Axis2 is as simple as Axis 1. First, find the Axis2 Web application, axis2.war, in the webapps dir of Axis2 binary distribution. Deploy this war file in a servlet container. In Tomcat when unpackWARs is set to true in the server configuration, just copying the axis2.war to $TOMCAT_HOME/webapps dir is enough to deploy Axis2. Now start Tomcat and access http://localhost:port/axis2. This will show the Axis2 welcome page, click on the 'Validate' Link on this page. You should get 'Axis2 Happiness page' without any errors. Many thanks _ The new MSN Search Toolbar now includes Desktop search! http://join.msn.com/toolbar/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Asynchronous Web service / JMS
hi Robert, Which userguide are you referring to / for what version of Axis? many thanks From: robert lazarski [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: Re: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 10:34:41 -0300 You do not need JMS in order to do async services. The user guide has examples using a callback that work just fine. JMS from an axis2 standpoint is another transport and has advantages / disadvantages from the callback approach. Although I've used JMS a lot I've never done web services with them, though I have used the callback method as described in the user guide with great success. HTH, Robert http://www.braziloutsource.com/ On 6/19/06, Plorks mail [EMAIL PROTECTED] wrote: can you point me to links as i can't find examples. i'm obviousy searching for the wrong thing. i've found documents expaling what Asynchronous ws are, but no examples thanks for your help From: James Clinton [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: RE: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 12:04:48 +0100 Examples on IBM developerWorks site using Axis with and without JMS. -Original Message- From: Plorks mail [mailto:[EMAIL PROTECTED] Sent: 19 June 2006 11:19 To: axis-user@ws.apache.org Subject: Asynchronous Web service / JMS hi all can someone help me get started writing a simple asynchronous Web service. i've read loads but highly confused. do i need JMS? if so, can somene help me set it up (i'm using eclipse and can't find any example of settign up JMS). To use JMS, do i need anything else: thanks for any help _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE. IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE ON NOTICE OF ITS STATUS. PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS EMAIL AND ANY ATTACHMENT FROM YOUR SYSTEM. YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY PURPOSE, NOR DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON: TO DO SO COULD BE A BREACH OF CONFIDENCE EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED AMENDMENT, AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR AMENDMENT OR THE CONSEQUENCES THEREOF. WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR VIRUSES OR UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES. WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS IN ANY EMAIL OR ATTACHMENT. --- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - 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] _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Asynchronous Web service / JMS
Cheers for those links, much appreiated From: James Clinton [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: RE: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 13:16:04 +0100 Without JMS http://www-128.ibm.com/developerworks/webservices/library/ws-webaxis1/in dex.html With JMS http://www-128.ibm.com/developerworks/webservices/library/ws-jms/ -Original Message- From: Plorks mail [mailto:[EMAIL PROTECTED] Sent: 19 June 2006 12:43 To: axis-user@ws.apache.org Subject: RE: Asynchronous Web service / JMS can you point me to links as i can't find examples. i'm obviousy searching for the wrong thing. i've found documents expaling what Asynchronous ws are, but no examples thanks for your help From: James Clinton [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: RE: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 12:04:48 +0100 Examples on IBM developerWorks site using Axis with and without JMS. -Original Message- From: Plorks mail [mailto:[EMAIL PROTECTED] Sent: 19 June 2006 11:19 To: axis-user@ws.apache.org Subject: Asynchronous Web service / JMS hi all can someone help me get started writing a simple asynchronous Web service. i've read loads but highly confused. do i need JMS? if so, can somene help me set it up (i'm using eclipse and can't find any example of settign up JMS). To use JMS, do i need anything else: thanks for any help _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE. IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE ON NOTICE OF ITS STATUS. PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS EMAIL AND ANY ATTACHMENT FROM YOUR SYSTEM. YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY PURPOSE, NOR DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON: TO DO SO COULD BE A BREACH OF CONFIDENCE EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED AMENDMENT, AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR AMENDMENT OR THE CONSEQUENCES THEREOF. WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR VIRUSES OR UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES. WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS IN ANY EMAIL OR ATTACHMENT. --- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE. IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE ON NOTICE OF ITS STATUS. PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS EMAIL AND ANY ATTACHMENT FROM YOUR SYSTEM. YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY PURPOSE, NOR DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON: TO DO SO COULD BE A BREACH OF CONFIDENCE EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED AMENDMENT, AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR AMENDMENT OR THE CONSEQUENCES THEREOF. WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR VIRUSES OR UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES. WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS IN ANY EMAIL OR ATTACHMENT. --- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters
Re: deploying axis 2 ver 1.0
Hi, Did you check http://ws.apache.org/axis2/download/1_0/download.cgi ? Try War Distribution. You can get axis2.war . Regards, kinichiro __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WSDL2Java Output
Hello, Is there any documentation available that describes the naming conventions used by WSDL2Java when it creates the Java web service client .java files? That is, for a given WSDL is it possible to know in advance exactly what .java files will be produced? Thanks, Bob Kmak Bob Kmak STAFF SOFTWARE ENGINEER RESEARCH DEVELOPMENT INTERVOICE, INC. P: (972) 454-8914 [EMAIL PROTECTED] Intervoice: Connecting People and Information. This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are the intended recipient, you must treat the information in confidence and in accordance with all laws related to the privacy and confidentiality of such information. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies of this email, including all attachments.
Re: Axis2 generates invalid parameters in WSDL for simple service
I don't think it's an error that java2wsdl generates a wrapped interface (that's what .NET would do). The problem is that Axis2 doesn't automatically unwrap the message. Based on the axis-dev discussion list, I think this issue will be resolved in Axis2 v1.1. I see three significant issues that need to be addressed, all of which have been raised before:1- Axis2 needs to support an empty soap:Body element2- java2wsdl should NOT generate a wrapped interface until auto-unwrapping is supported. 3- java2wsdl should NOT include the namespace attribute in the soap:body definitions of document style services.AnneOn 6/19/06, John Pletka [EMAIL PROTECTED] wrote:This is the WSDL that the Version service generates (an apache service that is installed by default).The getVersion() method takes noparameters and returns a string.According to the WSDL though it doestake a parameter (wsdl:message name=getVersionMessagewsdl:part element=ns0:getVersion name=part1 //wsdl:message).When you try to use it from .NET, it generates the stubs with theextra parameter.No matter what you send then, axis returns an error. The same service under Axis 1.4 produces valid WSDL that works finefrom .NETThe WSDL was generated from : http://localhost:8080/axis/services/version?wsdl wsdl:definitions xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/xmlns:axis2=http://ws.apache.org/axis2 xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/xmlns:ns0=http://axisversion.sample/xsd xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/xmlns:http=http://schemas.xmlsoap.org/wsdl/http/ xmlns:ns1=http://org.apache.axis2/xsdxmlns:xs=http://www.w3.org/2001/XMLSchemaxmlns:soap= http://schemas.xmlsoap.org/wsdl/soap/targetNamespace=http://ws.apache.org/axis2wsdl:typesxs:schema xmlns:ns=http://axisversion.sample/xsdtargetNamespace=http://axisversion.sample/xsdelementFormDefault=unqualified attributeFormDefault=unqualified xs:element name=getVersionxs:complexType //xs:elementxs:element name=getVersionResponsexs:complexTypexs:sequencexs:element type=xs:string name=return / /xs:sequence/xs:complexType/xs:element/xs:schema/wsdl:typeswsdl:messagename=getVersionMessagewsdl:part element=ns0:getVersion name=part1 //wsdl:messagewsdl:messagename=getVersionResponsewsdl:part element=ns0:getVersionResponsename=part1 //wsdl:messagewsdl:portType name=versionPortTypewsdl:operation name=getVersionwsdl:inputmessage=axis2:getVersionMessage /wsdl:outputmessage=axis2:getVersionResponse //wsdl:operation/wsdl:portTypewsdl:bindingtype=axis2:versionPortType name=versionSOAP11Bindingsoap:bindingstyle=document transport= http://schemas.xmlsoap.org/soap/http/wsdl:operation name=getVersionsoap:operation style=documentsoapAction=urn:getVersion /wsdl:inputsoap:body namespace=http://ws.apache.org/axis2 use=literal//wsdl:inputwsdl:outputsoap:bodynamespace= http://ws.apache.org/axis2 use=literal//wsdl:output/wsdl:operation/wsdl:bindingwsdl:bindingtype=axis2:versionPortTypename=versionSOAP12Bindingsoap12:binding style=document transport=http://schemas.xmlsoap.org/soap/http /wsdl:operationname=getVersionsoap12:operation style=document soapAction=urn:getVersion /wsdl:inputsoap12:bodynamespace=http://ws.apache.org/axis2 use=literal//wsdl:inputwsdl:outputsoap12:body namespace=http://ws.apache.org/axis2 use=literal//wsdl:output/wsdl:operation/wsdl:bindingwsdl:bindingtype=axis2:versionPortType name=versionHttpBindinghttp:binding verb=POST /wsdl:operation name=getVersionhttp:operationlocation=getVersion /wsdl:inputmime:content type=text/xml//wsdl:inputwsdl:outputmime:content type=text/xml //wsdl:output/wsdl:operation/wsdl:bindingwsdl:servicename=versionwsdl:port binding=axis2:versionSOAP11Bindingname=versionSOAP11port0soap:address location=http://localhost:8080/axis2/services/version//wsdl:portwsdl:port binding=axis2:versionSOAP12Bindingname=versionSOAP12port0soap12:address location=http://localhost:8080/axis2/services/version//wsdl:portwsdl:port binding=axis2:versionHttpBindingname=versionHttpport0http:address location=http://localhost:8080/axis2/rest/version//wsdl:port/wsdl:service/wsdl:definitions-- Original Message -- From: Ajith Ranabahu [EMAIL PROTECTED]Reply-To: axis-user@ws.apache.orgDate:Sun, 18 Jun 2006 11:57:02 +0530 Hi,Can you post the full WSDL that was generated please ? I suppose youused Java2WSDL ?AjithOn 6/18/06, John Pletka [EMAIL PROTECTED] wrote: Perhaps I am doing something wrong, but the WSDL that Axis2 v1.0 is generating is unusable because it adds message parts that are not in the class.The same class in Axis 1.4 generates it clean. For example, for the sample class: public class TestAxis { public String getDate(){ return new java.util.Date().toString(); } } Axis2 generates wsdl:message name=getDateMessage wsdl:part element=ns0:getDate name=part1 / /wsdl:message wsdl:message name=getDateResponse wsdl:part element=ns0:getDateResponse name=part1 / /wsdl:message Looking at the original code, there should not be any message for the getDateMessage
Re: deploying axis 2 ver 1.0
thanks From: Kinichiro Inoguchi [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: Re: deploying axis 2 ver 1.0 Date: Mon, 19 Jun 2006 07:46:12 -0700 (PDT) Hi, Did you check http://ws.apache.org/axis2/download/1_0/download.cgi ? Try War Distribution. You can get axis2.war . Regards, kinichiro __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN Search Toolbar now includes Desktop search! http://join.msn.com/toolbar/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL for .NET service
That doesn't make sense. I didn't think you can produce a .NET service without producing a WSDL. Perhaps they've just secured the URL so you can't retrieve it.If they'll give you the service code, you could generate your own WSDL from it -- but you'd need to install .NET to do it. And then you'd need to verify that the WSDL you generated matches that of the deployed service. Otherwise, you can write the WSDL by hand. You need the following information:- the schema of the input, output, and fault messages- the operation names- the binding settings- the access point You might be able to reconstruct the WSDL from some sample messages.Personally, I'd insist that they provide you with a WSDL.AnneOn 6/19/06, Martin Gainty [EMAIL PROTECTED] wrote: Good Morning All- I am working with a company which has a .NET service butthey donot produce a WSDLThis seems backwards but does Axis client have any capability to produce/generate a WSDL from a .NET service? Many Thanks,Martin -- This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you.
Re: [Axis2] Setting attributes in SOAP envelope
Axis2 doesn't support SOAP Encoding.On 6/19/06, Sai Arunachalam [EMAIL PROTECTED] wrote: Hi, I am changing a piece of code of mine to use Axis 2 instead of Commons HttpClient. I am able to connect to an existing web service using HttpClient. In my current code the SOAP envelope generated is as follows: ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd=\http://www.w3.org/2001/XMLSchema xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance soapenv:Header /But when I use Axis2, I don't know how to set the xmlns:xsd and xmlns:xsi property. So the SOAP envelope gets generated as follows:?xml version='1.0' encoding='utf-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ soapenv:Header /I am currently getting the SOAP envelope by using: SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();SOAPEnvelope envelope = factory.getDefaultEnvelope();Can somebody tell me how to set xmlns:xsd and xmlns:xsi properties? I checked that the service returns an error code if I don't set these properties. --Ques 2:In the continuation of the SOAP request, I get the following:ns1:ShowChart xmlns:ns1= http://someurlI get this by doing: OMNamespace namespace = factory.createOMNamespace(http://someurl,ns1);OMElement params = factory.createOMElement(ShowChart, namespace); I would like to set an extra attribute of the following:soapenv:encodingStyle= http://schemas.xmlsoap.org/soap/encoding/in the above OMElement. How can I do this?Thanks,Sai
Re: creating complex types for Axis
Yes.If you're starting from code, define a bean. java2wsdl will generate a matching complexType. Or, if you're starting from WSDL/Schema, define the complexType, and wsdl2java will generate a matching bean. AnneOn 6/18/06, Martin Gainty [EMAIL PROTECTED] wrote: Good Morning All-Is there a way to create ComplexTypes such as Arrays, Structures for use in wither Request or Response for AxisServlet???Many Thanks,Martin -- This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you.
Re: getting started help
By jws, are you referring to Java Web Services, BEA's metadata-driven system that forms the foundation of JAX-WS, or the trivial little auto-deploy feature of Axis? If the latter, then bear in mind that jws is useful for only the most trivial RPC-oriented invocations, in which all parameters are simple types. AnneOn 6/18/06, hank williams [EMAIL PROTECTED] wrote: I am developing an application for which I was intending to use adifferent RPC strategy for use with a flash application. Unfortunatelythe company (adobe/macromedia) has abandoned their remotingtechnology for allowing flash to access java pojos. Now if you want a decent solution you have to spend 6k or 20k for their newtechnology.So now I need to use something else. Flash supports web services, sothis seems like a choice, but it is 150 times harder than their old solution and I am overwhelmed. All of the documentation seemscircular, where in order to understand A you must understand B and tounderstand B you must understand C and D etc. - couldnt they make thiseasier :). Anyway, I love the idea of jws, but it seems like the designers didntthink it was a good idea to make things too simple because when youread about it they immediately discourage its use.But I am stubborn and would at least like to try to use jws, but I cant seem to find any detailed documentation on what it will or wontdo - (great way to discourage use but I am persistent!).Thatcalculator example in the docs for jws is great, but, for example howwould I send a table of information for populating a dataGrid? For example, will it convert an Array, or an ArrayList of objects?And I would love a more detailed explanation of what jws *wont* dothat I will really need. I am hoping that the designers visions ofwhat is necessary is just much grander than what I need and that it would actually be fine. Because the learning curve for this stuff,particularly for a project that is at the end of its development cycle- not the beginning - is steep. This is seeming super painful.Regards Hank-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2]is this [bug] already fixed?
Hi I was trying a 2 way encryption between a client and my service and the call ended with an exception as below. The client to server goes fine and the error comes when the server is sending back the encrypted response back to the client. The tcp mon shows a SignatureConfirmation element in the response soap header and thats what probably the client side axis2 receiver is cribbing abt! I remember seeing some emails on this before - I am using axis2 released 1.0 version. If fixed can anyone tell me what I have to do to take the fix? thanks Anamitra [java] org.apache.axis2.AxisFault: WSHandler: Check Signature confirmation: got a SC element, but no stored SV; nested exception is: [java] org.apache.ws.security.WSSecurityException: WSHandler: Check Sig ature confirmation: got a SC element, but no stored SV [java] at org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDo llReceiver.java:336) [java] at org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoA lHandler.java:82) [java] at org.apache.axis2.engine.Phase.invoke(Phase.java:381) [java] at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473 [java] at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:44 ) [java] at org.apache.axis2.description.OutInAxisOperationClient.send(Ou InAxisOperation.java:355) [java] at org.apache.axis2.description.OutInAxisOperationClient.execute OutInAxisOperation.java:279) [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie t.java:457) [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie t.java:399) [java] at testme.TestAxiom.main(TestAxiom.java:43) [java] Caused by: org.apache.ws.security.WSSecurityException: WSHandler: Ch ck Signature confirmation: got a SC element, but no stored SV [java] at org.apache.ws.security.handler.WSHandler.checkSignatureConfir ation(WSHandler.java:294) [java] at org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDo llReceiver.java:196) [java] ... 9 more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting started help
well, I was refering to the trivial little auto-deploy feature of Axis. Its a shame they didnt make it able to support collections, because there is absolutely (as far as I can tell) no technical reason not to. I am sure there are reasons to use all of the features of wsdl, but the learning curve is steep and when you can offer a simpler solution there seems like no reason not to. I dont need all the features of wsdl and I just can afford the weeks it will take (on my present course, and based on the available docs) to learn how to do it the non- trivial little way. But perhaps I am over estimating the complexity of this. Is there any kind of quick start that is easy to understand and doesnt require a hundred pages of reading? I find the Axis website fairly unhelpful. Hank On 6/19/06, Anne Thomas Manes [EMAIL PROTECTED] wrote: By jws, are you referring to Java Web Services, BEA's metadata-driven system that forms the foundation of JAX-WS, or the trivial little auto-deploy feature of Axis? If the latter, then bear in mind that jws is useful for only the most trivial RPC-oriented invocations, in which all parameters are simple types. Anne On 6/18/06, hank williams [EMAIL PROTECTED] wrote: I am developing an application for which I was intending to use a different RPC strategy for use with a flash application. Unfortunately the company (adobe/macromedia) has abandoned their remoting technology for allowing flash to access java pojos. Now if you want a decent solution you have to spend 6k or 20k for their new technology. So now I need to use something else. Flash supports web services, so this seems like a choice, but it is 150 times harder than their old solution and I am overwhelmed. All of the documentation seems circular, where in order to understand A you must understand B and to understand B you must understand C and D etc. - couldnt they make this easier :). Anyway, I love the idea of jws, but it seems like the designers didnt think it was a good idea to make things too simple because when you read about it they immediately discourage its use. But I am stubborn and would at least like to try to use jws, but I cant seem to find any detailed documentation on what it will or wont do - (great way to discourage use but I am persistent!). That calculator example in the docs for jws is great, but, for example how would I send a table of information for populating a dataGrid? For example, will it convert an Array, or an ArrayList of objects? And I would love a more detailed explanation of what jws *wont* do that I will really need. I am hoping that the designers visions of what is necessary is just much grander than what I need and that it would actually be fine. Because the learning curve for this stuff, particularly for a project that is at the end of its development cycle - not the beginning - is steep. This is seeming super painful. Regards Hank - 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: Asynchronous Web service / JMS
Take a look here and see if that is what you are looking for: http://ws.apache.org/axis2/1_0/userguide3.html#EchoNonBlockingClient HTH, Robert http://www.braziloutsource.com/ On 6/19/06, Plorks mail [EMAIL PROTECTED] wrote: hi Robert, Which userguide are you referring to / for what version of Axis? many thanks From: robert lazarski [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: Re: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 10:34:41 -0300 You do not need JMS in order to do async services. The user guide has examples using a callback that work just fine. JMS from an axis2 standpoint is another transport and has advantages / disadvantages from the callback approach. Although I've used JMS a lot I've never done web services with them, though I have used the callback method as described in the user guide with great success. HTH, Robert http://www.braziloutsource.com/ On 6/19/06, Plorks mail [EMAIL PROTECTED] wrote: can you point me to links as i can't find examples. i'm obviousy searching for the wrong thing. i've found documents expaling what Asynchronous ws are, but no examples thanks for your help From: James Clinton [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: RE: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 12:04:48 +0100 Examples on IBM developerWorks site using Axis with and without JMS. -Original Message- From: Plorks mail [mailto:[EMAIL PROTECTED] Sent: 19 June 2006 11:19 To: axis-user@ws.apache.org Subject: Asynchronous Web service / JMS hi all can someone help me get started writing a simple asynchronous Web service. i've read loads but highly confused. do i need JMS? if so, can somene help me set it up (i'm using eclipse and can't find any example of settign up JMS). To use JMS, do i need anything else: thanks for any help _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE. IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE ON NOTICE OF ITS STATUS. PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS EMAIL AND ANY ATTACHMENT FROM YOUR SYSTEM. YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY PURPOSE, NOR DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON: TO DO SO COULD BE A BREACH OF CONFIDENCE EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED AMENDMENT, AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR AMENDMENT OR THE CONSEQUENCES THEREOF. WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR VIRUSES OR UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES. WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS IN ANY EMAIL OR ATTACHMENT. --- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - 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] _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - 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]
getting in a different form the soap message.
Hello all. I have a log that collect the SOAP messages generated by axis. My problem is for the format that it have. An example of this SOAP
AXIS 2 codegen wizard
hi all, i'm using the above wizard downloaded from the apache site and selecting java to wsdl. I'm using eclipse and created a dynamic web project, when i go to the above wizard to create a wsdl from java i type in the class name and add all the jar files from my library folder but it gives me a java.lang.ClassNotFoundException I'm following this tutorial http://www-128.ibm.com/developerworks/webservices/library/ws-webaxis1/index.html i created a projetc called test and in my src folder i have test-StockService, so my class should be test.StockService# any help much appreciated _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Asynchronous Web service / JMS
yes thanks that is what i'm looking for From: robert lazarski [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: Re: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 12:58:47 -0300 Take a look here and see if that is what you are looking for: http://ws.apache.org/axis2/1_0/userguide3.html#EchoNonBlockingClient HTH, Robert http://www.braziloutsource.com/ On 6/19/06, Plorks mail [EMAIL PROTECTED] wrote: hi Robert, Which userguide are you referring to / for what version of Axis? many thanks From: robert lazarski [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: Re: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 10:34:41 -0300 You do not need JMS in order to do async services. The user guide has examples using a callback that work just fine. JMS from an axis2 standpoint is another transport and has advantages / disadvantages from the callback approach. Although I've used JMS a lot I've never done web services with them, though I have used the callback method as described in the user guide with great success. HTH, Robert http://www.braziloutsource.com/ On 6/19/06, Plorks mail [EMAIL PROTECTED] wrote: can you point me to links as i can't find examples. i'm obviousy searching for the wrong thing. i've found documents expaling what Asynchronous ws are, but no examples thanks for your help From: James Clinton [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: RE: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 12:04:48 +0100 Examples on IBM developerWorks site using Axis with and without JMS. -Original Message- From: Plorks mail [mailto:[EMAIL PROTECTED] Sent: 19 June 2006 11:19 To: axis-user@ws.apache.org Subject: Asynchronous Web service / JMS hi all can someone help me get started writing a simple asynchronous Web service. i've read loads but highly confused. do i need JMS? if so, can somene help me set it up (i'm using eclipse and can't find any example of settign up JMS). To use JMS, do i need anything else: thanks for any help _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE. IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE ON NOTICE OF ITS STATUS. PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS EMAIL AND ANY ATTACHMENT FROM YOUR SYSTEM. YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY PURPOSE, NOR DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON: TO DO SO COULD BE A BREACH OF CONFIDENCE EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED AMENDMENT, AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR AMENDMENT OR THE CONSEQUENCES THEREOF. WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR VIRUSES OR UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES. WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS IN ANY EMAIL OR ATTACHMENT. --- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - 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] _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - 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] _ The new MSN
See SOAP message more readable.
Hello all. I have a problem with the manner the axis generation of a SOAP message. I need to 'see' the message without multiRef or href tags but AXIS automatically generates that tags when I get it by means of method getSOAPPartAsString() of Message class . ¿Is there any manner to get the SOAP message but without that tags? Here is a piece of my SOAP message tha bring me AXIS : soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance soapenv:Body ns1:processTkt soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xmlns:ns1=impl.wsresiber.emision.iberia.com in0 href="" / /ns1:processTkt multiRef id=id0 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns2:TktInfo xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ xmlns:ns2=http://ints.wsresiber.emision.iberia.com loc_r xsi:type=xsd:stringTT22A/loc_r loc_a xsi:type=xsd:stringAFX002/loc_a e_r xsi:type=xsd:stringendorsement restriction value/e_r name xsi:type=xsd:stringJose Luis Moreno/name num_pax xsi:type=xsd:int2/num_pax fp xsi:type=xsd:stringWith VISA card./fp b_fare href="" / eqv xsi:type=soapenc:double232.222/eqv br xsi:type=soapenc:double111.22/br taxes xsi:type=soapenc:Array soapenc:arrayType=ns2:Tax[3] item href="" / item href="" / item href="" / /taxes total href="" / tkts xsi:type=soapenc:Array soapenc:arrayType=ns2:Tkt[2] item href="" / item href="" / /tkts foids xsi:type=soapenc:Array soapenc:arrayType=ns2:Foid[3] item href="" / item href="" / item href="" / /foids tkt_date xsi:type=xsd:string23OCT06/tkt_date tkt_1a href="" / bkg_1a href="" / ch xsi:type=soapenc:int32/ch sf href="" / gran_tot href="" / /multiRef multiRef id=id6 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns3:Tkt xmlns:ns3=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ tkt_nr xsi:type=xsd:string1/tkt_nr f_calc xsi:type=xsd:stringFare calc value/f_calc coupons xsi:type=soapenc:Array soapenc:arrayType=ns3:Coupon[4] item href="" / item href="" / item href="" / item href="" / /coupons /multiRef multiRef id=id7 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns4:Tkt xmlns:ns4=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ tkt_nr xsi:type=xsd:string2/tkt_nr f_calc xsi:type=xsd:stringFare calc value/f_calc coupons xsi:type=soapenc:Array soapenc:arrayType=ns4:Coupon[2] item href="" / item href="" / /coupons /multiRef multiRef id=id11 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns5:Info xmlns:ns5=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ offc xsi:type=xsd:stringOFFCEMISIONOFFC/offc iata xsi:type=xsd:stringIATAEMIISONIATA/iata /multiRef multiRef id=id9 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns6:Foid xmlns:ns6=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ foid xsi:type=xsd:stringFOIDAACAAABAABAFOID/foid /multiRef multiRef id=id2 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns7:Tax xmlns:ns7=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ amt xsi:type=xsd:string10.221/amt tipoTasa xsi:type=xsd:string1ab/tipoTasa /multiRef multiRef id=id13 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns8:Ammount xmlns:ns8=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ amt xsi:type=xsd:double122.22/amt curr xsi:type=xsd:stringEUR/curr /multiRef multiRef id=id4 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns9:Tax xmlns:ns9=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ amt xsi:type=xsd:string10.221/amt tipoTasa xsi:type=xsd:string1ab/tipoTasa /multiRef multiRef id=id10 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns10:Foid xmlns:ns10=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ foid xsi:type=xsd:stringFOIDAAZAAAXFBOID/foid /multiRef multiRef id=id12 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns11:Info xmlns:ns11=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ offc xsi:type=xsd:stringOFFCRESERBAOFFC/offc iata xsi:type=xsd:stringIATARESERBAIATA/iata /multiRef . . . .
Re: [Axis2] Setting attributes in SOAP envelope
Is setting the XSD and XSI properties also not allowed in Axis2? On 6/19/06, Anne Thomas Manes [EMAIL PROTECTED] wrote: Axis2 doesn't support SOAP Encoding. On 6/19/06, Sai Arunachalam [EMAIL PROTECTED] wrote: Hi, I am changing a piece of code of mine to use Axis 2 instead of Commons HttpClient. I am able to connect to an existing web service using HttpClient. In my current code the SOAP envelope generated is as follows: ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd=\http://www.w3.org/2001/XMLSchema xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance soapenv:Header / But when I use Axis2, I don't know how to set the xmlns:xsd and xmlns:xsi property. So the SOAP envelope gets generated as follows:?xml version='1.0' encoding='utf-8'? soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/ soapenv:Header /I am currently getting the SOAP envelope by using: SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();SOAPEnvelope envelope = factory.getDefaultEnvelope();Can somebody tell me how to set xmlns:xsd and xmlns:xsi properties? I checked that the service returns an error code if I don't set these properties. --Ques 2:In the continuation of the SOAP request, I get the following:ns1:ShowChart xmlns:ns1= http://someurlI get this by doing: OMNamespace namespace = factory.createOMNamespace( http://someurl,ns1);OMElement params = factory.createOMElement(ShowChart, namespace);I would like to set an extra attribute of the following:soapenv:encodingStyle= http://schemas.xmlsoap.org/soap/encoding/in the above OMElement. How can I do this? Thanks, Sai
Re: Asynchronous Web service / JMS
do you know if there's anything in the userguide for creating async webservice server-side? many thanks From: robert lazarski [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: Re: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 12:58:47 -0300 Take a look here and see if that is what you are looking for: http://ws.apache.org/axis2/1_0/userguide3.html#EchoNonBlockingClient HTH, Robert http://www.braziloutsource.com/ On 6/19/06, Plorks mail [EMAIL PROTECTED] wrote: hi Robert, Which userguide are you referring to / for what version of Axis? many thanks From: robert lazarski [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: Re: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 10:34:41 -0300 You do not need JMS in order to do async services. The user guide has examples using a callback that work just fine. JMS from an axis2 standpoint is another transport and has advantages / disadvantages from the callback approach. Although I've used JMS a lot I've never done web services with them, though I have used the callback method as described in the user guide with great success. HTH, Robert http://www.braziloutsource.com/ On 6/19/06, Plorks mail [EMAIL PROTECTED] wrote: can you point me to links as i can't find examples. i'm obviousy searching for the wrong thing. i've found documents expaling what Asynchronous ws are, but no examples thanks for your help From: James Clinton [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: RE: Asynchronous Web service / JMS Date: Mon, 19 Jun 2006 12:04:48 +0100 Examples on IBM developerWorks site using Axis with and without JMS. -Original Message- From: Plorks mail [mailto:[EMAIL PROTECTED] Sent: 19 June 2006 11:19 To: axis-user@ws.apache.org Subject: Asynchronous Web service / JMS hi all can someone help me get started writing a simple asynchronous Web service. i've read loads but highly confused. do i need JMS? if so, can somene help me set it up (i'm using eclipse and can't find any example of settign up JMS). To use JMS, do i need anything else: thanks for any help _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE. IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE ON NOTICE OF ITS STATUS. PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS EMAIL AND ANY ATTACHMENT FROM YOUR SYSTEM. YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY PURPOSE, NOR DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON: TO DO SO COULD BE A BREACH OF CONFIDENCE EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED AMENDMENT, AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR AMENDMENT OR THE CONSEQUENCES THEREOF. WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR VIRUSES OR UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES. WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS IN ANY EMAIL OR ATTACHMENT. --- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - 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] _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview - 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: AXIS 2 codegen wizard
Hi, If you post your source code, anyone could give you comments. I'm not sure, how did you define import ? Axis2 0.9x = import org.apache.axis2.om.*; Axis2 1.0 = import org.apache.axiom.om.*; Your reference page is a little bit older. If you're using Axis2 1.0, your import should be org.apache.axiom.om.*. Regards, kinichiro __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] is a service's WSDL file required in order to invoke the web service ?
Nope, WSDL is not mandatory. Try: http://localhost:8080/axis2/ And click services. That should should show your live web services, and any faulty ones which will give a stack trace. Try that and post the results if you are still stuck. HTH, Robert http://www.braziloutsource.com/ On 6/19/06, Jenny ZHANG [EMAIL PROTECTED] wrote: Dear axis-userall, I deployed a service (MTOMServiceWS) successfully on the server, the service is as simple as: public class MTOMServiceWS { public OMElement MTOMService (OMElement element) throws Exception { element.build (); element.detach(); return element; }} When I invoked the service, the request SOAP message appeared as expected, but the response messge showed the follwoing error: Operation Not found EPR is http://127.0.0.1:8085/axis2/services/MTOMServiceWS and WSA Action = , I wonder if the problem is caused due to the absence of the service's WSDL file in the Server ? or any statement about operation I should put in my client side ? Thanks ! Jenny 19 June 06 error-- ?xml version='1.0' encoding='UTF-8'?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:wsa=http://www.w3.org/2005/08/addressing;soapenv:Headerwsa:ReplyTowsa:Addresshttp://www.w3.org/2005/08/addressing/anonymous/wsa:Address/wsa:ReplyTowsa:MessageIDurn:uuid:E066FC5277106E559511507090989301/wsa:MessageIDwsa:Actionhttp://www.w3.org/2005/08/addressing/fault/wsa:Action/soapenv:Headersoapenv:Bodysoapenv:Faultfaultcodesoapenv:Client/faultcode 7c faultstringOperation Not found EPR is http://127.0.0.1:8085/axis2/services/MTOMServiceWS and WSA Action = /faultstring 828 detailExceptionorg.apache.axis2.AxisFault: Operation Not found EPR is http://127.0.0.1:8085/axis2/services/MTOMServiceWS and WSA Action = #13; at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:46)#13; at org.apache.axis2.engine.Phase.invoke(Phase.java:395)#13; at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:500)#13; at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:470)#13; at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)#13; at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)#13; at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)#13; at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)#13; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)#13; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)#13; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)#13; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)#13; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)#13; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)#13; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)#13; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)#13; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)#13; at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)#13; at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)#13; at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)#13; at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)#13; at java.lang.Thread.run(Thread.java:595)#13; /Exception/detail 32 /soapenv:Fault/soapenv:Body/soapenv:Envelope - 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] Will the engagement of Rampart module secure binary attachment sent using MTOM?
Dear axis-userall, I am wondering if the engagement of Rampart module will secure binary attachment sent using MTOM? Thanks, Jenny [EMAIL PROTECTED] 2006-06-19 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BeanMapping Problem
Hello, i am new to this mailinglist - i hope someone could help, because i don't find the solution for my axis (java) problem. I have a service called ProductService, a Bean ProductBeanImpl and a Bean-Interface ProductBean. The ProductService has a method setProduct(ProductBean). How should i define the beanMapping in the server-config.wsdd? Should i confige a beanMapping tag for ProductBeanImpl and ProductBean? How does Axis handle a Bean Interface? Thank you, Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] My issue seems to be that the XML Beans classes are not being generated
I was not having this problem with the Axis2 0.93 build, but with the latest daily build (and that from a week ago, I am not getting the XML Beans classes generated (such as schemaorg_apache_xmlbeans.system.sD926C795A3FD513AB921640BAE58ADC6.TypeSystemHolder). I thought that I was still doing the same sort of thing that worked before. My arg array for the WSDL2Java is this: [-sn, PointsCalculator, -pn, PointsCalculatorSOAP12port, -uri, c:/Java/projects2/axis2-std-1.0testbed/build/wsdl/WWPointsCalculator.wsdl, -d, xmlbeans, -g, -u, -ss, -s, -sd, -o, c:/Java/projects2/axis2-std-1.0testbed/build/output, -p, testexamples.types] I am getting the .xsb files but not the classfiles. Would have an idea about what I am doing wrong? Thank you, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Perhaps I still have a classpath issue
I looked into my generated jar, and can see that the TypeSystemHolder is there, but in a different package than the other code expects: schemaorg_apache_xmlbeans.system.s00EEDBA506EBCBE06D4AFD9DBBF45729.TypeSystemHolder. That tells me it is just a classpath issue, and the testclient is pointing to different versions of the generated XML Beans classes than are in the jar. Regards, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File /i18nLib.jsp not found
I am going crazy. I'm trying to just get the Happy Axis page working, but I no matter what I do, I keep getting the following error where it says it can't find i18nLib.jsp. I'm using Tomcat 5.5.17, jdk 1.5.0.0.7, and Axis 1.2.1 on Windows 2000. I got this working months ago before they re-imaged my machine with the above versions. I've been trying to get this to work for two days straight. PLEASE HELP!! Does anyone know what is wrong here? Jan Jun 19, 2006 2:26:32 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /happyaxis.jsp(276,0) File /i18nLib.jsp not found at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:39) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java :405) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java :86) at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:33 9) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552) at org.apache.jasper.compiler.Parser.parse(Parser.java:126) at org.apache.jasper.compiler.ParserController.doParse(ParserController.jav a:211) at org.apache.jasper.compiler.ParserController.parse(ParserController.java: 100) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:563) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:303) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86 9) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:684) at java.lang.Thread.run(Thread.java:595) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[newbie howto] Create client under axis/apache/tomcat
I have been able to get my service deployed on my "server" tomcat server and can get results when I run a native application, i.e. an eclipse Run main, where I specify the appropriate classpaths on the run statement. I am looking for the "proper" way to integrate it into my "client" tomcat server, which is a different machine than my "server" tomcat server. I am trying put together a JSP that will call my axis client. My axis service serves an array of classes(objects), where each class/object consists of 3 simple strings. I am not sure where to put what. That is on my "client" tomcat server where (what directories) do I put a jsp that can call a flavor ofthe"test client"(clientGetMyNames...not shown). I can probably kluge things up by putting everything in the class path, but that feels wrong. Any clues or help would be greatly appreciated. Sample JSP page % MyNames[]mn; mn = clientGetMyNames("test"); int l = mn.length(); for (int i = 0;imn.length(); i++) { out.println(mn[i].firstName+" "+mn[i].lastName); } % Details: the service: public class MyTestSoapBindingImpl implements my.test.package.MyTest { my.test.package.MyNames[] getMyNames(java.lang.String in0) throws java.rmi.RemoteException { MyNames[] mn= new MyNames[5]; code to fill in the mn array Return mn; } } package my.test.package; public class MyNames { String firstName; String lastName; String middleName; } The test client: public static void main (String[] args) throws Exception { try {MyTest binding = new MyTestServiceLocator().getMyNames(); MyNames[] value = null; value = binding.getMyNames("*"); if (value == null) System.out.println("null results"); else { System.out.println("length: "+value.length); for (int i = 0;i value.length;i++) { MyNames mn = value[i]; if (mn != null) { System.out.println("Struct["+i+"]:= first: "+mn.firstName+", last:"+mn.lastName+ ", mid:"+mn.middleName); } else { System.out.println("String["+i+"]:= *novalue*"); } } } } catch (java.rmi.RemoteException re) { System.out.println("error"+re.toString()); } } Thank you Brad Taylor
Happyaxis - activation.jar problem
I'm going crazy trying to make Axis happy and I'm now getting the following error when I access: http://127.0.0.1:8080/axis/happyaxis.jsp from the browser: Error: could not find class javax.activation.DataHandler from file activation.jar Axis will not work. I have activation.jar in my axis webapp in the lib directory and it contains javax.activation.DataHandler!! I'm using Tomcat 5.5.17, Axis 1.4, and jdk 1.5.0_07. HELP!! Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating SSL Connection
I have created Client. Hoever Servere authenticaion has private Certificate. I am receving error faultString: javax.net.ssl.SSLHandshakeException: unknown certificate how I can do SSL comunication and make Certificate know to client. Belw is get Proxy method Thank you for help private static CourtLinkDataWebServiceSoap getProxy() throws MalformedURLException, ServiceException { CourtLinkDataWebServiceLocator locator = new CourtLinkDataWebServiceLocator(); CourtLinkDataWebServiceSoap result = locator.getCourtLinkDataWebServiceSoap(new URL(SERVICE_LOC)); CourtLinkDataWebServiceSoapStub stub = ( CourtLinkDataWebServiceSoapStub)result; stub.setUsername(USER); stub.setPassword(PASSWORD); return result; }
[Axis2] Apparent bug in WSDL2Java re: imports
Hi, folks. I have been seeing an apparent bug in the Axis2 WSDL2Java code. Specifically, I have WSDL that looks like this: wsdl:definitions targetNamespace=http://www.example.com/wsdl/router; xmlns:schema=http://www.example.com/schemas; wsdl:import namespace=http://www.example.com/schemas; location=MySchema.xsd/ wsdl:message name=routeEmergencyIncidentRequest wsdl:part name=vehicularEmergencyIncident type=schema:MyElement/ /wsdl:message which seems to correctly generate Java code for the types mentioned in MySchema.xsd, and also produces a RouteEmergencyIncidentRequest type as I would have expected. However, this code is supposedly illegal according to http://www.xml.com/pub/a/ws/2003/08/05/wsdl.html because it uses wsdl:import to import something that is not a WSDL document but is in fact an XML schema. However, if I replace it with the following, which is supposedly correct: wsdl:definitions targetNamespace=http://www.example.com/wsdl/router; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:schema=http://www.example.com/schemas; wsdl:types xsd:schema xsd:import id=Something namespace=http://www.example.com/schemas; schemaLocation=MySchema.xsd/ /xsd:schema /wsdl:types wsdl:message name=routeEmergencyIncidentRequest wsdl:part name=vehicularEmergencyIncident type=schema:MyElement/ /wsdl:message then if I run WSDL2Java, it generates Java code as before for the types mentioned in MySchema.xsd, but it does NOT produce a RouteEmergencyIncident class, leaving me nothing to use to parse the OMElement that the generated server skeleton takes as a parameter. (And, for that matter, I have no idea why a server skeleton method taking an OMElement parameter is produced, rather than a MyElement parameter. This also seems like a bug.). It seems to me that which form of import I use shouldn't determine whether or not Java types are generated for each message. The biggest problem for me in this respect is that the second form of the WSDL (the one using xsd:import) is the one actually used by the WSDL that I have been given by a third party. So just changing it is not an attractive option. Is this a bug? Any advice would be appreciated. Thanks! Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL and certifcate implementation
Hello Everyone, I have created Client. Hoever Servere authenticaion has private Certificate.I am receving error*faultString: javax.net.ssl.SSLHandshakeException: unknown certificate* how I can do SSL comunication and make Certificate know to client.Beolw is getProxy methodThank you for help*private* *static* CourtLinkDataWebServiceSoap getProxy()*throws* MalformedURLException, ServiceException {CourtLinkDataWebServiceLocator locator = *new*CourtLinkDataWebServiceLocator();CourtLinkDataWebServiceSoap result = locator.getCourtLinkDataWebServiceSoap(*new* URL(SERVICE_LOC));CourtLinkDataWebServiceSoapStub stub = ( CourtLinkDataWebServiceSoapStub)result;stub.setUsername(USER);stub.setPassword(PASSWORD);*return* result;}
Re: Happyaxis - activation.jar problem
Make sure the path of activation.jar is: ...\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\activation.jar (or something similar in Linux). What's the version of your jaf package? 1.1? Have you restarted Tomcat after trying happyaxis.jsp once? Miller, Janet wrote: I'm going crazy trying to make Axis happy and I'm now getting the following error when I access: http://127.0.0.1:8080/axis/happyaxis.jsp from the browser: Error: could not find class javax.activation.DataHandler from file activation.jar Axis will not work. I have activation.jar in my axis webapp in the lib directory and it contains javax.activation.DataHandler!! I'm using Tomcat 5.5.17, Axis 1.4, and jdk 1.5.0_07. HELP!! Jan - 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] Perhaps I still have a classpath issue
A common error. XMLBeans creates a class when you run WSDL2Java, and therefore you need to get that class into the classpath. http://ws.apache.org/axis2/tools/1_0/CodegenToolReference.html An important detail is that an XMLBean class file is also generated by WSDL2Java, TypeSystemHolder.class. That file is placed into build/classes by the above ant task and will be needed to compile the generated sources. A frequent problem is users get an error such as: ClassNotFoundException : Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.s68C41DB812F52C975439BA10FE4FEE54.TypeSystemHolder. Make sure the generated binary files are on the classpath. The TypeSystemHolder.class generated by WSDL2Java must be placed in your classpath in order to avoid this error. HTH, Robert http://www.braziloutsource.com/ On 6/19/06, Jim Bender [EMAIL PROTECTED] wrote: I looked into my generated jar, and can see that the TypeSystemHolder is there, but in a different package than the other code expects: schemaorg_apache_xmlbeans.system.s00EEDBA506EBCBE06D4AFD9DBBF45729.TypeSystemHolder. That tells me it is just a classpath issue, and the testclient is pointing to different versions of the generated XML Beans classes than are in the jar. Regards, Jim - 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]
Find Content-ID in OMElement
Hi all, Does anybody know where to get the Content-ID from attachment in OMElement? Is there an API for MessageContext to work with? Like for SAOPMessage, we can use method getContentId() to retrieve it. Thanks, Frank This e-mail and any files transmitted with it are intended solely for the use of the entity or individual(s) to whom they are addressed and not for reliance upon by unintended recipients. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail and any files transmitted are strictly prohibited. If you have received this e-mail in error please delete the entire email and immediately notify us by email to the sender or by telephone to the AOC main office number, (404) 656-5171. Thank you.
RE: Happyaxis - activation.jar problem
Turns out that my AXISCLASSPATH specified the wrong directories for my axis jars. It's working now. Thanks, Jan -Original Message- From: Seak, Teng-Fong [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 4:17 PM To: axis-user@ws.apache.org Subject: Re: Happyaxis - activation.jar problem Make sure the path of activation.jar is: ...\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\activation.jar (or something similar in Linux). What's the version of your jaf package? 1.1? Have you restarted Tomcat after trying happyaxis.jsp once? Miller, Janet wrote: I'm going crazy trying to make Axis happy and I'm now getting the following error when I access: http://127.0.0.1:8080/axis/happyaxis.jsp from the browser: Error: could not find class javax.activation.DataHandler from file activation.jar Axis will not work. I have activation.jar in my axis webapp in the lib directory and it contains javax.activation.DataHandler!! I'm using Tomcat 5.5.17, Axis 1.4, and jdk 1.5.0_07. HELP!! Jan - 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]
[Axis1.4] WSDL2Java: Class cor extended element not generated
Hi all I've got a rather complex third party wsdl file with referenced xsd-files. Using WSDL2Java works well, gives a bunch of java classes and doesn't produce any error messages. But for some reason a needed class for a simpleType (here named T1) which gets extended doesn't get generated. The much simplified testcase looks like this: xsd:simpleType name=T1 xsd:restriction base=xsd:anyURI/ /xsd:simpleType xsd:simpleType name=T2 xsd:restriction base=xsd:anyURI/ /xsd:simpleType xsd:complexType name=T3 xsd:simpleContent xsd:extension base=T1 xsd:attribute name=type type=T2 use=optional/ /xsd:extension /xsd:simpleContent /xsd:complexType xsd:complexType name=T3List xsd:sequence xsd:element name=Name type=T3 maxOccurs=unbounded/ /xsd:sequence /xsd:complexType The class for the T3 complexType starts like this: public class T3 implements java.io.Serializable, org.apache.axis.encoding.SimpleType { private org.apache.axis.types.URI type; // attribute public T3() { } // Simple Types must have a String constructor public BusinessTransactionType(org.apache.axis.types.URI _value) { super(_value); } // plus correct getType and setType methods for the attribute type T2 (URI). This seems to be wrong as it should extend T1. It even calls the constructor of the parent class with a URI which naturally doesn't work here. I probably just could make T3 extend org.apache.axis.types.URI, but I'd rather know what's going wrong. Any ideas much appreciated. Thanks, Arthur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem deploying web service
I'm trying to deploy a web service that I had deployed a few months ago. My machine, however, got re-imaged, so I had to reinstall everything and set up my paths, etc. Now I can't get it to work. When I tried to deploy my WS, I got the following: Jun 19, 2006 5:13:38 PM org.apache.axis.utils.JavaUtils isAttachmentSupported WARNING: Unable to find required classes (javax.activation.DataHandler and javax .mail.internet.MimeMultipart). Attachment support is disabled. Processing file deploy.wsdd AdminDone processing/Admin It doesn't have an error, so I can't tell if it was successful or not, but it's not available on the axis page as a service. I don't know why it's unable to find javax.activation.DataHandler. DataHandler exists in activation.jar which is in my AXISCLASSPATH, in my Axis lib directory, and also in C:\Program Files\Apache Software Foundation\apache-tomcat-5.5.17\webapps\axis\WEB-INF\lib. My axis is happy, but I can't deploy a web service that I know worked before. I know there's something simple that I'm doing wrong. Can anyone help? Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A Solution to the Ubiquitious InvocationTargetException
Hi, everyone. This is a solution to a problem that Ive seen a lot of people have with Axis, especially people just starting out with it, who have not yet gone through the painJ Oh the pain, the pain... - Dr. Smith on the old TV series Lost In Space. Anyway, back to reality Google userException InvocationTargetException hostname axis and youll see what I mean. A lot of questions on this exception pattern without an answer. Anyway, since I found the answer (an answer?), I thought Id post it for the group. Probably belongs in some kind of FAQ for Axis if you agree. (Is there such?) Here is the symptom you will see in your axis response: ?xml version=1.0 encoding=utf-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance soapenv:Body soapenv:Fault faultcodesoapenv:Server.userException/faultcode faultstringjava.lang.reflect.InvocationTargetException/faultstring detail ns1:hostname xmlns:ns1=http://xml.apache.org/axis/DEVED01/ns1:hostname /detail /soapenv:Fault /soapenv:Body /soapenv:Envelope Key parts of the symptom pattern are: (1) InvocationTargetException and (2) The hostname is returned in the detail (and thats about all). The essential problem is that Axis doesnt give you a clue as to what is the underlying problem (as several people have reported). Whats worse is that it appears to me that Axis is swallowing the underlying error, since you have to actively trap it in your code in order to see it. Specifically... The way to find the underlying error is to add a catch for Throwable around the point where your server-side code first starts running. (If you just catch Exception, Axis will still swallow many of the common errors, and youre still left clueless.) Just beneath your catch, you can, of course, add a printStackTrace and whatever other debug info you would like for your app server (Tomcat in my case) to spit out to the stdout (standard output) log (catalina.out or log4j log or whatever). Example: In your generated whateverSOAPBindingImpl.java, method, hand-modify it like so: try { //Your app logic } catch (Throwable e) { /* * Note: This is last-ditch attempt to catch anything throwable, * since Axis is apparently swallowing exceptions and not reporting them. */ e.printStackTrace(); } Ben This e-mail message may contain confidential and/or privileged information. If you are not an addressee or otherwise authorized to receive this message, you should not use, copy, disclose or take any action based on this e-mail or any information contained in the message. If you have received this material in error, please advise the sender immediately by reply e-mail and delete this message. Thank you.
using digital certificate
Hello All, I have created Keystore file Now how I will to use it in SOAP header. Thanks
RE: Problem deploying web service
It is my understanding that this is not a show-stopper error unless you are using soap with attachments. If you are using attachments, you need to copy these jars from sun's website: activation.jar mail.jar ... place them in your axis/lib dir. Example: /axis-1_2_1/lib I couldn't find this documented anywhere at Axis. I learned it from Kent Tong's excellent book: Developing Web Services with Apache Axis. In your particular case my guess is it's a problem with your AXISCLASSPATH, since you say you already have them in the lib dir. Get another pair of experienced java eyes to look at your AXISCLASSPATH. It will probably be something simple...in hindsight, it usually is, but when it happens, even experienced programmers struggle with it often enough. There's just an awful lot of trees in the forest these days :-) Ben -Original Message- From: Miller, Janet [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 5:18 PM To: axis-user@ws.apache.org Subject: Problem deploying web service I'm trying to deploy a web service that I had deployed a few months ago. My machine, however, got re-imaged, so I had to reinstall everything and set up my paths, etc. Now I can't get it to work. When I tried to deploy my WS, I got the following: Jun 19, 2006 5:13:38 PM org.apache.axis.utils.JavaUtils isAttachmentSupported WARNING: Unable to find required classes (javax.activation.DataHandler and javax .mail.internet.MimeMultipart). Attachment support is disabled. Processing file deploy.wsdd AdminDone processing/Admin It doesn't have an error, so I can't tell if it was successful or not, but it's not available on the axis page as a service. I don't know why it's unable to find javax.activation.DataHandler. DataHandler exists in activation.jar which is in my AXISCLASSPATH, in my Axis lib directory, and also in C:\Program Files\Apache Software Foundation\apache-tomcat-5.5.17\webapps\axis\WEB-INF\lib. My axis is happy, but I can't deploy a web service that I know worked before. I know there's something simple that I'm doing wrong. Can anyone help? Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail message may contain confidential and/or privileged information. If you are not an addressee or otherwise authorized to receive this message, you should not use, copy, disclose or take any action based on this e-mail or any information contained in the message. If you have received this material in error, please advise the sender immediately by reply e-mail and delete this message. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
security sample key generator question
Hello I am using Axis 1.3, and exploring the security sample which includes code to generate a digital signature for the purposes of signing a soap envelope. There is a security certificate in the sample called keystore.jks. I have used the jdk1.4 keytool to create another certificate(keytool -export -v -alias duke -file duke.jks -storetype -jks), but I am running into this error when I submit use the newly generated security certificate. [java] Beginning Client signing... [java] java.io.IOException: Invalid keystore format [java] at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.ja 32) [java] at java.security.KeyStore.load(KeyStore.java:1150) I am fairly new to java security, and I just want to know if I am using the right tool to generate the certificate or if I should use the bouncy castle classes to generate the certificates. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Runtime error
I made further progress by fixing my classpath. I am running from a TestNG test class. Now, while trying to run the Axis2 client, in the test, I am seeing this exception thrown with an IllegalStateException: Points Calculation, firing... Caught Throwable exception in runPointsCalculator: org.apache.axiom.om.OMException: java.lang.IllegalStateExceptionorg.apache.axiom.om.OMException: java.lang.IllegalStateException at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206) at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:144) at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:322) at testexamples.types.PointsCalculatorStub.toOM(PointsCalculatorStub.java:213) at testexamples.types.PointsCalculatorStub.toEnvelope(PointsCalculatorStub.java:230) at testexamples.types.PointsCalculatorStub.calculatePoints(PointsCalculatorStub.java:105) at com.recursionsw.ve.tools.webservices.TestWebServicesEndToEndTestNG.runPointsCalculator(TestWebSe rvicesEndToEndTestNG.java:294) This is the code in my client: System.out.println(Points Calculation, firing...); PointsCalculatorStub stub = new PointsCalculatorStub(null, http://localhost:8090/axis2/services/PointsCalculator;); CalculatePointsDocument calculatePointsDocument = CalculatePointsDocument.Factory .newInstance(); FoodDescription foodDescription = FoodDescription.Factory.newInstance(); foodDescription.setCalories(130); foodDescription.setFatGrams(6); foodDescription.setFiberGrams(1); CalculatePointsResponseDocument returnTranslationDocument = stub.calculatePoints(calculatePointsDocument); CalculatePointsResponse responseString = returnTranslationDocument.getCalculatePointsResponse(); System.out.println(Client returned); Would someone see that I am doing something wrong or where I might start looking? Regards, -- Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS2] J2EE Support
I think there are really two different approaches possible for handling EJB web services. The first is what I think you're focused on, automatic exposure of EJBs as web services using annotations or the like. AFAIKS, this really needs to be implemented by the app server framework because that controls both the class loading (you need hooks into the class loading to see the annotations in the first place) and the EJB deployment. The second is what I was suggesting, which is to have the service implementation basically function as a proxy to the actual EJB. This means that the service implementation is just another client of the service as far as the app server is concerned. The actual proxy code could be generated by an Axis2 add-on. If you run Axis2 inside the app server, the overhead of accessing the EJB in this way will be minimal; if you run it outside the app server you'll have more overhead (as with any EJB client), but you'll gain the flexibility of keeping your web services support on a standard servlet engine rather than an app server. Both these approaches work, but the first one (which includes JSR-109 support) can really only be implemented by the people running the app server. JAX-WS doesn't require an app server so can be integrated directly into Axis2 - but AFAIK it doesn't give you automatic EJB support. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 robert lazarski wrote: Well, so far in the developement of axis2 best as I can tell, for good reasons, there has not been a pragmatic discussion of Axis2 and pure EJB services, ie, a ServiceClass implementing SessionBean. I'd like to think what I was trying to imply was that currently (A) no one has a working case and documentation supporting it, (B) there is a corner case demand for it, and (C) I have an itch to scatch to support clients who simply want it. So far Axis2 has no 'code generator to create these proxy classes' . So how do we get there? Perhaps with JSR-109 - the 109 specification now also supports JAX-WS which is a follow-on specification to JAX-RPC - and the JAX-WS support in Axis2 recently, maybe that's the way to go. Comments? Robert http://www.braziloutsource.com/ On 6/18/06, Dennis Sosnoski [EMAIL PROTECTED] classesosnoski.com wrote: Okay, so I guess what you're after is automatic deployment of EJBs as web services. The alternative of making regular calls to the actual EJB just involves using a proxy class which handles the EJB lookup and forwards all calls on to the EJB. It should be fairly easy to just write a code generator to create these proxy classes. Even without automatic proxy generation it seems extreme to say that Axis2 is not an option, though. - Dennis robert lazarski wrote: On 6/16/06, *Dennis Sosnoski* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: robert lazarski wrote: snip Currently I'm integrating an EJB app with Axis2 - thankfully as any tomcat / servlet container web layer would. However, I came very close to having to implement these services as EJB, which would have required either JAX-WS or Axis 1.x , as Axis2 just isn't an option. I'm puzzled by this statement, Robert. Why is Axis2 not an option? You just use the EJB interfaces to access the service classes, same as any other application using the EJBs. - Dennis I'm not 100% sure we are on the same page, so allow me to give an example - in JBoss 4.0.x using JSWDP databinding and axis 1.x - a strange hybrid but that's what JBoss supports: enterprise-beans session ejb-nameMyWebService/ejb-name ejb-classorg.MyWebService/ejb-class session-typeStateless/session-type ejb-ref !-- SoapSession is a stateful session bean -- ejb-ref-nameejb/SoapSession/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homeorg.SoapSessionHome/home remoteorg.SoapSession/remote /ejb-ref ... session /enterprise-beans import javax.ejb.SessionBean; import javax.ejb.SessionContext; public class MyWebService implements SessionBean { private SessionContext ctx; public ReturnWeb_Login web_Login( String user_name, String user_password) throws RemoteException { Integer successErrorCode = Messages_Codes.FAILURE; String soap_session_id = null; Connection con = null; try { con = getConnection(); successErrorCode = CallCentreDAO.login(con,orner call_centre_id, user_name, user_password, this); if(Messages_Codes.SUCCESS == successErrorCode) { SoapSession
Re: [Axis2] Apparent bug in WSDL2Java re: imports
Can you post the entire WSDL? The types that should be generated will be different depending on whether it's RPC or Document style.WSDL2Java is somewhat forgiving of a common error -- using wsdl:import to import a schema. The fact that it does so isn't a bug, although it would be useful if it raised a warning. AnneOn 6/19/06, Derek [EMAIL PROTECTED] wrote: Hi, folks.I have been seeing an apparent bug in the Axis2 WSDL2Java code.Specifically, I have WSDL that looks like this:wsdl:definitions targetNamespace= http://www.example.com/wsdl/router xmlns:schema=http://www.example.com/schemas wsdl:importnamespace= http://www.example.com/schemaslocation=MySchema.xsd/ wsdl:message name=routeEmergencyIncidentRequestwsdl:part name=vehicularEmergencyIncident type=schema:MyElement/ /wsdl:messagewhich seems to correctly generate Java code for the types mentioned inMySchema.xsd, and also produces a RouteEmergencyIncidentRequest type as Iwould have expected. However, this code is supposedly illegal according to http://www.xml.com/pub/a/ws/2003/08/05/wsdl.htmlbecause it uses wsdl:import to import something that is not a WSDL documentbut is in fact an XML schema. However, if I replace it with the following, which is supposedly correct:wsdl:definitions targetNamespace=http://www.example.com/wsdl/router xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:schema=http://www.example.com/schemas wsdl:typesxsd:schema xsd:import id=Somethingnamespace=http://www.example.com/schemas schemaLocation=MySchema.xsd//xsd:schema /wsdl:types wsdl:message name=routeEmergencyIncidentRequestwsdl:part name=vehicularEmergencyIncident type=schema:MyElement/ /wsdl:messagethen if I run WSDL2Java, it generates Java code as before for the typesmentioned in MySchema.xsd, but it does NOT produce a RouteEmergencyIncident class, leaving me nothing to use to parse the OMElement that the generatedserver skeleton takes as a parameter. (And, for that matter, I have no ideawhy a server skeleton method taking an OMElement parameter is produced, rather than a MyElement parameter. This also seems like a bug.).It seems to me that which form of import I use shouldn't determine whetheror not Java types are generated for each message.The biggest problem for me in this respect is that the second form of the WSDL (the one using xsd:import) is the one actually used by the WSDL that Ihave been given by a third party. So just changing it is not an attractiveoption.Is this a bug?Any advice would be appreciated. Thanks!Derek-To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BeanMapping Problem
Run java2wsdl, then wsdl2java, and Axis will generate the appropriate beanmapping for you.AnneOn 6/19/06, Thomas Papke [EMAIL PROTECTED] wrote:Hello,i am new to this mailinglist - i hope someone could help, because i don't find the solution for my axis (java) problem.I have a service called ProductService, a Bean ProductBeanImpl and aBean-Interface ProductBean. The ProductService has a methodsetProduct(ProductBean). How should i define the beanMapping in the server-config.wsdd? Should iconfige a beanMapping tag for ProductBeanImpl and ProductBean? How doesAxis handle a Bean Interface?Thank you,Thomas- To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Setting attributes in SOAP envelope
I believe there is a plan to eventually add support for rpc/encoded, but it's low on the priority list. The WS-I Basic Profile outlaws SOAP Encoding, and in SOAP 1.2, SOAP Encoding is optional. Axis 1 supports rpc/encoded. AnneOn 6/19/06, Sai Arunachalam [EMAIL PROTECTED] wrote: Hey Anne, Thanks for that information. Can I do it in Axis 1.4 (or Axis 1.2). And I suppose there would be some reason for not supporting such a thing. If you have any links that explain why this is so, that might help me to understand things better. Thanks, Sai
Re: See SOAP message more readable.
Don't use SOAP Encoding. Use document/literal or rpc/literal instead.AnneOn 6/19/06, Juan Alvarez [EMAIL PROTECTED] wrote:Hello all. I have a problem with the manner the axis generation of a SOAP message. I need to 'see' the message without multiRef or href tags but AXIS automatically generates that tags when I get it by means of method getSOAPPartAsString() of Message class . ¿Is there any manner to get the SOAP message but without that tags? Here is a piece of my SOAP message tha bring me AXIS : soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance soapenv:Body ns1:processTkt soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xmlns:ns1=impl.wsresiber.emision.iberia.com in0 href="" / /ns1:processTkt multiRef id=id0 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns2:TktInfo xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ xmlns:ns2=http://ints.wsresiber.emision.iberia.com loc_r xsi:type=xsd:stringTT22A/loc_r loc_a xsi:type=xsd:stringAFX002/loc_a e_r xsi:type=xsd:stringendorsement restriction value/e_r name xsi:type=xsd:stringJose Luis Moreno/name num_pax xsi:type=xsd:int2/num_pax fp xsi:type=xsd:stringWith VISA card./fp b_fare href="" / eqv xsi:type=soapenc:double232.222/eqv br xsi:type=soapenc:double111.22/br taxes xsi:type=soapenc:Array soapenc:arrayType=ns2:Tax[3] item href="" / item href="" / item href="" / /taxes total href="" / tkts xsi:type=soapenc:Array soapenc:arrayType=ns2:Tkt[2] item href="" / item href="" / /tkts foids xsi:type=soapenc:Array soapenc:arrayType=ns2:Foid[3] item href="" / item href="" / item href="" / /foids tkt_date xsi:type=xsd:string23OCT06/tkt_date tkt_1a href="" / bkg_1a href="" / ch xsi:type=soapenc:int32/ch sf href="" / gran_tot href="" / /multiRef multiRef id=id6 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns3:Tkt xmlns:ns3=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ tkt_nr xsi:type=xsd:string1/tkt_nr f_calc xsi:type=xsd:stringFare calc value/f_calc coupons xsi:type=soapenc:Array soapenc:arrayType=ns3:Coupon[4] item href="" / item href="" / item href="" / item href="" / /coupons /multiRef multiRef id=id7 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns4:Tkt xmlns:ns4=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ tkt_nr xsi:type=xsd:string2/tkt_nr f_calc xsi:type=xsd:stringFare calc value/f_calc coupons xsi:type=soapenc:Array soapenc:arrayType=ns4:Coupon[2] item href="" / item href="" / /coupons /multiRef multiRef id=id11 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns5:Info xmlns:ns5=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ offc xsi:type=xsd:stringOFFCEMISIONOFFC/offc iata xsi:type=xsd:stringIATAEMIISONIATA/iata /multiRef multiRef id=id9 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns6:Foid xmlns:ns6=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ foid xsi:type=xsd:stringFOIDAACAAABAABAFOID/foid /multiRef multiRef id=id2 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns7:Tax xmlns:ns7=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ amt xsi:type=xsd:string10.221/amt tipoTasa xsi:type=xsd:string1ab/tipoTasa /multiRef multiRef id=id13 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns8:Ammount xmlns:ns8=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ amt xsi:type=xsd:double122.22/amt curr xsi:type=xsd:stringEUR/curr /multiRef multiRef id=id4 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns9:Tax xmlns:ns9=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ amt xsi:type=xsd:string10.221/amt tipoTasa xsi:type=xsd:string1ab/tipoTasa /multiRef multiRef id=id10 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns10:Foid xmlns:ns10=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ foid xsi:type=xsd:stringFOIDAAZAAAXFBOID/foid /multiRef multiRef id=id12 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xsi:type=ns11:Info xmlns:ns11=http://ints.wsresiber.emision.iberia.com xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ offc
Re: getting started help
There's an impedance mismatch between Java types and XML types. Axis can't generate automagic type mappings except for simple types. Therefore if you use collections or value types (e.g., beans), then you have to provide a WSDD with an appropriate set of type mapping definitions. Collections are particularly challenging to map and are best avoided. Use arrays instead.AnneOn 6/19/06, hank williams [EMAIL PROTECTED] wrote:well, I was refering to the trivial little auto-deploy feature of Axis. Its a shame they didnt make it able to support collections, becausethere is absolutely (as far as I can tell) no technical reason not to.I am sure there are reasons to use all of the features of wsdl, but the learning curve is steep and when you can offer a simpler solutionthere seems like no reason not to. I dont need all the features ofwsdl and I just can afford the weeks it will take (on my presentcourse, and based on the available docs) to learn how to do it the non- trivial little way.But perhaps I am over estimating the complexity of this. Is there anykind of quick start that is easy to understand and doesnt require ahundred pages of reading? I find the Axis website fairly unhelpful. HankOn 6/19/06, Anne Thomas Manes [EMAIL PROTECTED] wrote: By jws, are you referring to Java Web Services, BEA's metadata-driven system that forms the foundation of JAX-WS, or the trivial little auto-deploy feature of Axis? If the latter, then bear in mind that jws is useful for only the most trivial RPC-oriented invocations, in which all parameters are simple types. Anne On 6/18/06, hank williams [EMAIL PROTECTED] wrote: I am developing an application for which I was intending to use a different RPC strategy for use with a flash application. Unfortunately the company (adobe/macromedia) has abandoned their remoting technology for allowing flash to access java pojos. Now if you want a decent solution you have to spend 6k or 20k for their new technology. So now I need to use something else. Flash supports web services, so this seems like a choice, but it is 150 times harder than their old solution and I am overwhelmed. All of the documentation seems circular, where in order to understand A you must understand B and to understand B you must understand C and D etc. - couldnt they make this easier :). Anyway, I love the idea of jws, but it seems like the designers didnt think it was a good idea to make things too simple because when you read about it they immediately discourage its use. But I am stubborn and would at least like to try to use jws, but I cant seem to find any detailed documentation on what it will or wont do - (great way to discourage use but I am persistent!).That calculator example in the docs for jws is great, but, for example how would I send a table of information for populating a dataGrid? For example, will it convert an Array, or an ArrayList of objects? And I would love a more detailed explanation of what jws *wont* do that I will really need. I am hoping that the designers visions of what is necessary is just much grander than what I need and that it would actually be fine. Because the learning curve for this stuff, particularly for a project that is at the end of its development cycle - not the beginning - is steep. This is seeming super painful. Regards Hank - 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: [Axis 1.4] Eclipse does not like WSDL
Annie: This WSDL was generated from Axis 1.4, not by me. Why would Axis generate bad code in the WSDL? Neil --Neil Aggarwal, JAMM Consulting, (214)986-3533, www.JAMMConsulting.comFREE! Valuable info on how your business can reduce operating costs by17% or more in 6 months or less! http://newsletter.JAMMConsulting.com From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 7:44 PMTo: axis-user@ws.apache.orgSubject: Re: [Axis 1.4] Eclipse does not like WSDL There are a couple of minor errors with the WSDL.1- you never reference the "http://lang.java" namespace, therefore there's no need to declare it or import it. You don't specify a schemaLocation for the namespace, hence you get the schema_reference error. I'd remove it. 2- Fault messages should always be defined as literal elements rather than encoded types. But Axis is forgiving and manages to encode it for you anyway.I don't understand why Eclipse is complaining about the SAXException type, because it appears to be defined properly, although perhaps it's objecting to the fact that you didn't provide a schemaLocation for the " http://schemas.xmlsoap.org/soap/encoding/" namespace.I strongly encourage you to not use SOAP encoding, though. I suggest you switch to wrapped document/literal. Anne On 6/16/06, Neil Aggarwal [EMAIL PROTECTED] wrote: Please post the WSDLI am attaching it here.--Neil Aggarwal, JAMM Consulting, (214)986-3533, www.JAMMConsulting.comFREE! Valuable info on how your business can reduce operating costs by 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] My issue seems to be that the XML Beans classes are not being generated
Hi, Hmmm this is somewhat weird. Absolutely nothing was changed in the XMLBeans side and if this was really there the build should immediately fail since there are some tests that codegen (using XMLBeans) and compile during the build. Have you tried using the generated build file ? Ajith On 6/19/06, Jim Bender [EMAIL PROTECTED] wrote: I was not having this problem with the Axis2 0.93 build, but with the latest daily build (and that from a week ago, I am not getting the XML Beans classes generated (such as schemaorg_apache_xmlbeans.system.sD926C795A3FD513AB921640BAE58ADC6.TypeSystemHolder). I thought that I was still doing the same sort of thing that worked before. My arg array for the WSDL2Java is this: [-sn, PointsCalculator, -pn, PointsCalculatorSOAP12port, -uri, c:/Java/projects2/axis2-std-1.0testbed/build/wsdl/WWPointsCalculator.wsdl, -d, xmlbeans, -g, -u, -ss, -s, -sd, -o, c:/Java/projects2/axis2-std-1.0testbed/build/output, -p, testexamples.types] I am getting the .xsb files but not the classfiles. Would have an idea about what I am doing wrong? Thank you, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Proxy Service within samples
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Ron, Synapse's proxy service support is the right thing for you. Saminda Soactive Inc wrote: Hi Saminda, I am not sure if I stated my problem correctly. I am not looking for a generic proxy client (along the lines of what you pointed me to). Rather, I am looking for a generic proxy service that can take any request coming from in any web service and then route that to the appropriate service endpoint. I already have the logic for the routing part and looking to build the proxy service part that was clearly working with the ProxyService sample in Axis 1.x but was not migrated/re-implemented in Axis 2. Thanks, Ron On 6/19/06, *Saminda Abeyruwan* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Soactive Inc wrote: Does anyone know if the following service that was provided as a sample within the Axis 1.x samples is also shipped with Axis 2? http://genome.jouy.inra.fr/doc/web/axis-1_2_1/samples/proxy/ProxyService.java I found that this code does not work on Axis 2 since the Context classes have changed. I would appreciate if someone could point me to the Axis 2 version. Thanks, Ron http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawRuntimeProxyTest.java?view=markup Contains a testcase on how to configure Axis2 to support Proxy services. For more info please look http://ws.apache.org/axis2/0_95/http-transport.html Thank you Saminda - - To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEl4CsYmklbLuW6wYRAk3mAJ9Hc2DKROFIJw8wGqG/Pw8GqCaHtQCgh88p XFzXR4jBd7cAsQSIVwt1Ues= =3VdC -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to return xml file as string ?
I hava rpc encoded style web service that returns a string as response. In the string I'll storing a xml file which has CDATA sections and some inline DTD. My problem is sometimes I am getting an error from axis serialization classes saying that there is an invalid character in xml. So is it better to convert the xml data into a BASE64 string (may be using AXIS API Or Jakarta Commons API) and return that string as response ? or is there any other way of doing returning xml files as strings ? Please suggest. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Generated MyServiceMessageReceiverInOut using REST causes UnsupportedOperationException
Hi, This is caused when someone accesses the parser without caching 'before' the databinding conversion (It is not at all recommended). It is likely to happen by a handler in between. Do you have any custom modules installed ? Ajith On 6/19/06, heikki [EMAIL PROTECTED] wrote: Hallo, I'm using Axis2 to create a service that is accessed in REST style. The MyServiceMessageReceiverInOut class, which was generated by Axis2's WSDL2Java utility, causes the following exception when I access the service in REST style : java.lang.UnsupportedOperationException: The parser is already consumed! at org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReader(OMElementImpl.java:635) [... more ...] The following change to the method fromOM() in MyServiceMessageReceiverInOut fixed it : public org.apache.xmlbeans.XmlObject fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type, java.util.Map extraNamespaces) { try { if (MyRQDocument.class.equals( type)) { if (extraNamespaces != null) { // // replaced this line : // // return MyRQDocument.Factory.parse(param.getXMLStreamReaderWithoutCaching (), // // by this line : // return MyRQDocument.Factory.parse(param.getXMLStreamReader(), new org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces( extraNamespaces)); } else { return MyRQDocument.Factory.parse(param.getXMLStreamReaderWithoutCaching ()); } } [... more ...] Has someone had a similar error? Can someone explain what is going on here, and whether applying this fix is a viable solution? thank you, Heikki Doeleman -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]