roadmap
Hi all, I am looking for the road map for axis going forward.Can someone let me know where i can find it.I want to contribute to this opensource in some way or the other. Thanks in advance William
Re: WSDL port and binding - are they one-to-one mapping
Hi Dies, Thank you for your reply. So we can say the mapping from port to address is one-to-one, if multiple ports correspond to the same binding, that means they are simply alternative addresses for the same service implementation. So they are just backup addresses for each other, right? So it is at client program's discretion to choose a port. If YourServicePortA is chosen, SOAPEnvelope is routed to localhost, if YourServicePortB is chosen, the SOAPEnvelope is routed to differenthos. Correct? It seems that this situation is just to provide a way for two deployments of the same service on different machines to share WSDL. Regards, Xinjun On 4/19/06, Dies Koper <[EMAIL PROTECTED]> wrote: Hello Xinjun,Multiple ports can map to one binding. I.e. you make the same serviceavailable through different URLs. location=" http://localhost/yourmodule/services/port_a"/> location=" https://differenthost/yourmodule/webservices/port_b"/> Regards,DiesXinjun Chen wrote: > In WSDL we may have multiple bindings for a single portType. Every service> may have multiple ports.> Is the mapping from port to binding is one to one?>> Regards,> Xinjun
Re: Module Inclusion
Hi Corey; In axis2 you have two types of phases called global and operation specific. Security phase is said to be a global phase , what that mean is when you add a handler into such a phase those handler will run on each web service invocation irrespective of the service. So in ur case even though you have engage your module into ur service , it is adding a handler into global phase. That is the reason behind running ur handler even when you invoke version service . But if you add ur handler into operation phase (phases listed after Dispatch phase) that will not happen. Corey Baswell wrote: > Greetings, > I have created a module who's module xml file looks like the following: > > // > / Security Module > > > > > / > > > Then within my service archive I reference this module from > services.xml like this: > > / > Service desc > > > class="gov.nasa.service.axis2.receivers.InOutJBIReceiver" />/ > / / > // > // > This works correctly meaning that when I call my service the > /InSecurityHandler /is engaged in the Security phase. However when I > use the /getVersion/ default Axis2 service, the InSecurityHandler is > invoked there as well. My question is should this be happening since > the securitymodule is not referenced the /getVersion/ service archive > file (services.xml)? And if it is (supposed to be happening), can I > prevent this somehow? > > Thanks for any help, > > Corey -- Thanks, Deepal ~Future is Open~
Re: [Axis2] Syntax of services.xml and mocule.xml
http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/xdocs/latest/resources/schemas/ Thanks, Ruchith On 4/19/06, Samisa Abeysinghe <[EMAIL PROTECTED]> wrote: > Do we have DTD/Schema defines for those files? > Where can I find the syntax? > > Thanks, > Samisa... >
Re: got security module installation problems :(
Hi, If you are using the security module distributed with Axis2-0.95 please make sure you have the following jars in the classpath (for a service in Tomcat its the WEB-INF/lib directory): - bcprov-jdk13-131.jar - commons-discovery-0.2.jar - wss4j-SNAPSHOT.jar - xmlsec-1.2.1.jar All these are available in the Axis2-std-0.95-bin distro in the "samples/security/lib" directory. Also since you are using JDK 1.5 you will have to use xalan-2.6.jar as well. Thanks, Ruchith On 4/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Hello, I can't get the security module to work. I am using Tomcat 5.5, JDK > 1.5 and > Axis 2 0.95 (bin-download). I added in axis2.xml > (after addressing) and placed the security.mar in > tomcat/webapps/axis2/web-inf/modules. To visit > http://localhost:8080/axis2/listServices shows me this error: > > java.lang.NoClassDefFoundError: org/apache/xpath/compiler/FuncLoader > ... > > Well i found: delete wss4j-SNAPSHOT.jar and download xalan.jar to fix the > problem but it doesnt work for me, it says > > javax.servlet.ServletException: Trying to engage a module which is not > available : security; nested exception is: > org.apache.axis2.AxisFault: Trying to engage a module which is! not > available : security > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:215) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > java.lang.Thread.run(Unknown Source) > > Does anyone knows a solution? > > Thanks for your help :) > > > > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
DIME attachment content type
New to the list and relatively new to java and axis. I am trying to use axis 1.3 to send attachments to .NET in DIME format as I have read that it doesn't support MIME. I have sent an attachment successfully, however I am sending a PDF and the .NET side isn't recognizing it's file type. Is it possible to send file type info for DIME attachments? When I try I get errors and the .NET side says the file is zero length. Here is some of the code I am using which is based out of WSDL2Java: // this was required to let mail know about the pdf type javax.activation.MailcapCommandMap mc = (javax.activation.MailcapCommandMap)javax.activation.CommandMap.getDefaultCommandMap(); mc.addMailcap("application/pdf;; x-java-content-handler=com.sun.mail.handlers.text_html"); javax.activation.CommandMap.setDefaultCommandMap(mc); javax.activation.DataHandler pdfFile = new javax.activation.DataHandler(new javax.activation.FileDataSource("/Users/admin/Desktop/testads.pdf"),"application/pdf"); binding.addAttachment(pdfFile); if I take out the content type, then it sends, but .NET doesn't know what the file is. If I leave it in, then .NET gets a zero length file. Thanks for any help, Kyle
Re: WSDL port and binding - are they one-to-one mapping
Hello Xinjun, Multiple ports can map to one binding. I.e. you make the same service available through different URLs. location="http://localhost/yourmodule/services/port_a"/> location="https://differenthost/yourmodule/webservices/port_b"/> Regards, Dies Xinjun Chen wrote: In WSDL we may have multiple bindings for a single portType. Every service may have multiple ports. Is the mapping from port to binding is one to one? Regards, Xinjun
[Axis2] Syntax of services.xml and mocule.xml
Do we have DTD/Schema defines for those files? Where can I find the syntax? Thanks, Samisa...
WSDL port and binding - are they one-to-one mapping
In WSDL we may have multiple bindings for a single portType. Every service may have multiple ports. Is the mapping from port to binding is one to one? Regards, Xinjun
No parameters specified to the Call object! You must call addParameter() ...
Folks, Has no one encountered this problem calling a service end point that takes no arguments?? Here is the code called from my DII client: try { Service service = new org.apache.axis.client.Service(); Call call = (Call) service.createCall(); URL endpointURL = new URL(sessionEndpoint); call.setTargetEndpointAddress(endpointURL); QName opQName = new QName(sessionEndpoint, "returnSession"); call.setOperationName("returnSession"); call.removeAllParameters(); QName returnType = new QName(sessionEndpoint, "PlayerSession"); Class cl = PlayerSession.class; BeanSerializerFactory bsf = new BeanSerializerFactory(cl, returnType); BeanDeserializerFactory bdf = new BeanDeserializerFactory(cl, returnType); call.registerTypeMapping(cl, returnType, bsf, bdf); call.setReturnType(new QName("PlayerSession")); Object [] args = new Object [] {1}; // How to invoke when there are no arguments? Object result = call.invoke(args); } catch (Exception ex) { System.out.println(ex.getMessage()); ex.printStackTrace(); } Here is the exception I get: No parameters specified to the Call object! You must call addParameter() for all parameters if you have called setReturnType(). AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: No parameters specified to the Call object! You must call addParameter() for all parameters if you have called setReturnType(). faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:No parameters specified to the Call object! You must call addParameter() for all parameters if you have called setReturnType(). But if I make the call using the "void Call.invoke()" API with no args like this: call.invoke() I get this exception: java.lang.NullPointerException at org.apache.axis.client.Call.invoke(Call.java:2695) at FamilyJaxClient.returnSession(FamilyJaxClient.java:392) at FamilyJaxClient.run(FamilyJaxClient.java:43) at FamilyJaxClient.main(FamilyJaxClient.java:461) I found the following link on an Apache developer list mail archive. http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200203.mbox/[EMAIL PROTECTED] Can't tell if the exchange means this is a bug? So how do you call a web service that takes no arguments? Thanks, Vartan __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Axis2 1.0 RC1 WSDL2Java error when import WS-Addressing
When I have WS-Addressing schema imported in my wsdl, I get this error running WSDL2Java -uri C:\gpatwa\workspace\BPELAxisAsyncTest\tmp\HelloWorldAsync.wsdl -a on -ss -sd -d xmlbeans -o C:\gpatwa\workspace\BPELAxisAsyncTest\tmp -p com.liquid.helloworld Both xmlbeans and JAxme throws error. Retrieving schema at 'http://www.w3.org/2006/03/addressing/ws-addr.xsd', relative to 'file:/C:/gpatwa/workspace/BPELAxisAsyncTest/tmp/'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://www.w3.org/2001/XMLSchema in element [EMAIL PROTECTED]://www.w3.org/2001/XMLSchema at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://www.w3.org/2001/XMLSchema in element [EMAIL PROTECTED]://www.w3.org/2001/XMLSchema at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:140) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140) ... 2 more Caused by: org.apache.xmlbeans.XmlException: error: cvc-complex-type.2.4b: Element not allowed: [EMAIL PROTECTED]://www.w3.org/2001/XMLSchema in element [EMAIL PROTECTED]://www.w3.org/2001/XMLSchema at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665) at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:117) ... 3 more -- View this message in context: http://www.nabble.com/Axis2-1.0-RC1-WSDL2Java-error-when-import-WS-Addressing-t1471363.html#a3978572 Sent from the Axis - User forum at Nabble.com.
Re: XML Attribute Value
hellothanks for your help Anne.It was very helpfull.but i supprized because why axis documentation does not include or enough information about attribute value.otherwise did i miss the something ? http://ws.apache.org/axis/java/user-guide.html thanks.2006/4/17, Anne Thomas Manes <[EMAIL PROTECTED]>: Yes -- that's correct. Axis will support attributes in any unwrapped document/literal style service. It can also support attributes in wrapped document/literal and rpc/encoded services -- but only in child elements of the parameter accessor elements -- not in the parameter accessor elements themselves. In your case, you have an attribute in the accessor element (), therefore your only option is to use unwrapped document literal. Note, though, that the following SOAP message is invalid: http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="http://schemas.xmlsoap.org/soap/encoding/"> Jhon The child element of the element () must be namespace qualified. It should be: http://schemas.xmlsoap.org/soap/envelope/"> http://www.axis.com/TestWS"> Jhon In any case, my suggestion is that you define a schema that describes your input message, e.g.,: http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.axis.com/TestWS" > (You should also define your expected output message in the same schema).Then embed this schema in a WSDL document that efines the "myWSMethod" operation. Then run WSDL2Java on this WSDL. Axis should automatically generate the appropriate Java classes and deserializers for you. AnneOn 4/17/06, Recep Ayaz < [EMAIL PROTECTED]> wrote: Hello Thanks for your interesting Anne.But i am a little confused.i have some question in my mind.does Axis 1.3 support xml element attribute ?if does, my SOAP message encoding style must be document/literal. does it ? and your suggestion firstly write wsdl file and generate wsdd and class files.am i right Anne ?thanks. 2006/4/17, Anne Thomas Manes < [EMAIL PROTECTED]>:You'll find the process much easier if you start by defining your WSDL -- then generate your code and WSDD from the WSDL. AnneOn 4/17/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote: Axis doesn't provide a default typemapping for this scenario, so you will need to define a custom typemapping. On 4/17/06, Recep Ayaz < [EMAIL PROTECTED]> wrote:HiThanks for answer Anne. I switch to documental/literal thensystem generate error and written at tomcat screen that :- Please register a typemapping/beanmapping for 'WSApp.Beans.TestClass'colud you give a more information ? thanks.2006/4/17, Anne Thomas Manes <[EMAIL PROTECTED] >: Attributes in your parameter elements are not permitted when using rpc/encoed. I suggest you switch to document/literal.Anne On 4/17/06, Recep Ayaz <[EMAIL PROTECTED]> wrote: Hello I am using axis 1.3 and tomcat 4.1. I am writting some java classes for my web service (server-side). But i have some problems with Xml attribute fields (this is my third email so i am apologize for annoyance.). my question is how can get xml element attribute value ? Which parameters and definitions should be modified or made in wsdd file or java class? also i am send,ng my java class, wsdd file and SOAP request xml java.Class: package WSApp.Beans; public class TestWS { public TestWS() { } public String myWSMethod(String s, int xmlAttributeParameter ) { // doing something //.. return "I got "s + " OK "; } } --- My wsdd file : http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" xmlns:TestWS="http://www.axis.com/TestWS" xmlns:reg="http://www.soapinterop.org/Registry"> http://www.axis.com/TestWS my SOAP request xml message http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="http://schemas.xmlsoap.org/soap/encoding/"> Jhon - my problem is how can i get value of "xmlAttributeParameter" ? please someone help me i am really stuck about this. Thanks.
Very Urgent Please help
Hi every one, Pleae accept my apologize if this question already been posted. I have an Axis Web service runing on tomcat, i am trying to consume it through ASP 2.0 client using MS Soap Toolkit 2.0. I am getting error about : - Technical Information (for support personnel) * Error Type: WSDLReader (0x80020009) WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is: The download of the specified resource has failed. HRESULT=0x1: Incorrect function. - WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057: The parameter is incorrect. - Client:-One of the parameters supplied is invalid. HRESULT=0x80070057: The parameter is incorrect. /agio/soapclient.asp, line 7 * Browser Type: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 * Page: GET /agio/soapclient.asp * Time: Tuesday, April 19, 2005, 3:47:30 AM -- Can any one help me in this? Thanks in advance Muhammad Iqbal Software Engineer Etilize Inc. cell :0092-300-9377801
Re: [axis2] [svn] ClassCastException while calling changeType()
Hello Ajith. Sorry, I thought I put all the relevant infos into my mail. It is on the server side. On the client-side everything goes o.k. There I can use changeType very well. Again, the identical Skeleton works if a call it outside of Axis2. I already testet to unpack the xmlbean-resources like: care + org + haschemi + ... + schemaorg_apache_xmlbeans ... + META-INF + services.xml And I also put the packed XBeans-packaged.jar into the axis2/WEB-INF folder. None of this changes works. Is there a way to increase the verbosity of xmlbeans? I tried to change the log4j.properties in the axis2/WEB-INF/conf folder but nothing has been printed. Here is the Request and the Response: http://schemas.xmlsoap.org/soap/envelope/";?> http://schemas.xmlsoap.org/soap/envelope/";> http://haschemi.org/shop/common";> http://haschemi.org/shop/common"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; id="3" xsi:type="com:milk-type"> 55.55 http://schemas.xmlsoap.org/soap/envelope/";?> http://schemas.xmlsoap.org/soap/envelope/";> soapenv:Client org.haschemi.shop.common.impl.ProductTypeImpl; nested exception is: java.lang.ClassCastException: org.haschemi.shop.common.impl.ProductTypeImpl org.apache.axis2.AxisFault: org.haschemi.shop.common.impl.ProductTypeImpl; nested exception is: java.lang.ClassCastException: org.haschemi.shop.common.impl.ProductTypeImpl at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) at org.haschemi.shop.service.SpringCareMessageReceiverInOut.invokeBusinessLogic(SpringCareMessageReceiverInOut.java:66) at org.haschemi.shop.service.SpringAbstractInOutSyncMessageReceiver.receive(SpringAbstractInOutSyncMessageReceiver.java:37) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:450) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:305) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:164) 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 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.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:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 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(Thread.java:595) Caused by: java.lang.ClassCastException: org.haschemi.shop.common.impl.ProductTypeImpl at org.haschemi.shop.service.SpringCareSkeleton.addProduct(SpringCareSkeleton.java:64) at org.haschemi.shop.service.SpringCareMessageReceiverInOut.invokeBusinessLogic(SpringCareMessageReceiverInOut.java:51) ... 20 more Thank you very much for your support, Siamak Haschemi Ajith Ranabahu schrieb: Hi, Do you get the classcast exception in the server side or the client side ? if it is the client side it could be due to either the type attribute being missing or not being namespace qualified. If so can you pipe the requests through tcpmon and send the request and response messages ? On 4/18/06, Siamak Haschemi <[EMAIL PROTECTED]> wrote: Hello to all. I have a problem with Axis2 and XMLBeans and I think that this could be a bug. I have a WSDL-file with the following schemas: http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified" targetNamespace="http://haschemi.org/sale/common";> I used WSDL2Java to generate the service and the xmlbean-resources. The xmlbea
Module Inclusion
Greetings,I have created a module who's module xml file looks like the following: Security Module Then within my service archive I reference this module from services.xml like this: Service desc This works correctly meaning that when I call my service the InSecurityHandler is engaged in the Security phase. However when I use the getVersion default Axis2 service, the InSecurityHandler is invoked there as well. My question is should this be happening since the securitymodule is not referenced the getVersion service archive file (services.xml)? And if it is (supposed to be happening), can I prevent this somehow? Thanks for any help, Corey
RE: Can you do non-web server hosting in Axis2?
TCPEchoRawXMLTest.java and TCPTwoChannelEchoRawXMLTest.java from SVN[1] may help. Regards, Ali Sadik Kumlali [1] http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/tcp/?rev=395043 --- "DeRemer, Bob" <[EMAIL PROTECTED]> wrote: > Great! Thanks for the quick reply. Now, are there any samples in > the Axis2 > downloads that show a Java console application that is acting as a > service > host using TCP? I browsed them quickly, but didn't see anything. > > Thanks again! > > -Original Message- > From: Ajith Ranabahu [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 18, 2006 11:25 AM > To: axis-user@ws.apache.org > Subject: Re: Can you do non-web server hosting in Axis2? > > Hi, > Yep - you have a range of options from TCP to JMS as transports > > > > On 4/18/06, DeRemer, Bob <[EMAIL PROTECTED]> wrote: > > > > > > Just a simple question regarding alternative service hosting > capabilities > > using Axis2: > > > > Can I write a basic Java console application that hosts Axis2 > services via > > TCP transport? I'm currently working on a distributed .NET and > Java > > architecture that would really benefit from having certain > components > being > > services/daemon processes, but that would also be hosting services. > So, > the > > different console-style processes would be both service hosts and > clients > - > > with some written in Java, the others written using either .NET 2.0 > + WSE3 > > or WinFX. > > > > Thanks in advance for your help, > > > > Bob DeRemer > > Sr. Software Architect > > > > SAP Labs, LLC > > 350 Eagleview Blvd > > Exton, PA 19341 USA > > T1 +1.610.903.8000 x 136 > > T2 +1.717.505.7923 > > M +1.717.424.9595 > > E[EMAIL PROTECTED] > > > > > -- > Ajith Ranabahu > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2][0.95] Re: got security module installation problems :(
I missed something from your posting. If you really have "web-inf", instead of "WEB-INF", could you please rename it to "WEB-INF" and try again? Regards, Ali Sadik Kumlali --- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote: > Hi, > > I don't know wheter it's related with your problem, but > wss4j-SNAPSHOT.jar is required for security module. I am able to run > security module with the following libraries which reside under > %CATALINA_HOME%\webapps\axis2\WEB-INF\lib: > --- > 23.03.2006 20:04 669.731 axis2-kernel-0.95.jar > 23.03.2006 20:0494.037 axis2-adb-0.95.jar > 23.03.2006 20:04 132.518 axis2-doom-0.95.jar > 23.03.2006 20:04 196.902 axis2-codegen-0.95.jar > 23.03.2006 20:04 126.771 axis-wsdl4j-1.2.jar > 23.03.2006 20:04 2.637.587 xbean-2.1.0.jar > 23.03.2006 20:0446.725 commons-codec-1.3.jar > 23.03.2006 20:0431.528 > geronimo-spec-activation-1.0.2-rc4.jar > 23.03.2006 20:0439.688 policy-1.0.jar > 23.03.2006 20:04 232.272 jaxen-1.1-beta-7.jar > 23.03.2006 20:04 1.203.860 xercesImpl-2.7.1.jar > 23.03.2006 20:0493.418 axiom-api-0.95.jar > 23.03.2006 20:0426.396 stax-api-1.0.jar > 23.03.2006 20:04 102.940 XmlSchema-SNAPSHOT.jar > 23.03.2006 20:04 248.639 annogen-0.1.0.jar > 23.03.2006 20:0422.379 commons-fileupload-1.0.jar > 23.03.2006 20:04 389.968 wstx-asl-2.8.2.jar > 23.03.2006 20:0430.838 geronimo-spec-jms-1.1-rc4.jar > 23.03.2006 20:04 112.700 > geronimo-spec-javamail-1.3.1-rc5.jar > 23.03.2006 20:04 245.992 > backport-util-concurrent-2.0_01_pd.jar > 23.03.2006 20:04 194.205 xml-apis-1.3.02.jar > 23.03.2006 20:0438.015 commons-logging-1.0.4.jar > 23.03.2006 20:04 279.383 commons-httpclient-3.0.jar > 23.03.2006 20:04 102.077 axiom-impl-0.95.jar > 23.03.2006 20:04 358.180 log4j-1.2.13.jar > 23.03.2006 20:0463.798 xmlunit-1.0.jar > 23.03.2006 19:03 1.105.457 bcprov-jdk13-131.jar > 23.03.2006 19:0371.442 commons-discovery-0.2.jar > 23.03.2006 19:03 343.243 wss4j-SNAPSHOT.jar > 23.03.2006 19:03 292.712 xmlsec-1.2.1.jar > 25.03.2006 17:43 3.149.655 xalan-2.6.0.jar > --- > > If you were able to run Security sample comes with Axis2 > distribution, > you would apply the same logic into your code. > > I used to have similar problems last month. You can follow postings > with the subject of "[Axis2][0.95][JDK1.4 and JDK 1.5] Still got > security sample problems :)". > > Regards, > > Ali Sadik Kumlali > > > --- [EMAIL PROTECTED] wrote: > > > > > > > Hello, I can't get the security module to work. I am using Tomcat > > 5.5, JDK 1.5 and > > Axis 2 0.95 (bin-download). I added in > > axis2.xml > > (after addressing) and placed the security.mar in > > tomcat/webapps/axis2/web-inf/modules. To visit > > http://localhost:8080/axis2/listServices > > [http://localhost:8080/axis2/listServices] shows me this error: > > > > java.lang.NoClassDefFoundError: > org/apache/xpath/compiler/FuncLoader > > ... > > > > Well i found: delete wss4j-SNAPSHOT.jar and download xalan.jar to > fix > > the > > problem but it doesnt work for me, it says > > > > javax.servlet.ServletException: Trying to engage a module which is > > not > > available : security; nested exception is: > > org.apache.axis2.AxisFault: Trying to engage a module which is not > > available : security > > > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:215) > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > > java.lang.Thread.run(Unknown Source) > > > > Does anyone knows a solution? > > > > Thanks for your help :) > > > > > > > > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > > kostenguenstig. Jetzt gleich testen! *http://f.web.de/?mc=021192* > > [http://f.web.de/?mc=021192] > > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam p
org.w3c.dom.Element - No xsi:type sent
Hello, I tried to build a webservice returning an org.w3c.dom.Element. When the Element, that is returned, is empty, i get the following soap-body: http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="urn:[myUrn]"> http://xml.apache.org/xml-soap"/> When the Element has content the soap-body looks like this: http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="urn:[myUrn]"> As you can see: In the second example the xsi:type is missing. How can I get Axis sending the xsi:type. (It works fine with any other datatype like Strings or Arrays) Thank you for your help in advance! Greetings John
[Axis2][0.95] Re: got security module installation problems :(
Hi, I don't know wheter it's related with your problem, but wss4j-SNAPSHOT.jar is required for security module. I am able to run security module with the following libraries which reside under %CATALINA_HOME%\webapps\axis2\WEB-INF\lib: --- 23.03.2006 20:04 669.731 axis2-kernel-0.95.jar 23.03.2006 20:0494.037 axis2-adb-0.95.jar 23.03.2006 20:04 132.518 axis2-doom-0.95.jar 23.03.2006 20:04 196.902 axis2-codegen-0.95.jar 23.03.2006 20:04 126.771 axis-wsdl4j-1.2.jar 23.03.2006 20:04 2.637.587 xbean-2.1.0.jar 23.03.2006 20:0446.725 commons-codec-1.3.jar 23.03.2006 20:0431.528 geronimo-spec-activation-1.0.2-rc4.jar 23.03.2006 20:0439.688 policy-1.0.jar 23.03.2006 20:04 232.272 jaxen-1.1-beta-7.jar 23.03.2006 20:04 1.203.860 xercesImpl-2.7.1.jar 23.03.2006 20:0493.418 axiom-api-0.95.jar 23.03.2006 20:0426.396 stax-api-1.0.jar 23.03.2006 20:04 102.940 XmlSchema-SNAPSHOT.jar 23.03.2006 20:04 248.639 annogen-0.1.0.jar 23.03.2006 20:0422.379 commons-fileupload-1.0.jar 23.03.2006 20:04 389.968 wstx-asl-2.8.2.jar 23.03.2006 20:0430.838 geronimo-spec-jms-1.1-rc4.jar 23.03.2006 20:04 112.700 geronimo-spec-javamail-1.3.1-rc5.jar 23.03.2006 20:04 245.992 backport-util-concurrent-2.0_01_pd.jar 23.03.2006 20:04 194.205 xml-apis-1.3.02.jar 23.03.2006 20:0438.015 commons-logging-1.0.4.jar 23.03.2006 20:04 279.383 commons-httpclient-3.0.jar 23.03.2006 20:04 102.077 axiom-impl-0.95.jar 23.03.2006 20:04 358.180 log4j-1.2.13.jar 23.03.2006 20:0463.798 xmlunit-1.0.jar 23.03.2006 19:03 1.105.457 bcprov-jdk13-131.jar 23.03.2006 19:0371.442 commons-discovery-0.2.jar 23.03.2006 19:03 343.243 wss4j-SNAPSHOT.jar 23.03.2006 19:03 292.712 xmlsec-1.2.1.jar 25.03.2006 17:43 3.149.655 xalan-2.6.0.jar --- If you were able to run Security sample comes with Axis2 distribution, you would apply the same logic into your code. I used to have similar problems last month. You can follow postings with the subject of "[Axis2][0.95][JDK1.4 and JDK 1.5] Still got security sample problems :)". Regards, Ali Sadik Kumlali --- [EMAIL PROTECTED] wrote: > > > Hello, I can't get the security module to work. I am using Tomcat > 5.5, JDK 1.5 and > Axis 2 0.95 (bin-download). I added in > axis2.xml > (after addressing) and placed the security.mar in > tomcat/webapps/axis2/web-inf/modules. To visit > http://localhost:8080/axis2/listServices > [http://localhost:8080/axis2/listServices] shows me this error: > > java.lang.NoClassDefFoundError: org/apache/xpath/compiler/FuncLoader > ... > > Well i found: delete wss4j-SNAPSHOT.jar and download xalan.jar to fix > the > problem but it doesnt work for me, it says > > javax.servlet.ServletException: Trying to engage a module which is > not > available : security; nested exception is: > org.apache.axis2.AxisFault: Trying to engage a module which is not > available : security > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:215) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > java.lang.Thread.run(Unknown Source) > > Does anyone knows a solution? > > Thanks for your help :) > > > > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! *http://f.web.de/?mc=021192* > [http://f.web.de/?mc=021192] > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
WSDL Vs Generated WSDL question
Heya, I'm pretty new to AXIS/XSD/WSDL, so hopefully this is a easy question. I am using AXIS+Castor to create a WSDL first, Document/Literal wrapped web service that returns a list of products. I was aiming for a structure like: . . After running my WSDL/XSD through WSDL2Java and Castor's SourceGen, I am able to get a list of products using the AXIS client stubs, but the SOAP response doesn't match the structure above and I'm not sure why. It does match the generated WSDL, but I'm not sure why the WSDL changed the way it did. Anyone got any ideas? I've included my XSDs, WSDL, SOAP response, and generated WSDL below. Thanks, Anna Reasearch.xsd = http://www.w3.org/2001/XMLSchema"; targetNamespace="http://xxx.com/xxx/xxx/xxx/xxx"; elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:tns="http://xxx.com/xxx/xxx/xx/xxx";> === ResearchService.xsd === http://www.w3.org/2001/XMLSchema"; targetNamespace="http://xxx.com/xxx/xxx/xxx/xxx/service"; elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:tns="http://xxx.com/xxx/xxx/xxx/xxx/service"; xmlns:types="http://xxx.com/xxx/xxx/xxx/xxx";> http://xxx.com/xxx/xxx/xxx/xxx"; schemaLocation="Research.xsd"/> = Research.WSDL = http://xxx.com/xxx/xxx/wsdl"; xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="http://xxx.com/xxx/xxx/wsdl"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:svc="http://xxx.com/xxx/xxx/xxx/xxx/service"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";> http://xxx.com/xxx/xxx/wsdl"; xmlns:svc="svc" xmlns:xsd="http://www.w3.org/2001/XMLSchema";> http://xxx.com/xxx/xxx/xxx/xxx/service"; schemaLocation="../xsd/ResearchService.xsd"/> http://schemas.xmlsoap.org/soap/http"; /> http://xx.xx.xx.xx:/xxx/services/ResearchSOAPPort"; /> = SOAP response = http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> http://xxx.com/xxx/xxx/xxx/xxx/service";> http://xxx.com/xxx/xxx/xxx/xxxh";> Product1 SAM XXX 150
got security module installation problems :(
Hello, I can't get the security module to work. I am using Tomcat 5.5, JDK 1.5 and Axis 2 0.95 (bin-download). I added in axis2.xml (after addressing) and placed the security.mar in tomcat/webapps/axis2/web-inf/modules. To visit http://localhost:8080/axis2/listServices shows me this error:java.lang.NoClassDefFoundError: org/apache/xpath/compiler/FuncLoader...Well i found: delete wss4j-SNAPSHOT.jar and download xalan.jar to fix the problem but it doesnt work for me, it saysjavax.servlet.ServletException: Trying to engage a module which is not available : security; nested exception is:org.apache.axis2.AxisFault: Trying to engage a module which is! not available : securityorg.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:215)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Unknown Source)Does anyone knows a solution?Thanks for your help :)SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
Re: Trouble running axis2 examples
Sorry, I forgot to add ant target. It must have been as ~/webservices/axis095/dist/samples/userguide$ ant testEchoBlockingClient Regards, Ali Sadik Kumlali --- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote: > Hi Matt, > > Did you try running Ant script, instead of running it by yourself? > > You should have build.xml under > ~/webservices/axis095/dist/samples/userguide$. Just try following > command: > > ~/webservices/axis095/dist/samples/userguide$ ant > > If it works, you can find your missing point by following definitions > found in build.xml. > > Regards, > > Ali Sadik Kumlali > > > >userguide.clients.EchoBlockingClient > > --- Matt L <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > I have installed tomcat 5.5.16 on Slackware Linux and installed > axis2 > > 0.95 within tomcat. I can view the axis2 page from a browser and > have > > successfully validated the installation. The example services > > MyService > > and Version are available from the server. That is, I ran > > ~/webservices/axis095/dist/samples/userguide$ sudo cp *.aar \ > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/services/ > > > > I can compile all of the .java files under > > samples/userguide/src/userguide/clients from the standard > > distribution. > > I want to run the EchoBlockingClient or EchoBlockingDualClient > > sample, > > but I get the output below. > > > > Thank you for your help, > > Matt > > > > --- > > ~/webservices/axis095/dist/samples/userguide$ echo $CLASSPATH | sed > > -e > > 's/:/\n/g' > > . > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/XmlSchema-SNAPSHOT.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/annogen-0.1.0.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axiom-api-0.95.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axiom-impl-0.95.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis-wsdl4j-1.2.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-adb-0.95.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-codegen-0.95.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-doom-0.95.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-kernel-0.95.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/backport-util-concurrent-2.0_01_pd.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-codec-1.3.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-fileupload-1.0.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-httpclient-3.0.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-logging-1.0.4.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-activation-1.0.2-rc4.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-javamail-1.3.1-rc5.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-jms-1.1-rc4.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxen-1.1-beta-7.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxme2-0.5.1.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxmejs-0.5.1.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxmexs-0.5.1.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/log4j-1.2.13.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/maven-itest-plugin-1.0.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/policy-1.0.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/servletapi-2.3.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/stax-api-1.0.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/wstx-asl-2.8.2.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xbean-2.1.0.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xercesImpl-2.7.1.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xml-apis-1.3.02.jar > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xmlunit-1.0.jar > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2.war > > /usr/local/webservices/ext_lib/addressing-0.95.mar > > /home/mleinho/webservices/axis095/dist/samples/userguide/src > > /home/mleinho/webservices > > > > ~/webservices/axis095/dist/samples/userguide$ jar tf \ > > > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/services/MyService.aar > > M
Re: Trouble running axis2 examples
Hi Matt, Did you try running Ant script, instead of running it by yourself? You should have build.xml under ~/webservices/axis095/dist/samples/userguide$. Just try following command: ~/webservices/axis095/dist/samples/userguide$ ant If it works, you can find your missing point by following definitions found in build.xml. Regards, Ali Sadik Kumlali >userguide.clients.EchoBlockingClient --- Matt L <[EMAIL PROTECTED]> wrote: > Hello, > > I have installed tomcat 5.5.16 on Slackware Linux and installed axis2 > 0.95 within tomcat. I can view the axis2 page from a browser and have > successfully validated the installation. The example services > MyService > and Version are available from the server. That is, I ran > ~/webservices/axis095/dist/samples/userguide$ sudo cp *.aar \ > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/services/ > > I can compile all of the .java files under > samples/userguide/src/userguide/clients from the standard > distribution. > I want to run the EchoBlockingClient or EchoBlockingDualClient > sample, > but I get the output below. > > Thank you for your help, > Matt > > --- > ~/webservices/axis095/dist/samples/userguide$ echo $CLASSPATH | sed > -e > 's/:/\n/g' > . > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/XmlSchema-SNAPSHOT.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/annogen-0.1.0.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axiom-api-0.95.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axiom-impl-0.95.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis-wsdl4j-1.2.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-adb-0.95.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-codegen-0.95.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-doom-0.95.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-kernel-0.95.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/backport-util-concurrent-2.0_01_pd.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-codec-1.3.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-fileupload-1.0.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-httpclient-3.0.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-logging-1.0.4.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-activation-1.0.2-rc4.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-javamail-1.3.1-rc5.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-jms-1.1-rc4.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxen-1.1-beta-7.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxme2-0.5.1.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxmejs-0.5.1.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxmexs-0.5.1.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/log4j-1.2.13.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/maven-itest-plugin-1.0.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/policy-1.0.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/servletapi-2.3.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/stax-api-1.0.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/wstx-asl-2.8.2.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xbean-2.1.0.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xercesImpl-2.7.1.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xml-apis-1.3.02.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xmlunit-1.0.jar > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2.war > /usr/local/webservices/ext_lib/addressing-0.95.mar > /home/mleinho/webservices/axis095/dist/samples/userguide/src > /home/mleinho/webservices > > ~/webservices/axis095/dist/samples/userguide$ jar tf \ > /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/services/MyService.aar > META-INF/ > META-INF/MANIFEST.MF > META-INF/services.xml > userguide/ > userguide/example1/ > userguide/example1/MyService.class > > ~/webservices/axis095/dist/samples/userguide$ java > userguide.clients.EchoBlockingClient > org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: > userguide.example1.MyService; nested exception is: > java.lang.ClassNotFoundException: > userguide.example1.MyService > at org.apache.axis2.AxisFault.mak
Re: Exchange Data between twi Services in a ServiceGroup
Thank you for your hint. I will give it a try. I think that Axis2 needs much more examples for such little questions. This will be a keypoint for the acceptance of the 3rd generation of this Apache project. Thank you very much, Siamak Haschemi Deepal Jayasinghe schrieb: Hi Siamak; Sorry for late reply. You dont need to use static variable , context hierarchy is there to provide those features for you. When you deploy a service in application scope , then the associate ServiceGroupContext and serviceContext has the life time of the system , so best way is to store a property in one of those context rather than using static variables. at the runtime you can access any of those context using message context. Siamak Haschemi wrote: I solved my problem by using a static variable, but it would be nice to know if there exists a Context to put references in which has a lifetime longer than a service-call. Thanks a lot, Siamak Haschemi Siamak Haschemi schrieb: Hello Robert, I've already implemented such a Spring-MessageReceiver that lookups Services that are actualy Beans from its SpringConfiguration. I only searching about a way to share some Object reference across multiple Service-Calls. Thanks, Siamak Haschemi robert lazarski schrieb: Is what you're realy after is two services that are wired into Spring? Spring-ApplicationContext already is a singleton - look at setting up a BeanFactory. The other way is as you show in services.xml - message recievers. I'm actually coding one up a spring message receiver now. The idea is to wire spring aware beans that are services. Anyways, HTH, Robert http://www.braziloutsource.com/ On 4/17/06, Siamak Haschemi <[EMAIL PROTECTED]> wrote: Hello to all. I have two Services defnied. They need to share a reference to the Spring-ApplicationContext. Now I need to know how the communication between two Services in a ServiceGroup can be achieved. I know I can do this with a Singleton, but I wonder if Axis2 has some mechanism for Inter-Service-Communication. Another Idea would be to merge the two MessageReceivers, but I need this separation. http://www.w3.org/2004/08/wsdl/in-out"; class="org.haschemi.sale.service.SpringSaleMessageReceiverInOut" /> org.haschemi.sale.service.SaleSkeleton http://www.w3.org/2004/08/wsdl/in-out";> http://haschemi.org/sale/order http://www.w3.org/2004/08/wsdl/in-out"; class="org.haschemi.sale.service.SpringCareMessageReceiverInOut" /> org.haschemi.sale.service.CareSkeleton http://www.w3.org/2004/08/wsdl/in-out";> http://haschemi.org/sale/addProduct Thanks a lot, Siamak Haschemi
Re: [axis2] JMS transport - temporary destinations
Roger, Have u looked at the test case [1]? caution, i do need to download activemq and try it again. right now the test case is disabled in the test harness. thanks, dims [1] http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/jms/JMSEchoRawXMLTest.java On 4/18/06, Nell, Roger <[EMAIL PROTECTED]> wrote: > I've been mulling around the idea that a client sends a request on a well > known JMS queue to execute a service. The reply should come back on a > temporary queue that the client has created. Axis2 doesn't seem to be set up > for this as the client names a transport/queue by setting an option: > options.setTransportInProtocol( "jms" ); > which references a transportReceiver in the axis2.xml config file with a > hard-coded queue name. > > I can't figure out how to make that a temporary queue without hacking up > axis2. > 1. Create a new transportReceiver entry in axis2, call it > TemporaryJMSListener > 2. Hackup the JNDIVendorAdapter and JMSVendorAdapter to create a temporary > queue if the destination name is blank. > 3. Extract the name of the created temporary queue name and set it as the > reply-to in the soap header. > > > I'm I doing something wrong? Is there an easier way? > > > > ** > This e-mail contains privileged attorney-client communications and/or > confidential information, and is only for the use by the intended recipient. > Receipt by an unintended recipient does not constitute a waiver of any > applicable privilege. > > Reading, disclosure, discussion, dissemination, distribution or copying of > this information by anyone other than the intended recipient or his or her > employees or agents is strictly prohibited. If you have received this > communication in error, please immediately notify us and delete the original > material from your computer. > > Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or > SoCalGas, the utilities owned by SET's parent company. SET is not regulated > by the California Public Utilities Commission and you do not have to buy > SET's products and services to continue to receive quality regulated service > from the utilities. > ** > -- Davanum Srinivas : http://wso2.com/blogs/
BPEL and Axis2 Asynchronous
Hi Developers, I am using axis2 async service with Oracle BPEL and I want to use AsyncMessageReceiver from inetegration module in SVN. BPEL need In-Only type for Async but AsyncMessageReceiver extend AbstractInOutAsyncMessageReceiver type Any suggestion?? is there any In-Only type AsyncMessageReceiver extend AbstractInAsyncMessageReceiver. Or do I missing something here !! Note: I got successful working with In-Only way and using ServiceClient to make Call to BPEL process with fireAndForget method but this methode create always new Message Context to call EPR, so how to specify existing Messsage Context to this method. But I want to use AsyncMessageReceiver so thread and resources management can be handle by axis2 engine. Thanks Gopal -- View this message in context: http://www.nabble.com/BPEL-and-Axis2-Asynchronous-t1469698.html#a3973256 Sent from the Axis - User forum at Nabble.com.
RE: problem with C# client of axis2 service
The WSDL is that which was produced by axis2 when I make the following request: http://localhost:8080/axis2/services/XmlEcho?wsdl I shall attach my sources so that you can replicate my results. The XmlEchoClient works just fine even with the bad WSDL. The .Net client (using "WebReference" objects generated by Visual Studio 2005) seems to be less tolerent of the WSDL vs actual message mismatch. Any diagnostic help you could provide would be most helpful. Thanks, Derek Bennett [EMAIL PROTECTED] -Original Message-From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]Sent: Monday, April 17, 2006 8:24 PMTo: axis-user@ws.apache.orgSubject: Re: problem with C# client of axis2 serviceFirst -- the issue applies only to Axis1 using rpc/encoded. Second, your response message doesn't correspond with your WSDL. Your WSDL is telling .NET to expect a response message like this: xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"> http://org.apache.axis2/xsd"> [anyType content] How is it that you produced the response message that you did?Anne On 4/17/06, Bennett, Derek < [EMAIL PROTECTED]> wrote: I have created a service, XmlEcho, which takes a String and outputs the same String. I am running the service in axis2 running within an out-of-the-box local JBoss server.A simple Java client using the axis2 client jar(s) runs perfectly.However, a simple C# client created by using the "WebReference" facility within Visual Studio 2005 to gets a null response object. I have already tried adding to my system.xml based on a thread from earlier this week.Does anyone have any advice regarding how to get C# and Visual Studio working with Axis2? The xml of the response looks like this:=== http://schemas.xmlsoap.org/soap/envelope/">http://hdayservice.result.com " xmlns:tns="http://org.apache.axis2/">Foobar ===And, here is the wsdl that Axis2 produces:===http://org.apache.axis2/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://org.apache.axis2/ " targetNamespace="http://org.apache.axis2/">http://www.w3.org/2001/XMLSchema " xmlns:ns1="http://org.apache.axis2/xsd" targetNamespace="http://org.apache.axis2/xsd" elementFormDefault="unqualified" attributeFormDefault="unqualified"> http://schemas.xmlsoap.org/soap/http" style="document" />http://www.org.apache.axis2" />http://www.org.apache.axis2" />http://www.org.apache.axis2 " />http://localhost:8080/axis2/services/XmlEcho" />=== **This e-mail contains privileged attorney-client communications and/or confidential information, and is only for the use by the intended recipient. Receipt by an unintended recipient does not constitute a waiver of any applicable privilege. Reading, disclosure, discussion, dissemination, distribution or copying of this information by anyone other than the intended recipient or his or her employees or agents is strictly prohibited. If you have received this communication in error, please immediately notify us and delete the original material from your computer. Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or SoCalGas, the utilities owned by SET's parent company. SET is not regulated by the California Public Utilities Commission and you do not have to buy SET's products and services to continue to receive quality regulated service from the utilities. ** ** This e-mail contains privileged attorney-client communications and/or confidential information, and is only for the use by the intended recipient. Receipt by an unintended recipient does not constitute a waiver of any applicable privilege. Reading, disclosure, discussion, dissemination, distribution or copying of this information by anyone other than the intended recipient or his or her employees or agents is strictly prohibited. If you have received this communication in error, please immediately notify us and delete the original material from your computer. Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or SoCalGas, the utilities owned by SET's parent company. SET is not regulated by the California P
RE: Can you do non-web server hosting in Axis2?
Great! Thanks for the quick reply. Now, are there any samples in the Axis2 downloads that show a Java console application that is acting as a service host using TCP? I browsed them quickly, but didn't see anything. Thanks again! -Original Message- From: Ajith Ranabahu [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 11:25 AM To: axis-user@ws.apache.org Subject: Re: Can you do non-web server hosting in Axis2? Hi, Yep - you have a range of options from TCP to JMS as transports On 4/18/06, DeRemer, Bob <[EMAIL PROTECTED]> wrote: > > > Just a simple question regarding alternative service hosting capabilities > using Axis2: > > Can I write a basic Java console application that hosts Axis2 services via > TCP transport? I'm currently working on a distributed .NET and Java > architecture that would really benefit from having certain components being > services/daemon processes, but that would also be hosting services. So, the > different console-style processes would be both service hosts and clients - > with some written in Java, the others written using either .NET 2.0 + WSE3 > or WinFX. > > Thanks in advance for your help, > > Bob DeRemer > Sr. Software Architect > > SAP Labs, LLC > 350 Eagleview Blvd > Exton, PA 19341 USA > T1 +1.610.903.8000 x 136 > T2 +1.717.505.7923 > M +1.717.424.9595 > E[EMAIL PROTECTED] > -- Ajith Ranabahu smime.p7s Description: S/MIME cryptographic signature
Trouble running axis2 examples
Hello, I have installed tomcat 5.5.16 on Slackware Linux and installed axis2 0.95 within tomcat. I can view the axis2 page from a browser and have successfully validated the installation. The example services MyService and Version are available from the server. That is, I ran ~/webservices/axis095/dist/samples/userguide$ sudo cp *.aar \ /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/services/ I can compile all of the .java files under samples/userguide/src/userguide/clients from the standard distribution. I want to run the EchoBlockingClient or EchoBlockingDualClient sample, but I get the output below. Thank you for your help, Matt --- ~/webservices/axis095/dist/samples/userguide$ echo $CLASSPATH | sed -e 's/:/\n/g' . /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/XmlSchema-SNAPSHOT.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/annogen-0.1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axiom-api-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axiom-impl-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis-wsdl4j-1.2.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-adb-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-codegen-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-doom-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-kernel-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/backport-util-concurrent-2.0_01_pd.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-codec-1.3.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-fileupload-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-httpclient-3.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-logging-1.0.4.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-activation-1.0.2-rc4.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-javamail-1.3.1-rc5.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-jms-1.1-rc4.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxen-1.1-beta-7.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxme2-0.5.1.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxmejs-0.5.1.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxmexs-0.5.1.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/log4j-1.2.13.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/maven-itest-plugin-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/policy-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/servletapi-2.3.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/stax-api-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/wstx-asl-2.8.2.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xbean-2.1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xercesImpl-2.7.1.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xml-apis-1.3.02.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xmlunit-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2.war /usr/local/webservices/ext_lib/addressing-0.95.mar /home/mleinho/webservices/axis095/dist/samples/userguide/src /home/mleinho/webservices ~/webservices/axis095/dist/samples/userguide$ jar tf \ /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/services/MyService.aar META-INF/ META-INF/MANIFEST.MF META-INF/services.xml userguide/ userguide/example1/ userguide/example1/MyService.class ~/webservices/axis095/dist/samples/userguide$ java userguide.clients.EchoBlockingClient org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: userguide.example1.MyService; nested exception is: java.lang.ClassNotFoundException: userguide.example1.MyService at org.apache.axis2.AxisFault.makeFault(AxisFault.java:267) at org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(AbstractMessageReceiver.java:59) at org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.java:89) at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:73) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37) at org.apache.axis2.engine.Axis
Re: Plugging in the WSDL2Java
Hi David, You can register your own templates by editing the codegen-config.properties file. This file can be fed through a system property "org.apache.axis2.codegen.config" or it may be easier to edit the default one, whatever is convenient for you. There's an article on how the codegenerator can be modified at http://www.wso2.net/2006/02/inside_the_axis2_code_generator HTH Ajith On 4/6/06, David Boyer <[EMAIL PROTECTED]> wrote: > > > > > > Hey, > > > > New user to axis. I've been unable to find any in depth documentation or > discussion of the code generation engine. I'm digging through the codegen > module trying to figure out how to plug into the code generation to add > stuff specific to our project. In this project the WSDL is going to be > dynamic for some time. My current plan is to use a simple name matching > pattern that would be easy to dynamically generate code for. The idea is to > create one class per service (Class name = Service name) and one method per > action in the service (method name = action name). In those external > classes I would implement the necessary business functionality. Which, > though volatile, we wish to manage it through standard source control > mechanisms. > > > > So the ideal body of a generated function would look like this: > > > > public class DocumentServicePortTypeSkeleton { > > > > import mypackage.DocumentService; > > > > public OMElement getDocument () throws Exception { > > return DocumentService.getDocument(); > > } > > > > } > > > > I've found the SkeletonTemplate.xsl file. Obviously I could pull this out > and modify it to suit my needs, rejar and run with it. However, my > impression is that you've designed to allow me to point the CodeGenerator at > other instances of something like SkeletonTemplate.xsl. > > > > Is there a solution of the second type? (write my own .xsl and register it > somehow with codegen) If so, is there any documentation on this method of > interaction? (Mailing list posts, design documents, tutorial) > > > > Thanks, > > > > P.S. I'm also wanting to do something similar to the build.xml file > generated for Ant, to include our class files in the generated aar. If > there is an alternative location within the exploded axis2 webapp for > dumping a jar-file for access by a specific aar, that would meet our > purposes as well. But I haven't done all of the research yet on this issue. > > > > > > - > > Deliver Higher Quality, Easier to Maintain Code > > with TAU/Logiscope - www.telelogic.com > > - > > David S. Boyer > > Sr. S/W Developer > > Telelogic North America > > Business: +1 (703) 944-9289 > > Mobile: +1 (703) 944-9289 > > mailto:[EMAIL PROTECTED] > > - > > Telelogic - Requirements Driven Innovation > > > > > Telelogic Lifecycle Solutions: > Helping You Define, Design & Deliver Advanced Systems & Software > Learn More at www.telelogic.com > > David Boyer > Sr. Software Developer > Telelogic North America Inc. > 11911 Freedom Drive, > Suite 1180 > Reston > VA 20190 > United States > > Phone: +1 (703) 944-9289 > Fax: > Mobile phone: +1 (703) 944-9289 > > [EMAIL PROTECTED] > http://www.telelogic.com > > Telelogic - Requirements-Driven Innovation! > - > > > > > > > The information contained in this e-mail, including any attachment or > enclosure, is intended only for the person or entity to which it is > addressed and may contain confidential material. Any unauthorized use, > review, retransmissions, dissemination, copying or other use of this > information by persons or entities other than the intended recipient is > prohibited. -- Ajith Ranabahu
[axis2] JMS transport - temporary destinations
I've been mulling around the idea that a client sends a request on a well known JMS queue to execute a service. The reply should come back on a temporary queue that the client has created. Axis2 doesn't seem to be set up for this as the client names a transport/queue by setting an option: options.setTransportInProtocol( "jms" ); which references a transportReceiver in the axis2.xml config file with a hard-coded queue name. I can't figure out how to make that a temporary queue without hacking up axis2. 1. Create a new transportReceiver entry in axis2, call it TemporaryJMSListener 2. Hackup the JNDIVendorAdapter and JMSVendorAdapter to create a temporary queue if the destination name is blank. 3. Extract the name of the created temporary queue name and set it as the reply-to in the soap header. I'm I doing something wrong? Is there an easier way? ** This e-mail contains privileged attorney-client communications and/or confidential information, and is only for the use by the intended recipient. Receipt by an unintended recipient does not constitute a waiver of any applicable privilege. Reading, disclosure, discussion, dissemination, distribution or copying of this information by anyone other than the intended recipient or his or her employees or agents is strictly prohibited. If you have received this communication in error, please immediately notify us and delete the original material from your computer. Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or SoCalGas, the utilities owned by SET's parent company. SET is not regulated by the California Public Utilities Commission and you do not have to buy SET's products and services to continue to receive quality regulated service from the utilities. **
Re: Can you do non-web server hosting in Axis2?
Hi, Yep - you have a range of options from TCP to JMS as transports On 4/18/06, DeRemer, Bob <[EMAIL PROTECTED]> wrote: > > > Just a simple question regarding alternative service hosting capabilities > using Axis2: > > Can I write a basic Java console application that hosts Axis2 services via > TCP transport? I'm currently working on a distributed .NET and Java > architecture that would really benefit from having certain components being > services/daemon processes, but that would also be hosting services. So, the > different console-style processes would be both service hosts and clients - > with some written in Java, the others written using either .NET 2.0 + WSE3 > or WinFX. > > Thanks in advance for your help, > > Bob DeRemer > Sr. Software Architect > > SAP Labs, LLC > 350 Eagleview Blvd > Exton, PA 19341 USA > T1 +1.610.903.8000 x 136 > T2 +1.717.505.7923 > M +1.717.424.9595 > E[EMAIL PROTECTED] > -- Ajith Ranabahu
Can you do non-web server hosting in Axis2?
Title: Can you do non-web server hosting in Axis2? Just a simple question regarding alternative service hosting capabilities using Axis2: Can I write a basic Java console application that hosts Axis2 services via TCP transport? I'm currently working on a distributed .NET and Java architecture that would really benefit from having certain components being services/daemon processes, but that would also be hosting services. So, the different console-style processes would be both service hosts and clients - with some written in Java, the others written using either .NET 2.0 + WSE3 or WinFX. Thanks in advance for your help, Bob DeRemer Sr. Software Architect SAP Labs, LLC 350 Eagleview Blvd Exton, PA 19341 USA T1 +1.610.903.8000 x 136 T2 +1.717.505.7923 M +1.717.424.9595 E [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature
Re: [axis2] [svn] ClassCastException while calling changeType()
Hi, Do you get the classcast exception in the server side or the client side ? if it is the client side it could be due to either the type attribute being missing or not being namespace qualified. If so can you pipe the requests through tcpmon and send the request and response messages ? On 4/18/06, Siamak Haschemi <[EMAIL PROTECTED]> wrote: > Hello to all. > > I have a problem with Axis2 and XMLBeans and I think that this could be > a bug. > > I have a WSDL-file with the following schemas: > > http://www.w3.org/2001/XMLSchema"; > elementFormDefault="qualified" > targetNamespace="http://haschemi.org/sale/common";> > > > > > > > > > > > > > > > > > minOccurs="0" maxOccurs="unbounded" /> > > > > > > > > maxOccurs="unbounded" /> > > > > > > > I used WSDL2Java to generate the service and the xmlbean-resources. The > xmlbean-resources are packed into a jar file and placed in the > lib-directory of the .aar service. > > care > + org > + haschemi > + ... > + lib > + XBeans-packaged.jar > + META-INF > + services.xml > > The calling part is: > > ... > final AddProductRequestDocument addProductRequestDocument = > AddProductRequestDocument.Factory.newInstance(); > final AddProductRequest addProductRequest = > addProductRequestDocument.addNewAddProductRequest(); > final ProductType productType = addProductRequest.addNewProduct(); > final MilkType milkType = (MilkType) productType.changeType(MilkType.type); > milkType.setFillingQuantity(44.44f); > ... > > In the generated Skeleton I put the following lines: > > public org.haschemi.sale.common.AddProductResponseDocument addProduct( > org.haschemi.sale.common.AddProductRequestDocument param0) { > final AddProductRequest addProductRequest = > param0.getAddProductRequest(); > > for (ProductType productType : > addProductRequest.getProductArray()) { > final MilkType milkType = (MilkType) > productType.changeType(MilkType.type); > } > } > > I get a exception of the changeType call: > java.lang.ClassCastException: org.haschemi.sale.common.impl.ProductTypeImpl > > It seems that the changeType method returns the abstract basetype > (product-type) instead of the derived one (milk-type). > > > BUT the strangest thing is that is works outside of axis2. I wrote a > litte Main-Class and I call the Skeleton manually and everything goes ok. > > So I think that this can be a Axis2 Bug. Something with the classloader? > > > > I'm sorry for the long e-mail. > > Thanks a lot, > > Siamak Haschemi > > > > > > > -- Ajith Ranabahu
Re: [axis2 latest checkout] wsdl2java problem + stackoverflow
Hi, The likely reason for this is that your schema having recursive datatypes. We are working on the problem Ajith On 4/18/06, Diego <[EMAIL PROTECTED]> wrote: > Hi Anne! > > I included xbean-2.1.0.jar of the 0.94 release in the classpath and it > seems to solve the previous exception. The problem now is that I get > the following stack overflow exception. > > Thanks a lot! > > Diego > > > wsdl2java-astrodas-peer: > [java] Retrieving schema at > 'http://www.ivoa.net/xml/VOTable/v1.1', relative to > 'file:/Users/diego/Babylon/java/workspace/astrodas-test/wsdl/'. > [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: > java.lang.RuntimeException: java.lang.reflect.InvocationTargetException > [java] at > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180) > [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710) > [java] at > org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178) > [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84) > [java] at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > [java] at org.apache.tools.ant.Task.perform(Task.java:364) > [java] at org.apache.tools.ant.Target.execute(Target.java:341) > [java] at > org.apache.tools.ant.Target.performTasks(Target.java:369) > [java] at > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > [java] at > org.apache.tools.ant.Project.executeTarget(Project.java:1185) > [java] at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) > [java] at > org.apache.tools.ant.Project.executeTargets(Project.java:1068) > [java] at org.apache.tools.ant.Main.runBuild(Main.java:668) > [java] at org.apache.tools.ant.Main.startAnt(Main.java:187) > [java] at > org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) > [java] at > org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) > [java] Caused by: > org.apache.axis2.wsdl.codegen.CodeGenerationException: > java.lang.RuntimeException: java.lang.reflect.InvocationTargetException > [java] at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185) > [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [java] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [java] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [java] at java.lang.reflect.Method.invoke(Method.java:324) > [java] at > org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202) > [java] at > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134) > [java] ... 15 more > [java] Caused by: java.lang.RuntimeException: > java.lang.reflect.InvocationTargetException > [java] at > org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:96) > [java] at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140) > [java] ... 22 more > [java] Caused by: java.lang.reflect.InvocationTargetException > [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [java] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [java] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [java] at java.lang.reflect.Method.invoke(Method.java:324) > [java] at > org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:86) > [java] ... 23 more > [java] Caused by: java.lang.StackOverflowError > [java] --- Nested Exception --- > [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: > java.lang.RuntimeException: java.lang.reflect.InvocationTargetException > [java] at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185) > [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [java] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [java] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [java] at java.lang.reflect.Method.invoke(Method.java:324) > [java] at > org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202) > [java] at > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134) > [java] at org.apache.tools.ant.taskdefs.Java.run(Java
Re: [axis2 latest checkout] wsdl2java problem + stackoverflow
Hi Anne! I included xbean-2.1.0.jar of the 0.94 release in the classpath and it seems to solve the previous exception. The problem now is that I get the following stack overflow exception. Thanks a lot! Diego wsdl2java-astrodas-peer: [java] Retrieving schema at 'http://www.ivoa.net/xml/VOTable/v1.1', relative to 'file:/Users/diego/Babylon/java/workspace/astrodas-test/wsdl/'. [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [java] at org.apache.tools.ant.Task.perform(Task.java:364) [java] at org.apache.tools.ant.Target.execute(Target.java:341) [java] at org.apache.tools.ant.Target.performTasks(Target.java:369) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) [java] at org.apache.tools.ant.Main.runBuild(Main.java:668) [java] at org.apache.tools.ant.Main.startAnt(Main.java:187) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134) [java] ... 15 more [java] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [java] at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:96) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140) [java] ... 22 more [java] Caused by: java.lang.reflect.InvocationTargetException [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:86) [java] ... 23 more [java] Caused by: java.lang.StackOverflowError [java] --- Nested Exception --- [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [java] at org.apache.tools.ant.Task.perform(Task.java:364) [java] at org.a
Re: [Axis2] 0.95 WS-Addressing web SERVICE-SIDE: module not found
Hi Finian pls see my inline comments. Finian O'Boyle wrote: >Thank you Deepal for taking the time to look into this issue - I now have >managed to get EchoNonBlockingDualClient working. > :) >I still can't get the >original code to work, where ever I put addressing-0.95.mar, > forget about that , I will look into this sample soon , since we are planing to do Axis2 RC2 . >but the >ConfigurationContext works. > >The code I ended up with was: > > ConfigurationContext sysContext = ConfigurationContextFactory > .createConfigurationContextFromFileSystem( >"C:\\axis2", null); > sender = new ServiceClient(sysContext, null); > >with no need, obviously, for the .engageModule method. > >I did discover though that the directory which the ConfigurationContext >points to has to have two directories within it: "conf", which must contain >the axis.xml configuration file, and the "modules" directory which contains >addressing-0.95.mar. > > yes , but unfortunately from Axis2 RC1 on word we dont need to have conf directory in side the repo and deployment guy will not automatically picked that. >Interestingly, when EchoNonBlockingDualClient executes, it creates a third, >empty directory, "services" within the directory that ConfigurationContext >points to. > > I just fixed that. >Thank you again for your help. > > >Finian > > > >-Original Message- >From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] >Sent: 17 April 2006 09:43 >To: axis-user@ws.apache.org >Subject: Re: [Axis2] 0.95 WS-Addressing web SERVICE-SIDE: module not found > >Hi Finian ; > >I am sorry that I did not look into EchoNonBlockingDualClient codes but >the engaging client side module can be done as follows; > 1. You can create a configurationContext using a given repository and >that repo can have modules dir and which may have addressing module in it. > 2. In the client side you can drop your addressing.mar in the same >location where you have drop axis2.jar , and create serviceClient >without given repo. > > >Finian O'Boyle wrote: > > > >>Thanks for that Deepal. I am using Tomcat and I have addressing-0.95.mar in >> >> > > > >>webapp/axis2/WEB-INF/modules. The problem occurs before anything gets to >>Tomcat or the Axis2 server - it is in Eclipse within the >>EchoNonBlockingDualClient, which raises the "module not found" error when >> >> >it > > >>executes the following statement: >> >> sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); >> >>I've watched using tcpmon and there is no traffic through it before the >>error occurs. >> >>It seems that the client can't find the module - I've tried putting it >>everywhere that the client might find it from Eclipse, but so far >>unsuccessfully. >> >>Thank you for your help in trying to sort this out. >> >>Finian >> >> >> >>-Original Message- >>From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] >>Sent: 08 April 2006 15:56 >>To: axis-user@ws.apache.org >>Subject: Re: [Axis2] 0.95 WS-Addressing web SERVICE-SIDE: module not found >> >>If your server is tomcat then put the addressing-0.95.mar into >> webapp/axis2/WEB-INF/modules directory. >> >>else if you are using simpeleHTTP server then , put the >>addressing-0.95.mar inside modules directory. >>example >> ConfigiurationCoentxt configct= >>ConfigurationConetxtFactory.createConfigurationContextFromFileSystem("Repos >> >> >i > > >>torPath" >>,null) >>so if you put the addressing--.mar inside the modules directory there >>in the repo it should work. >> >> >> >>Finian O'Boyle wrote: >> >> >> >> >> >>>I've tried putting addressing-0.95.mar all over my system, but with no >>> >>> >>> >>> >>luck. >> >> >> >> >>>I'm still getting the "module not found" error. I'm using the war >>>distribution, but I've also got the other distributions unpacked on my >>>system for reference. >>> >>>Finian >>> >>>-Original Message- >>>From: Roman Weidlich [mailto:[EMAIL PROTECTED] >>>Sent: 07 April 2006 22:14 >>>To: axis-user@ws.apache.org >>>Subject: Re: [Axis2] 0.95 WS-Addressing web SERVICE-SIDE: module not found >>> >>>copied addressing-0.95.mar to >>> >>> tomcat\webapps\axis2\WEB-INF\lib >>> >>>but if the web service tries to invoke an NonBlockingDual to another ws >>>it prints >>> >>> WS1: org.apache.axis2.AxisFault: Module not found >>> >>>to the tomcat output. >>> >>>at client-side the addressing-0.95.mar in the lib dir works, but in the >>>war distribution not... >>> >>> >>> >>> >>> >>> >>> >> >> >> >> > > > -- Thanks, Deepal ~Future is Open~
RE: [Axis2] 0.95 WS-Addressing web SERVICE-SIDE: module not found
Thank you Deepal for taking the time to look into this issue - I now have managed to get EchoNonBlockingDualClient working. I still can't get the original code to work, where ever I put addressing-0.95.mar, but the ConfigurationContext works. The code I ended up with was: ConfigurationContext sysContext = ConfigurationContextFactory .createConfigurationContextFromFileSystem( "C:\\axis2", null); sender = new ServiceClient(sysContext, null); with no need, obviously, for the .engageModule method. I did discover though that the directory which the ConfigurationContext points to has to have two directories within it: "conf", which must contain the axis.xml configuration file, and the "modules" directory which contains addressing-0.95.mar. Interestingly, when EchoNonBlockingDualClient executes, it creates a third, empty directory, "services" within the directory that ConfigurationContext points to. Thank you again for your help. Finian -Original Message- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: 17 April 2006 09:43 To: axis-user@ws.apache.org Subject: Re: [Axis2] 0.95 WS-Addressing web SERVICE-SIDE: module not found Hi Finian ; I am sorry that I did not look into EchoNonBlockingDualClient codes but the engaging client side module can be done as follows; 1. You can create a configurationContext using a given repository and that repo can have modules dir and which may have addressing module in it. 2. In the client side you can drop your addressing.mar in the same location where you have drop axis2.jar , and create serviceClient without given repo. Finian O'Boyle wrote: >Thanks for that Deepal. I am using Tomcat and I have addressing-0.95.mar in >webapp/axis2/WEB-INF/modules. The problem occurs before anything gets to >Tomcat or the Axis2 server - it is in Eclipse within the >EchoNonBlockingDualClient, which raises the "module not found" error when it >executes the following statement: > >sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); > >I've watched using tcpmon and there is no traffic through it before the >error occurs. > >It seems that the client can't find the module - I've tried putting it >everywhere that the client might find it from Eclipse, but so far >unsuccessfully. > >Thank you for your help in trying to sort this out. > >Finian > > > >-Original Message- >From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] >Sent: 08 April 2006 15:56 >To: axis-user@ws.apache.org >Subject: Re: [Axis2] 0.95 WS-Addressing web SERVICE-SIDE: module not found > >If your server is tomcat then put the addressing-0.95.mar into > webapp/axis2/WEB-INF/modules directory. > >else if you are using simpeleHTTP server then , put the >addressing-0.95.mar inside modules directory. > example > ConfigiurationCoentxt configct= >ConfigurationConetxtFactory.createConfigurationContextFromFileSystem("Repos i >torPath" >,null) > so if you put the addressing--.mar inside the modules directory there >in the repo it should work. > > > >Finian O'Boyle wrote: > > > >>I've tried putting addressing-0.95.mar all over my system, but with no >> >> >luck. > > >>I'm still getting the "module not found" error. I'm using the war >>distribution, but I've also got the other distributions unpacked on my >>system for reference. >> >>Finian >> >>-Original Message- >>From: Roman Weidlich [mailto:[EMAIL PROTECTED] >>Sent: 07 April 2006 22:14 >>To: axis-user@ws.apache.org >>Subject: Re: [Axis2] 0.95 WS-Addressing web SERVICE-SIDE: module not found >> >>copied addressing-0.95.mar to >> >> tomcat\webapps\axis2\WEB-INF\lib >> >>but if the web service tries to invoke an NonBlockingDual to another ws >>it prints >> >> WS1: org.apache.axis2.AxisFault: Module not found >> >>to the tomcat output. >> >>at client-side the addressing-0.95.mar in the lib dir works, but in the >>war distribution not... >> >> >> >> >> > > > -- Thanks, Deepal ~Future is Open~ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.2/314 - Release Date: 16/4/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.3/317 - Release Date: 18/4/2006
[AXIS2] How to use MAIL transport
Please, Can anyone send me a complete example that explains how to use MAIL tranport with AXIS2 ? What to do at the client side and what to do at the server side. From the AXIS2 docs it's not so clear for me. Thanks in advance. Roberto DeandreaPrimeur Security ServicesVia Treviso, 36 TORINOPhone +39(0)1181825246
See this site that gives out free products.
Hello! Have a look at this. Want an ipod nano? http://mygift321.com/?r=gREUJYMGghVCBGcJDiYI&i=gmail&z=1&[EMAIL PROTECTED]&tc=21 Talk soon.
using alternate server config file
Hi everybody, how can I use an alternate configuration file for axis instead of server-config.wsdd? I read about the tag in web.xml, but no matter what I put there, my file is not found. my file is located in WEB-INF and named axis-config.wsdd So I put WEB-INF/axis-config.wsdd in init-param: configFile WEB-INF/axis-config.wsdd the name of the file is not that important. However, I want to figure out how this works, because I want to use 2 servlet mappings with different config files. How do I use a different config file without specifing the full qualified path in my file system? Because I don't know the path in production environment and I don't want to change it for every environment, it would be better to use relative path names. (relative to "webapps" for example). Thanks in advance! CU Werner
Re: Exchange Data between twi Services in a ServiceGroup
Hi Siamak; Sorry for late reply. You dont need to use static variable , context hierarchy is there to provide those features for you. When you deploy a service in application scope , then the associate ServiceGroupContext and serviceContext has the life time of the system , so best way is to store a property in one of those context rather than using static variables. at the runtime you can access any of those context using message context. Siamak Haschemi wrote: > I solved my problem by using a static variable, but it would be nice > to know if there exists a Context to put references in which has a > lifetime longer than a service-call. > > Thanks a lot, > > Siamak Haschemi > > Siamak Haschemi schrieb: > >> Hello Robert, >> >> I've already implemented such a Spring-MessageReceiver that lookups >> Services that are actualy Beans from its SpringConfiguration. >> >> I only searching about a way to share some Object reference across >> multiple Service-Calls. >> >> Thanks, >> >> Siamak Haschemi >> >> >> robert lazarski schrieb: >> >>> Is what you're realy after is two services that are wired into Spring? >>> Spring-ApplicationContext already is a singleton - look at setting up a >>> BeanFactory. >>> >>> The other way is as you show in services.xml - message recievers. I'm >>> actually coding one up a spring message receiver now. The idea is to >>> wire >>> spring aware beans that are services. >>> >>> Anyways, HTH, >>> Robert >>> http://www.braziloutsource.com/ >>> >>> On 4/17/06, Siamak Haschemi <[EMAIL PROTECTED]> wrote: >>> >>> Hello to all. I have two Services defnied. They need to share a reference to the Spring-ApplicationContext. Now I need to know how the communication between two Services in a ServiceGroup can be achieved. I know I can do this with a Singleton, but I wonder if Axis2 has some mechanism for Inter-Service-Communication. Another Idea would be to merge the two MessageReceivers, but I need this separation. http://www.w3.org/2004/08/wsdl/in-out"; class="org.haschemi.sale.service.SpringSaleMessageReceiverInOut" /> >>> name="ServiceClass">org.haschemi.sale.service.SaleSkeleton >>> mep="http://www.w3.org/2004/08/wsdl/in-out";> http://haschemi.org/sale/order http://www.w3.org/2004/08/wsdl/in-out"; class="org.haschemi.sale.service.SpringCareMessageReceiverInOut" /> >>> name="ServiceClass">org.haschemi.sale.service.CareSkeleton >>> mep="http://www.w3.org/2004/08/wsdl/in-out";> http://haschemi.org/sale/addProduct Thanks a lot, Siamak Haschemi >>> >>> >>> >> >> > > > -- Thanks, Deepal ~Future is Open~
Re: Exchange Data between twi Services in a ServiceGroup
I solved my problem by using a static variable, but it would be nice to know if there exists a Context to put references in which has a lifetime longer than a service-call. Thanks a lot, Siamak Haschemi Siamak Haschemi schrieb: Hello Robert, I've already implemented such a Spring-MessageReceiver that lookups Services that are actualy Beans from its SpringConfiguration. I only searching about a way to share some Object reference across multiple Service-Calls. Thanks, Siamak Haschemi robert lazarski schrieb: Is what you're realy after is two services that are wired into Spring? Spring-ApplicationContext already is a singleton - look at setting up a BeanFactory. The other way is as you show in services.xml - message recievers. I'm actually coding one up a spring message receiver now. The idea is to wire spring aware beans that are services. Anyways, HTH, Robert http://www.braziloutsource.com/ On 4/17/06, Siamak Haschemi <[EMAIL PROTECTED]> wrote: Hello to all. I have two Services defnied. They need to share a reference to the Spring-ApplicationContext. Now I need to know how the communication between two Services in a ServiceGroup can be achieved. I know I can do this with a Singleton, but I wonder if Axis2 has some mechanism for Inter-Service-Communication. Another Idea would be to merge the two MessageReceivers, but I need this separation. http://www.w3.org/2004/08/wsdl/in-out"; class="org.haschemi.sale.service.SpringSaleMessageReceiverInOut" /> org.haschemi.sale.service.SaleSkeleton mep="http://www.w3.org/2004/08/wsdl/in-out";> http://haschemi.org/sale/order http://www.w3.org/2004/08/wsdl/in-out"; class="org.haschemi.sale.service.SpringCareMessageReceiverInOut" /> org.haschemi.sale.service.CareSkeleton http://www.w3.org/2004/08/wsdl/in-out";> http://haschemi.org/sale/addProduct Thanks a lot, Siamak Haschemi
[axis2] [svn] ClassCastException while calling changeType()
Hello to all. I have a problem with Axis2 and XMLBeans and I think that this could be a bug. I have a WSDL-file with the following schemas: http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified" targetNamespace="http://haschemi.org/sale/common";> minOccurs="0" maxOccurs="unbounded" /> maxOccurs="unbounded" /> I used WSDL2Java to generate the service and the xmlbean-resources. The xmlbean-resources are packed into a jar file and placed in the lib-directory of the .aar service. care + org + haschemi + ... + lib + XBeans-packaged.jar + META-INF + services.xml The calling part is: ... final AddProductRequestDocument addProductRequestDocument = AddProductRequestDocument.Factory.newInstance(); final AddProductRequest addProductRequest = addProductRequestDocument.addNewAddProductRequest(); final ProductType productType = addProductRequest.addNewProduct(); final MilkType milkType = (MilkType) productType.changeType(MilkType.type); milkType.setFillingQuantity(44.44f); ... In the generated Skeleton I put the following lines: public org.haschemi.sale.common.AddProductResponseDocument addProduct( org.haschemi.sale.common.AddProductRequestDocument param0) { final AddProductRequest addProductRequest = param0.getAddProductRequest(); for (ProductType productType : addProductRequest.getProductArray()) { final MilkType milkType = (MilkType) productType.changeType(MilkType.type); } } I get a exception of the changeType call: java.lang.ClassCastException: org.haschemi.sale.common.impl.ProductTypeImpl It seems that the changeType method returns the abstract basetype (product-type) instead of the derived one (milk-type). BUT the strangest thing is that is works outside of axis2. I wrote a litte Main-Class and I call the Skeleton manually and everything goes ok. So I think that this can be a Axis2 Bug. Something with the classloader? I'm sorry for the long e-mail. Thanks a lot, Siamak Haschemi
[Axis2] Asynchronous client calls to asynchronous BPEL process
Hi Folks, Has anyone successfully made a call to a asynchronous BPEL process? I'm using Axis 0.95 and Oracle BPEL process manager but it doesn't seem to work as expected. I'm using a blocking dual client from within a servlet, it creates the WS-addressing headers fine and makes the request getting the acknowledgment, but the BPEL flow just tells me that the callback to the client was "skipped", it didn't fail (at the BPEL end) but the client never receives the callback. The temporary service __ANONYMOUS_SERVICE__/__OPERATION_OUT_IN__ on port 6060 is operational (I can't think of a way to intercept it the message with TCPMonitor for example, though). I tried against two different versions of BPEL (latest on OC4J and slightly earlier version on Weblogic) and they behave slightly different (both don't work). The client works against the Axis ECHO sample so I'm wondering if there is a known problem with BPEL? As a side point, the Axis ECHO sample that uses WS-addressing; is this really a synchronous process? I mean to say that the WSDL looks synchronous and non-Axis clients seem to be able to call it in a synchronous way... how is this testing a dual client? Are there any public asynchronous services (non-BPEL!) that I can test against? Thanks in advance for any pointers or suggestions :) All the best, Toby
Re: Unable to find a javac compiler; when opening URL: http://localhost:8080/axis/happyaxis.jsp
My personal experience with this kind of problem is as follows (with Java 1.5): The Java installer installs the JRE twice, once by itself and once underneath the JDK. When the Tomcat (version 5.5) installer asks you which one to use, you should choose the second one (underneath the JDK). Explanation (best guesses not sure knowledge). Tomcat considers his java home to be the directory given as JRE during the install (not the JAVA_HOME environment variable). Starting from this directory, tools.jar is found as ../lib/tools.jar in the JDK directory. This works only for the second and not for the first JRE choice. Regards Franz Alexandr Khlystov schrieb: OS: Windows 2003 Server when opening URL: http://localhost:8080/axis/happyaxis.jsp I get Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapte at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:969) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:320) but JAVA_HOME=C:\j2sdk1.4.2_04 CLASSPATH=C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;C:\j2sdk1.4.2_04\jre\lib can anybody please help me what is going on ? begin:vcard fn:Dr. Franz Fehringer n:Fehringer;Franz org:ISO Software Systeme adr;quoted-printable:;;Eichendorffstrasse 29;N=C3=BCrnberg;;90491;Deutschland email;internet:mailto:[EMAIL PROTECTED] tel;work:+49/(911) - 99594-0 tel;fax:+49/(911) - 99594-580 x-mozilla-html:TRUE url:http://www.isogmbh.de/ version:2.1 end:vcard
RE: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?
Hi, If use axis2 I have implemented the Testclient and get my work done in following way: import com.oracle.services.bpel.task.*; import org.apache.axis.message.*; import javax.xml.soap.Name; public class TaskTest { public static void main(String [] args) throws Exception { TaskManagerBindingStub stub = null; try { stub = (TaskManagerBindingStub) new TaskManager_ServiceLocator().getTaskManagerPort(); } catch (javax.xml.rpc.ServiceException jre) { jre.printStackTrace(); } String conversationId = "c568752ccc493590:aadc97:10aab37fa81:-7f93"; javax.xml.namespace.QName qname= new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2003/03/addressing"; ,"MessageID"); SOAPHeaderElement el = new SOAPHeaderElement(qname, conversationId); SOAPEnvelope se = new SOAPEnvelope(); Name name = se.createName("rootId", "nsbpel", "http://schemas.oracle.com/bpel";); el.addAttribute(name, conversationId); name = se.createName("parentId", "nsbpel", "http://schemas.oracle.com/bpel";); el.addAttribute(name, conversationId); name = se.createName("priority", "nsbpel", "http://schemas.oracle.com/bpel";); el.addAttribute(name, "0"); stub.setHeader(el); // Set up the object which will be the input message // Note that this Java bean is generated by wsdl2java Task tsk=new Task( ); tsk.setCustomKey("14");//bpel process1 ID tsk.setPriority(new Integer(0)); tsk.setConclusion( "approved"); tsk.setAttachment( "approved"); // Make the actual call stub.completeTask(tsk); System.out.println("TaskManager BPEL process completed!"); } } But I want to use axis2.Now can you find a way to do same as above with axis2.As axis2 doesn't generate stubs (etc) as in axis1. Thanks, Nancy -Original Message- From: Srinath Perera [mailto:[EMAIL PROTECTED] Sent: Saturday, April 15, 2006 8:05 PM To: axis-user@ws.apache.org Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice? you can do something like check for conversationID for service instance, if it is null create one .. from second instance it will be pick up If you are writing a new message reciver you can not use generated code, as gen code add a new mesage receiver. If you can manage without data binding you can extend from RawXMLInOutMessageReciver and just overide the method I mentioned. In your service.xml provide your message reciver Thanks Srinath On 4/15/06, nancy <[EMAIL PROTECTED]> wrote: > 1) Can you tell how I can apply this patch? > > 2) To pick up my service instance from a > Hash map at configuration context map must be populated with that instance > .How will this map get populated? And I don't having prior experience with > web services. So I need step wise explanation to implement the Message > receiver. I have only implemented BPEL process which I am using as web > service. So I will need your help. > > Thanks and regards > Nancy Aggarwal > > > > -Original Message- > From: Srinath Perera [mailto:[EMAIL PROTECTED] > Sent: Saturday, April 15, 2006 5:16 PM > To: axis-user@ws.apache.org > Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a > particular instance of that webservice? > > Hi Nancy; > > As I understood your BPEL2 is stateful and you need same instance to > be called across number of instances. > > 1) if http://issues.apache.org/jira/browse/AXIS2-532 covers your > senario, and it is integrated > to main tree (Sorry I was not involved on this, so I do not know) you > can use it. May be Rajith can shed somelight on this > > 2) implement a custom Message Reciver,that do the session for you. You > have a to introduce a new header and overide > > protected Object getTheImplementationObject(MessageContext > msgContext) throws AxisFault; > > method to lookup the header and pick up your service instance from a > hashmap at configuration context. (You have to add a new Map) > > This method is called before service impl invocaion to locate the > service instance. Let me know if you plan to do this I will give more > info > > > Thanks > Srinath > > > You have two options > On 4/15/06, nancy <[EMAIL PROTECTED]> wrote: > > Hi Ali, > > > > Yah you can say that scenario is like this. > > > >convID2 > > client2 > BPEL2 > > > > -Original Message- > > From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED] > > Sent: Saturday, April 15, 2006 3:05 PM > > To: axis-user@ws.apache.org > > Subject: RE: VERY URGENT Please HELP[Axis2] How to send message to a > > particular instance of that webservice? > > > > Hi Nancy, > > > > I'm examining BPEL solutions nowadays. Since I'm not an expert on Axis2 > > and BPEL, wanted to understand your scenario clearly. > > > > AFAIK, you are ab
Re: Exchange Data between twi Services in a ServiceGroup
Hello Robert, I've already implemented such a Spring-MessageReceiver that lookups Services that are actualy Beans from its SpringConfiguration. I only searching about a way to share some Object reference across multiple Service-Calls. Thanks, Siamak Haschemi robert lazarski schrieb: Is what you're realy after is two services that are wired into Spring? Spring-ApplicationContext already is a singleton - look at setting up a BeanFactory. The other way is as you show in services.xml - message recievers. I'm actually coding one up a spring message receiver now. The idea is to wire spring aware beans that are services. Anyways, HTH, Robert http://www.braziloutsource.com/ On 4/17/06, Siamak Haschemi <[EMAIL PROTECTED]> wrote: Hello to all. I have two Services defnied. They need to share a reference to the Spring-ApplicationContext. Now I need to know how the communication between two Services in a ServiceGroup can be achieved. I know I can do this with a Singleton, but I wonder if Axis2 has some mechanism for Inter-Service-Communication. Another Idea would be to merge the two MessageReceivers, but I need this separation. http://www.w3.org/2004/08/wsdl/in-out"; class="org.haschemi.sale.service.SpringSaleMessageReceiverInOut" /> org.haschemi.sale.service.SaleSkeleton http://www.w3.org/2004/08/wsdl/in-out";> http://haschemi.org/sale/order http://www.w3.org/2004/08/wsdl/in-out"; class="org.haschemi.sale.service.SpringCareMessageReceiverInOut" /> org.haschemi.sale.service.CareSkeleton http://www.w3.org/2004/08/wsdl/in-out";> http://haschemi.org/sale/addProduct Thanks a lot, Siamak Haschemi