Changing / controlling the WSDL style generated by Axis2
Hi, I was wondering if it is possible to control the style of the WSDL generated by Axis2. Preferably I want to generate doc lit wrapped. Sylvester - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running axis2 in tomcat
Hi Rajika The problem was with environmental variables. Thanks for the help. Kasun. On Wed, 2008-10-29 at 01:29 -0700, Kasun Herath wrote: Hi Kasun, > I'm using tomcat 6 to run axis2. services such as validate run when > using java 1.6 but when i switch to java 1.5 it is not working. > I need to have java 1.5 in my system. Any idea why is it happening? What's your stack trace ? -Rajika > > -- http://wso2.org http://llvm.org http://www.osdev.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Un]marshalling rpc/encoded SOAP body in Axis2 web service
Hi, I'm developing a doc/literal Web service in Axis2 that needs to invoke a 3rd party Web service that uses the rpc/encoded style. From previous posts to this list it looks like my main options are: 1) Use Axis 1.4 to write a doc/literal service that is a wrapper around the 3rd party service, then invoke the wrapper from my Axis2 service. 2) Within my Axis2 web service use an instance of ServiceClient and deal directly with the OMElement instances that are the request and the response. In order to compare the alternatives I'm trying to understand how to approach option 2). I'm already using Axiom rather than any form of data binding, so am OK with that part of things, but have had no luck tracking down some means of [un]marshalling to/from the SOAP encoded body element other than rolling my own implementation. Does anyone have any pointers on how to do this? I realize that this isn't necessarily an Axis2 question, so if you want to point me at another list, thanks fine with me. Thanks, Dave -Original Message- From: Tian Chi [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2008 7:32 PM To: axis-user@ws.apache.org Subject: RE: [Axis2]Help! How to create a SOAP service using Axis2 in my own webapp? Thank you very much for your quick response, Ricky. I'll start building the war file you mentioned. Can I ask you two more questions about how to creat a SOAP service using Axis2? Basically my client will just send a XML file with data using the SOAP service I'll provide him (an URL). From the document, I think the service names will be defined in the services.xml and associate with a java class with all the functions (services) there. My question is how in my class program to get the XML file my client posted? I saw some example, it just pass the parameters using '?' http://my-service-URL/getPrice?book=1234 But using SOAP, my client's XML file will be posted to my service program, How to get the XML document sent from my client to my service? If it's too much to explain, do you know any online exmaples I can look into? My 2nd question is How to define the 'SOAPAction' in the service I'll create? thank you again, -tian --- On Tue, 10/14/08, Ricky Murphy <[EMAIL PROTECTED]> wrote: > From: Ricky Murphy <[EMAIL PROTECTED]> > Subject: RE: [Axis2]Help! How to create a SOAP service using Axis2 in my own > webapp? > To: axis-user@ws.apache.org > Date: Tuesday, October 14, 2008, 11:51 AM > Right, there will be a lot of jars. Actually, your web > application will end up like what makes axis2.war > eventually. > you may remove all those admin related stuff from > "your" app. Start with those made axis2.war, use > all its directory structure and build your own app and > "embed" axis2 inside. > > HTH > > -Ricky > > > > > Date: Mon, 13 Oct 2008 17:38:14 -0700 > > From: [EMAIL PROTECTED] > > Subject: [Axis2]Help! How to create a SOAP service > using Axis2 in my own webapp? > > To: axis-user@ws.apache.org > > > > MIME-Version: 1.0 > > Content-Type: text/plain; charset=iso-8859-1 > > Content-Transfer-Encoding: quoted-printable > > > > Hi all, > > > > Sorry previous message is still in wrong text format, this is it again. > > > > I'm a newbie on using Axis2. After reading through most of the documents on > > this site, > > I still couldn't find the answer I need. I'd really apreciate it if someone > > can help me on this. > > > > All Axis2 documents I read on this site are to build new web > > services/client using Axis2. > > Currently I have already a big web app in use and I need to add a SOAP > > service to > > my web app using Axis2. Is that doable? If yes, what are the steps to > > > > make that happen? > > > > Is it possible to copy axis2.war into my servlet container (Resin)(both > > 'axis2' and 'myWebapp' directories under webapps directory) , create > > a > > SOAP service in the axis2 app and then forward the request (by deinfing the > > 'ServiceClass' parameter in services.xml?) to my own web app > > to handle > > some complicated database processes? It seems to me it's not > > doable. > > Please don't laugh at me if this question is too sily. > > > > If the previous approach is not possible. The only other apprach I can > > > > think of is to embed Axis2 in my > > own webapp. In that case, do I need to copy all the needed Axis2 jar files > > to my own web app in WEB-INF/lib directory? If so, what are the needed jar > > files for a SOAP service? > > Basically the SOAP service is receive data from my client, save it to > > > > database and respond to client with the results. There are many jar files > > in Axis2. I just hope to skip some unnecessary Axis2 jar files to avoid > > overhead since my own web app is already very big. > > > > Besides the Axis2 jar files, what else needs to be done to embed a SOAP > > service in my own web app? > > > > I'd really really appreciate it if someone gives me some guidance or shed > > some light
JAXB implementation
Which JAXB implementation is included with Axis2? I'm having some problems when it does javax.xml.bind.JAXBContext.newInstance and I wanted to step into the code. Thanks in advance.
Re: Re: hot update problem
Thanks for the reply Deepal.Oct 29, 2008 01:46:02 PM, axis-user@ws.apache.org wrote:> When I copy my new aar file into the services directory, my log> statements confirm that the new Web Service class is being loaded by> a new DeploymentClassLoader.>> However, the previous verion of the class still exists in its> DeploymentClassLoader and is still servicing client requests, the hot> update hasn't worked.>> What am I doing wrong? My service is "application" scopedYes this is a know issues in application scope , this worked before nowit is not. So we will fix the issues before the next release.Deepal> .>> Rgds,> David.-> To unsubscribe, e-mail: [EMAIL PROTECTED] For> additional commands, e-mail: [EMAIL PROTECTED] -- Thank you!http://blogs.deepal.org-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AxisFault not working correctly in Axis2
> > > I created a web service, and then built a client using the autowsdl. > > Testing it without any logic, things worked fine. Now I'm adding in > > the business logic. However, I'm getting an error, but it's behaving > > really strange. The only indication I get on the server console is this. > Can you send us the service code ? > > Thank you! > Deepal > Which part? Where the actual error occurs?
Re: hot update problem
> When I copy my new aar file into the services directory, my log > statements confirm that the new Web Service class is being loaded by > a new DeploymentClassLoader. > > However, the previous verion of the class still exists in its > DeploymentClassLoader and is still servicing client requests, the hot > update hasn't worked. > > What am I doing wrong? My service is "application" scoped Yes this is a know issues in application scope , this worked before now it is not. So we will fix the issues before the next release. Deepal > . > > Rgds, > David.- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] -- Thank you! http://blogs.deepal.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis Client call using complexType wsdl
Hi, I have been using axis client call for simpleType wsdl object. For complexType wsdl, i get the following error: org.xml.sax.SAXException: No deserializer please find the below snippet and advice how to proceed: wsdl: http://schemas.xmlsoap.org/soap/http"/> http://schemas.xmlsoap.org/soap/encoding/"/> http://schemas.xmlsoap.org/soap/encoding/"/> client code: Service service = new Service(); Call call =(Call)service.createCall(); QName bean_qn = new QName("http://tempuri.org/";, "Addressresult"); Class bean_cls = Addressresult.class; call.registerTypeMapping(bean_cls, bean_qn,new org.apache.axis.encoding.ser.ArraySerializerFactory(),new org.apache.axis.encoding.ser.ArrayDeserializerFactory()); call.setTargetEndpointAddress(new java.net.URL(endpoint)); call.setOperationName(new QName("mapSearch")); call.addParameter("Result", org.apache.axis.Constants.SOAP_ARRAY, javax.xml.rpc.ParameterMode.IN); call.setReturnClass(Vector.class); call.invoke( new Object[] {content} ); Please help me. I am very new to axis. Regards, Priya -- View this message in context: http://www.nabble.com/Axis-Client-call-using-complexType-wsdl-tp20225398p20225398.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hot update problem
When I copy my new aar file into the services directory, my log statements confirm that the new Web Service class is being loaded bya new DeploymentClassLoader.However, the previous verion of the class still exists in its DeploymentClassLoader and is still servicing client requests, the hot update hasn't worked.What am I doing wrong? My service is "application" scoped.Rgds,David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exclude JARs from lib/ using Maven2 AAR Plug-in
Hello, I was wondering if there is a way to make the maven2 AAR plugin not include all dependencies in the lib/ folder of the AAR artifact? Thanks for your help. BR, Leander VVA Networks GmbH Mario-Leander Reimer Dipl.-Inf. (FH) Teamleitung Publishing Solutions --- VVA Networks GmbH : medien mit zukunft Geisenhausenerstra?e 15-17 81379 M?nchen Deutschland --- Fon:+49 89 2000375-610 Fax:+49 89 2000375-699 Mobil: +49 173 5883541 --- [EMAIL PROTECTED] www.vva-networks.de --- HRB 33884 D?sseldorf Gesch?ftsf?hrer Rolf Christian Kassel --- Ein Unternehmen der VVA Kommunikation http://www.vva.de --- omnisuite(r) - integrate. automate. communicate. http://www.omnisuite.de --- Diese Nachricht (inklusive aller Anh?nge) ist vertraulich. Sie darf ausschlie?lich durch den vorgesehenen Empf?nger und Adressaten gelesen, kopiert oder genutzt werden. Sollten Sie diese Nachricht versehentlich erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon unverz?glich zu informieren und die Nachricht zu l?schen. Jede unerlaubte Nutzung oder Weitergabe des Inhalts dieser Nachricht, sei es vollst?ndig oder teilweise, ist unzul?ssig. This message (including any attachments) is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error please contact the sender (by return E-Mail) immediately and delete this message. Any unauthorised use or dissemination of this message in whole or in part is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Message Receiver not found for AxisOperation (when embedding axis2 simplehttpserver)
Arash Can you try this approach: http://nandana83.blogspot.com/2008/06/simplest-axis2-web-service.html Paul On Wed, Oct 29, 2008 at 10:44 AM, Amiri Arash OSF sIT <[EMAIL PROTECTED]> wrote: > > Hi! > > I have an annoying problem here: > > I used wsdl2java to create a stub for the following service: > > public class GetXmlService { > >public String getXml(String xml) { >//do sometthing >return testReplyXml = "..some xml"; >} > > } > > > then I used the following embedded server implementation: > > > > ConfigurationContext context = ConfigurationContextFactory >.createConfigurationContextFromFileSystem(null, null); > Map mrMap = new HashMap(); > mrMap.put("http://www.w3.org/2004/08/wsdl/in-out";, > RPCMessageReceiver.class.newInstance()); > AxisService service = AxisService.createService(GetXmlService.class >.getName(), context.getAxisConfiguration(), mrMap, "", >"http://ws.apache.org/axis2";, GetXmlService.class >.getClassLoader()); > context.getAxisConfiguration().addService(service); > SimpleHTTPServer server = new SimpleHTTPServer(context, 8080); >server.start(); > > > the error I get is this: > > org.apache.axis2.AxisFault: Message Receiver not found for AxisOperation: > getXml >at > org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512) >at > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370) >at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416) > ... > > > is something wrong with my configuration? > > please help > > greetings, > arash > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Message Receiver not found for AxisOperation (when embedding axis2 simplehttpserver)
Hi! I have an annoying problem here: I used wsdl2java to create a stub for the following service: public class GetXmlService { public String getXml(String xml) { //do sometthing return testReplyXml = "..some xml"; } } then I used the following embedded server implementation: ConfigurationContext context = ConfigurationContextFactory .createConfigurationContextFromFileSystem(null, null); Map mrMap = new HashMap(); mrMap.put("http://www.w3.org/2004/08/wsdl/in-out";, RPCMessageReceiver.class.newInstance()); AxisService service = AxisService.createService(GetXmlService.class .getName(), context.getAxisConfiguration(), mrMap, "", "http://ws.apache.org/axis2";, GetXmlService.class .getClassLoader()); context.getAxisConfiguration().addService(service); SimpleHTTPServer server = new SimpleHTTPServer(context, 8080); server.start(); the error I get is this: org.apache.axis2.AxisFault: Message Receiver not found for AxisOperation: getXml at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416) ... is something wrong with my configuration? please help greetings, arash - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Interaction between AXIS jars and jax-rpc and client stubs
Hi, Can anyone give me a brief rundown of how the above elements interact with each other? I would like to understand the roles that these elements play in an RPC style method invocation. Thanks. Paul Ockleford *** This message may contain confidential and privileged information. If you are not the intended recipient you should not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents. To do so is strictly prohibited and may be unlawful. Please inform the sender that this message has gone astray before deleting it. Thank you. 2008 marks the 60th anniversary of the NHS. It's an opportunity to pay tribute to the NHS staff and volunteers who help shape the service, and celebrate their achievements. If you work for the NHS and would like an NHSmail email account, go to: www.connectingforhealth.nhs.uk/nhsmail *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 + jms
Hi Shen Now my axis2 server is listen to the queue, and How can I write a client to call the service? First of all lets make sure your service started on JMS successfully. If it did, it should dump some information like the following: 2008-10-29 14:30:15,240 [-] [main] INFO JMSListener JMS Transport Receiver/Listener initialized... 2008-10-29 14:30:15,315 [-] [main] INFO JMSConnectionFactory Connected to the JMS connection factory : TopicConnectionFactory 2008-10-29 14:30:15,648 [-] [main] INFO JMSConnectionFactory Connection factory : myTopicConnectionFactory initialized... 2008-10-29 14:30:15,651 [-] [main] INFO JMSConnectionFactory Connected to the JMS connection factory : QueueConnectionFactory 2008-10-29 14:30:15,709 [-] [main] INFO JMSConnectionFactory Connection factory : myQueueConnectionFactory initialized... 2008-10-29 14:30:15,712 [-] [main] INFO JMSConnectionFactory Connected to the JMS connection factory : QueueConnectionFactory 2008-10-29 14:30:15,730 [-] [main] INFO JMSConnectionFactory Connection factory : default initialized... 2008-10-29 14:30:15,731 [-] [main] INFO JMSListener JMS Listener started 2008-10-29 14:30:15,731 [-] [main] INFO JMSListener Starting to listen on destination : SimpleStockQuoteService of type queue for service SimpleStockQuoteService 2008-10-29 14:30:15,733 [-] [main] INFO JMSConnectionFactory Mapped JNDI name : SimpleStockQuoteService and JMS Destination name : SimpleStockQuoteService against service : SimpleStockQuoteService 2008-10-29 14:30:15,772 [-] [main] WARN JMSConnectionFactory Cannot find destination : SimpleStockQuoteService. Creating a Queue The JMS listener defaults to a Queue with the same name as your service - unless you override this with the "transport.jms.Destination" property. So make sure to create the required destination as necessary as WLS does not auto create this like ActiveMQ. Once it starts successfully, you should be able to post a text message (e.g. "") from the WLS console to this queue and see something happening on the service. If this is all working, everything is fine. I attached my TestClient and below attached my axis2.xml snippt: Basically a client for a JMS service looks exactly the same as one for a normal web service. Only the EPR or the "To" address would be a JMS URL If you see any errors, posting your logs would help us better understand any problem asankha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running axis2 in tomcat
On Wed, 2008-10-29 at 01:29 -0700, Kasun Herath wrote: Hi Kasun, > I'm using tomcat 6 to run axis2. services such as validate run when > using java 1.6 but when i switch to java 1.5 it is not working. > I need to have java 1.5 in my system. Any idea why is it happening? What's your stack trace ? -Rajika > > -- http://wso2.org http://llvm.org http://www.osdev.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running axis2 in tomcat
I'm using tomcat 6 to run axis2. services such as validate run when using java 1.6 but when i switch to java 1.5 it is not working. I need to have java 1.5 in my system. Any idea why is it happening?
RE: Axis2 + jms
On Wed, 2008-10-29 at 15:57 +0800, Shen, Chunxia wrote: > Hi asankha, > > Thanks a lot for your help. > > Now my axis2 server is listen to the queue, and How can I write a client to > call the service? According to your client code, you should have a service named "myjmsqueue", do you have that service deployed ? > > I attached my TestClient and below attached my axis2.xml snippt: > > >class="org.apache.axis2.transport.jms.JMSListener"> > > locked="false">weblogic.jndi.WLInitialContextFactory > locked="false">t3://localhost:80 > locked="false">myjmsfactory > > > You'll need to add the Transport sender as well. -Rajika -- http://wso2.org http://llvm.org http://www.osdev.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis2 + jms
Hi asankha, Thanks a lot for your help. Now my axis2 server is listen to the queue, and How can I write a client to call the service? I attached my TestClient and below attached my axis2.xml snippt: weblogic.jndi.WLInitialContextFactory t3://localhost:80 myjmsfactory Thanks & Regards Shen Chunxia (Jennie) ReBT Tel: 86-21-38954626 ext. 61104 [EMAIL PROTECTED] -Original Message- From: Asankha C. Perera [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2008 1:06 PM To: axis-user@ws.apache.org Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Axis2 + jms Hi Shen Refer to http://ws.apache.org/axis2/1_3/jms-transport.html to get started asankha Shen, Chunxia wrote: > Hi, > > I want to implement web service using JMS transport. > Please forward me a good link or an example that would guide me in the > process. > Your help on this will be appreciate. > > > Thanks & Regards > > Shen Chunxia (Jennie) > ReBT > Tel: 86-21-38954626 ext. 61104 > [EMAIL PROTECTED] > > > > > Thanks & Regards > > > Shen Chunxia (Jennie) > ReBT > Tel: 86-21-38954626 ext. 61104 > [EMAIL PROTECTED] > > -Original Message- > From: Hans Drexler [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 10, 2008 10:05 PM > To: axis-user@ws.apache.org > Subject: RE: Axis2 + jms > > > Hello Dwiputera, > > No, there is no such tool that is easily accessible. In the end, we wrote a > small Java program to put messages in the queue. It isn't really hard to do. > > Not really the end of your problem, I Know... > > -Original Message- > From: Dwiputera Aries Fajar (CI/AFR-SG) [mailto:[EMAIL PROTECTED] > Sent: woensdag 3 september 2008 9:01 > To: axis-user@ws.apache.org > Subject: Axis2 + jms > > Hi all, > > I'm quite new to AXIS2 and JMS, so I hope someone in the forum can help me. > We are trying to expose our Webservice through JMS. We are using AXIS2 and > exploring ActiveMQ. > > So...i have performed all the necessary steps from : > > http://ws.apache.org/axis2/1_1/jms-transport.html > > Everythigg seesm to be ok, my WSDL is correct and it also expose my binding > as JMS (see the snipset below). > > Now...how can I invoke this WS through JMS? Is there any tools like SoapUI > where I can give my wsdl and shoot? (I can do just like that if I use the > HTTP request within SoapUI, but if I use the JMS, it seems to not reacting. > Even my ActiveMQ console seems not to receive any new message). > > Furthermore, how can I build a JMS client for this particular WS? (any > example code???) > > Thanks, > Aries > > > > location="jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616"/> > > − > > location="jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616"/> > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] TestClient.java Description: TestClient.java - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 + jms
On Wed, 2008-10-29 at 10:36 +0530, Asankha C. Perera wrote: Hi Shen, http://wso2.org/library/3663 , If you are planning to use Apache/QPid as your JMS provider. -Rajika > Hi Shen > > Refer to http://ws.apache.org/axis2/1_3/jms-transport.html to get started > > asankha > Shen, Chunxia wrote: > > Hi, > > > > I want to implement web service using JMS transport. > > Please forward me a good link or an example that would guide me in the > > process. > > Your help on this will be appreciate. > > > > > > Thanks & Regards > > > > Shen Chunxia (Jennie) > > ReBT > > Tel: 86-21-38954626 ext. 61104 > > [EMAIL PROTECTED] > > -- http://wso2.org http://llvm.org http://www.osdev.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]