Re: Axis 1.4 Java2WSDL
Xinjun, Axis can get Parameter names of methods from a compiled class only if the class is compiled in debug mode. If class is not compiled in debug mode, the parameter names are not in the .class file and there is no way to get them. Mj On 3/27/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi Axis users and developers, I cannot understand one thing about Axis 1.4's Java2WSDL. When I use Java2WSDL, my class file is a concrete class compiled with -g option. Then in the generated WSDL, I now do not see those meaningless in0, in1, and etc. Thanks Axis developers! But I don't understand how Axis extracts the parameter names of a method from a class file. I have this question because I want to extract parameter names of a method from a class file using my own program. I googled and two options are using either JDI or BCEL. I searched Axis source but do not see these two APIs. I want to learn from Axis Java2WSDL to get parameter names of a class file. Could any Axis developer or expert user explain the concept how Axis get the parameter names of a method from a class file? Currently I want to choose BCEL to achieve the purpose, but I still want to understand how Axis does it. Regards, Xinjun
Re: does useOriginalwsdl do any special handling
Surya and all users, Is useOriginalwsdl a useful parameter to have ? Do people use it regularly and is there a good use case. If there is no use case , would removing the parameter going to behaviour where AXIS2 defaults to using the WSDL(s) in the aar , if the WSDLs are there in the aar and generate the WSDLs when they are not there in the aar, make it simpler for everyone. Mj On 3/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi folks, I developed a WS service. Using a WSDL file ofcourse axis generated. when i set useOriginalwsdl=true and use WSDL generated by axis2-1.1.1 it gives me below error. If i unset to useOriginalwsdl=false, then WS works. I dont understand why it is failing for useOriginalwsdl=true even though i use WSDL generated by axis. Any clues? Client Side Sending request.. hr:getEmployee xmlns:hr=http://types.wsdl.custom.ws.ssk.com/xsd hr:in1/hr:in/hr:getEmployeeorg.apache.axis2.AxisFault: Exception occurred while trying to invoke service method getEmployee at org.apache.axis2.description.OutInAxisOperationClient.send( OutInAxisOperation.java:271) at org.apache.axis2.description.OutInAxisOperationClient.execute( OutInAxisOperation.java:202) at org.apache.axis2.client.ServiceClient.sendReceive( ServiceClient.java:579) at org.apache.axis2.client.ServiceClient.sendReceive( ServiceClient.java:508) at com.ssk.ws.custom.wsdl.types.HRServiceClient2.main( HRServiceClient2.java:43) Caused by: java.lang.Exception: org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method getEmployee; nested exception is: java.lang.IllegalArgumentException: wrong number of arguments at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic( RPCMessageReceiver.java:159) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive( AbstractInOutSyncMessageReceiver.java:39) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest( HTTPTransportUtils.java:328) at org.apache.axis2.transport.http.AxisServlet.doPost( AxisServlet.java:254) 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(Unknown Source) Caused by: java.lang.IllegalArgumentException: wrong number of arguments at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic( RPCMessageReceiver.java:95) ... 20 more at org.apache.axis2.AxisFault.init(AxisFault.java:159) ... 5 more Server Side Mar 20, 2007 4:02:05 PM org.apache.catalina.core.AprLifecycleListenerlifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.0_05\bin;.;C:\WINNT\system32;C:\WINNT;C:\Program Files\WRQ\Reflection;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Real\Realplayer;C:\WINNT\System32\Wbem;C:\Program Files\sql11\DLL;C:\Program Files\sql11\BIN;C:\Program Files\jetform\5.2\;C:\Program Files\Oracle\ora92\bin;C:\Program Files\SimonTatham\Putty\;C:\Program Files\Sybase\shared\powerbuilder;C:\Program Files\rational\clearcase\bin;C:\Java\maven-2.0.4\bin ;C:\Sun\SDK\bin;C:\Sun\jwsdp-2.0\jwsdp-shared\bin;C:\Java\jad Mar 20, 2007 4:02:05 PM
Re: does useOriginalwsdl do any special handling
Roshan, Why do you want one WSDL to be displayed , but another WSDL to used in runtime processing. What is the purpose of displaying a WSDL that is not relevant ? Manoj On 3/22/07, Punnoose, Roshan [EMAIL PROTECTED] wrote: Actually, I would like to see the case where Axis does not automatically try to consume the WSDL that is there. My WSDLs are compliant, but I keep getting errors because of various reasons: not having all the xsds and wsdls in the same directory, importing wsdls that only define services and not port types, etc. With the WSDL spec changing to 2.0+, I think we should have an option that forces Axis2 to just display what WSDL that is there (and have the name configurable) and not try to consume it. That way a disconnect is possible between the WSDL and the actual service. (I know that sounds horrible, but I don't use the WSDL Java generation, just work directly with OMELements and write my own services, which I find much easier considering my WSDLs are compliant but don't ever seem to work in any generator. And being able to output any WSDL I want without consumption means a lot) Thanks for letting me rant. J *Roshan Punnoose* Phone: 301-497-6039 -- *From:* Manoj Khangaonkar [mailto:[EMAIL PROTECTED] *Sent:* Thursday, March 22, 2007 1:21 PM *To:* axis-user@ws.apache.org *Subject:* Re: does useOriginalwsdl do any special handling Surya and all users, Is useOriginalwsdl a useful parameter to have ? Do people use it regularly and is there a good use case. If there is no use case , would removing the parameter going to behaviour where AXIS2 defaults to using the WSDL(s) in the aar , if the WSDLs are there in the aar and generate the WSDLs when they are not there in the aar, make it simpler for everyone. Mj On 3/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi folks, I developed a WS service. Using a WSDL file ofcourse axis generated. when i set useOriginalwsdl=true and use WSDL generated by axis2-1.1.1 it gives me below error. If i unset to useOriginalwsdl=false, then WS works. I dont understand why it is failing for useOriginalwsdl=true even though i use WSDL generated by axis. Any clues? Client Side Sending request.. hr:getEmployee xmlns:hr=http://types.wsdl.custom.ws.ssk.com/xsd;hr:in1/hr:in/hr:getEmployee org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method getEmployee at org.apache.axis2.description.OutInAxisOperationClient.send( OutInAxisOperation.java:271) at org.apache.axis2.description.OutInAxisOperationClient.execute ( OutInAxisOperation.java:202) at org.apache.axis2.client.ServiceClient.sendReceive( ServiceClient.java:579) at org.apache.axis2.client.ServiceClient.sendReceive( ServiceClient.java:508) at com.ssk.ws.custom.wsdl.types.HRServiceClient2.main ( HRServiceClient2.java:43) Caused by: java.lang.Exception: org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method getEmployee; nested exception is: java.lang.IllegalArgumentException : wrong number of arguments at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic( RPCMessageReceiver.java:159) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive( AbstractInOutSyncMessageReceiver.java:39) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest( HTTPTransportUtils.java :328) at org.apache.axis2.transport.http.AxisServlet.doPost( AxisServlet.java:254) 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
Re: [AXIS2] Error when executing Java2WSDL
Jorge, I have provided 2 patches to fix these problems. The patch for AXIS2-1749 takes care of classes extending other classes The patch for AXIS2-2116 takes care of classes that do not have get set methods. One of the committers will need to commit these patches to the code - for it to be available to user like you. If you are unable to wait, you could copy the patches and build the code yourself. Mj On 2/21/07, Jorge Fernandez [EMAIL PROTECTED] wrote: Hi, I had the same problem and apparently was because I had operations with the same name but different number or type of parameters as allowed in Java. I have a question: When I extend a class, shouldn't the wsdl use the extension base or restriction base characteristic from xml, should it? It's because I have few classes that extend from another and I have a huge document because those attributes appear again and again. And other little problem I get is that the wsdl omits java attributes if they don't have a get...() or is..() method and also if I have a method started with get, it extracts the name of the method for creating an attribute. The last thing is that xml nillable attribute doesn't appear sometimes for java attributes even if I initialize that attribute in the declaration with a null value. Like this public class configuration { private Date end =null; public Date getEnd(){ return end; } public void setEnd(Date _end){ end = new Date(_end.getTime()); } } xs:element name=configuration type=ax29:configuration/ xs:complexType name=configuration xs:sequence xs:element name=end type=xs:dateTime/ /xs:sequence /xs:complexType Thanks Jorge Fernández Hi Wen, http://ws.apache.org/axis2/tools/1_1/eclipse/wsdl2java-plugin.html#operation2 Please make sure that you have included all the dependent classes/jars in the page2 of the wizards. Thanks Lahiru Sandakith. On 1/31/07, W.Y. Ho [EMAIL PROTECTED] wrote: It's a Java2WSDL, Not WSDL2Java, it supposed to generate a WSDL file. It starts from service implementation class. BTW, I downloaded 1.1.1 already and still got the same error. Thanks, wen *Anne Thomas Manes [EMAIL PROTECTED]* wrote: Are you certain that the WSDL is valid? Keep in mind that Axis2 does not support rpc/encoded. Also, please make sure you are using Axis2 1.1.1. Anne On 1/30/07, Ho, Wen Yue wrote: Hi, I've got the following error when executing Java2WSDL using AXIS2 CodeGen wizard (eclipse plugin): an error occurred while completing process -java.lang.reflect.InvocationTargetException Please kindly assist. Thanks in advance, wen NOTICE OF CONFIDENTIALITY This communication including any information transmitted with it is intended only for the use of the addressees and is confidential. If you are not an intended recipient or responsible for delivering the message to an intended recipient, any review, disclosure, conversion to hard copy, dissemination, reproduction or other use of any part of this communication is strictly prohibited, as is the taking or omitting of any action in reliance upon this communication. If you receive this communication in error or without authorization please notify us immediately by return e-mail or otherwise and permanently delete the entire communication from any computer, disk drive, or other storage medium. If the above disclaimer is not properly readable, it can be found at www.td.com/legal AVERTISSEMENT DE CONFIDENTIALITE Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement aux destinataires susmentionnés, est confidentiel. Si vous n'êtes pas le destinataire prévu ou un agent responsable de la livraison de ce courriel, tout examen, divulgation, copie, impression, reproduction, distribution, ou autre utilisation d'une partie de ce courriel est strictement interdit de même que toute intervention ou abstraction à cet égard. Si vous avez reçu ce message par erreur ou sans autorisation, veuillez en aviser immédiatement l'expéditeur par retour de courriel ou par un autre moyen et supprimer immédiatement cette communication entière de tout système électronique. Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous pouvez le consulter à www.td.com/francais/legale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Now you can have a huge leap forward in email:* get the new Yahoo! \ Mail.*http://us.rd.yahoo.com/evt=40705/*http://mrd.mail.yahoo.com/try_beta?.intl=ca \ -- LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.comhttp://us.rd.yahoo.com/mail/es/tagline/messenger/*http://es.voice.yahoo.com/
Re: [Axis2] RPC WSDL/ Codegen?
When you query for the WSDL using ?wsdl, AXIS2 returns a generated WSDL and not the one you deployed. If you want it to return the WSDL you deployed , you need to add the following to services.xml parameter name=useOriginalWSDL true /parameter However see my posting to axis-dev - which is below. There are a few issues with this - and I'll try to provide patches shortly. Mj -- Forwarded message -- From: Manoj Khangaonkar [EMAIL PROTECTED] Date: Feb 19, 2007 10:57 PM Subject: [AXIS2] useOriginalWSDL parameter - issues / possible solutions To: axis-dev axis-dev@ws.apache.org Hi all, I observed a few issues with the useOrignalWSDL parameter. Let me list them and if there is consensus I can provide the necessary patch. My understanding of the intended behavior is that if parameter name=useOrignalWSDL true /parameter is defined in services.xml, then any explicit .wsdl file that the user packaged in the services.aar is returned , when user queries for WSDL with a HTTP get such as http://localhost:8080/services/axis2/servicename?wsdlhttp://localhost:8080/services/axis2/%3Cservicename%3E?wsdl If useOriginalWSDL parameter is omitted or value is false, any packaged WSDL is ignored and a generated WSDL is returned. 1. So the default behaviour of the kernel is to return a generated WSDL - as if useOrginalWSDL = false. This seems a little non-intuitive. If a user explicitly deployed a WSDL file with his aar, chances are high that he wants that WSDL to be used and not the generated one. Thus the default behaviour should be useOrginalWSDL = true; in other words , if there is WSDL file in the aar, and useOrignalWSDL is not defined - then use/return the WSDL file in the aar. Defaulting to true is less work for everyone. 2. When useOrignalWSDL = false and there is an explicit WSDL in the aar, the query http://localhost:8080/services/axis2/servicename?wsdlhttp://localhost:8080/services/axis2/%3Cservicename%3E?wsdl returns a WSDL where the target namespace of the types section is from the explicit WSDL. Some unnecessary namespaces are declared as well. This is bug and should be fixed. 3. The code path for WSDL 20 does not check whether useOriginalWSDL is true/false 4. Lastly - is there a good use case of this parameter ? Unless there is, We could remove this parameter without losing any functionality. If the use added an explicit WSDL to the aar , then that should be used/returned and if there is no WSDL, it should be generated. If I have to add/change a parameter in services.xml and redeploy -- I can add/remove WSDL and redeploy. Mj On 2/21/07, tgb [EMAIL PROTECTED] wrote: I am getting the same problem with my rpc/literal WSDL. I am using axis2 1.1.1 and the related codegen eclipse plugin v1.1.1. The generation works fine and I was able to deploy the service but it reports itself as document-literal at ?wsdl. The client I generated from the original rpc/literal/wsdl sends document-literal style messages. This all worked fine using axis 1.3 and eclipse 3.2 WTP 1.5.1 Just wondered if you ever solved the problem or if anyone else knows if the lastest nightly build fixes this issue. I've been searching but so far haven't found anyting definitive. Thanks, Tim Cox, Brian (GE Infra, Energy) wrote: There appears to be a problem with either the RPC WSDL code generation or the wsdl generation. If I start with a valid RPC WSDL and generate the server skeleton using the command: C:\1testwsdl2java -uri BookQuoteModified.wsdl -d xmlbeans -o client -p com.ems.client I receive a valid skeleton. If we go ahead and compile/deploy the generated skeleton, and then ask for the wsdl from the service. We are presented with a doc/literal wsdl. It seems there is an error either in the initial codegeneration or in the service wsdl generation. Has anyone else experienced this problem? Attached is a sample RPC wsdl (BookQuote2.wsdl) which ships with Axis2. Thanks, Brian BookQuote2.wsdl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/RPC-WSDL---Codegen--tf2593238.html#a9092547 Sent from the Axis - User mailing list archive at Nabble.comhttp://nabble.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[AXIS2] useOriginalwsdl bug ?
Hi, If I package a WSDL in the .aar file and useOriginalWSDL= false ( No parameter in services.xml) then http://localhost:8080/axis2/services/StockQuoteService?wsdl returns a WSDL whose targetnamespace is generated from the package name of StockQuoteService class and this is correct. But the target namespace for types section is from the WSDL I packaged in the aar. This looks like a bug to me - since useOriginalWSDL = false. Is this a fair statement ? Mj
Re: [AXIS2] java2wsdl classpath
Alistair, The -cp is a java runtime command line option. What ever you pass here is passed to the java.exe that executes the jave code. If you look in the script ( java2wsdl.sh or java2wsdl.bat) you will see that the code (1) creates something called AXIS2_CLASSPATH ( all the axis runtime jars that are required (2) append to (1) the classpath the user passed it with java2wsdl -cp (3) append the %CLASSPATH% variable If you are not familiar with how the jvm treates -cp , I would say - look at the java documentation. On windows , step 3 does not happen. There is JIRA issue open and a patch has been provided. Mj On 2/14/07, Alistair Young [EMAIL PROTECTED] wrote: Are there any examples of setting the classpath with java2wsdl? I've tried: java2wsdl.sh -cp .:/lib/test.jar -cn org.testing.Tester but it fails to find the classes in /lib/test.jar thanks, Alistair -- mov eax,1 mov ebx,0 int 80h - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS2] Is rest fixed in 1.1.1?
It is fixed now. What URL are you trying ? Mj On 1/26/07, Alistair Young [EMAIL PROTECTED] wrote: Hi there, I'm getting all sorts of errors when trying to list services from the axis2 admin screen suc as: I can not find a service for this request to be serviced I saw this thread: http://blog.gmane.org/gmane.text.xml.axis.user/day=20070106 which says that REST is broken on 1.1.1 - is it really broken and if so, when will the fix be released? thanks, Alistair -- mov eax,1 mov ebx,0 int 80h - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question axis 2 Java2WSDL tool
Harish, By default , AXIS2 java2WSDL generates what is called doc lit wrapped style WSDL. My guess is you want RPC lit style WSDL - like below wsdl:message name=getEligibleIVRPromotionsResponseMessage wsdl:part name=part1 element=xsd:string/ /wsdl:message I think AXIS2 java2WSDL does not support this ( not 100% sure) --- You might want to try using the original AXIS java2WSDL - You typically pass in the WSDL style as a command line parameter. In the original java2WSDL you could say java2WSDL -style rpc . in AXIS2 , you would java2WSDL -st but I am not sure what the supported values are. Mj On 1/11/07, Harish Hirasave [EMAIL PROTECTED] wrote: Hi, I have a pojo from which I am trying a generate a wsdl. The pojo has the method public String getEligibleIVRPromotions(String phone) throws RemoteException { String errorMsg = IVRServiceSoapBindingImpl.getEligibleIVRPromotions(String):; String xml = null; return xml; } This method returns a String object. When I convert it to wsdl using the java2WSDL tool the wsdl method gets generated with a getEligibleIVRPromotionsRequest Object as input and getEligibleIVRPromotionsResponse Object as the return object. How do I prevent this and make the method return a String object and not a wrapper object getEligibleIVRPromotionsResponse? Attached is the wsdl. Please help. Thanks Harish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deployment Problem with Quick Start Sample
Doug, I just download the axis2.war for the 1.1 release and tested and both http://localhost:8080/axis2/rest/StockQuoteService/getPrice?symbol=IBM http://localhost:8080/axis2/rest/Version/GetVersion work as advertised with no extra configuration. This is 1.1 release and not the nightly build - you might want to check The patch I refer to (1917) applies to 1.1.x or if you build the binaries from the latest code. Mj On 1/6/07, Martin Gainty [EMAIL PROTECTED] wrote: I think this is a work in progress I thought that the REST version of StockQuoteService was in development so I thought of generating code from the databinding/StockQuoteService.wsdl Here are the steps $AXIS2_HOME/binwsdl2Java.bat -uri $AXIS2_HOME/samples/databinding/StockQuoteService.wsdl Using AXIS2_HOME: C:\AXIS\axis2-1.1 Using JAVA_HOME:C:\J2SE15 Retrieving schema wsdl:imported from 'StockQuote.xsd', relative to 'file:/C:/AXIS/axis2-1.1/samples/databinding/'. Jan 6, 2007 9:28:55 AM org.apache.axis2.schema.SchemaCompilerfindClassName WARNING: Type { http://w3.ibm.com/schemas/services/2002/11/15/stockquote}quote_type0http://w3.ibm.com/schemas/services/2002/11/15/stockquote%7Dquote_type0missing! Jan 6, 2007 9:28:55 AM org.apache.axis2.schema.SchemaCompilerfindClassName WARNING: Type { http://w3.ibm.com/schemas/services/2002/11/15/stockquote}quote_type0http://w3.ibm.com/schemas/services/2002/11/15/stockquote%7Dquote_type0missing! Yet when I attempt to look at http://w3.ibm.com/schemas/services/2002/11/15/stockquote I get a 404 M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - *From:* Doug Kunzman [EMAIL PROTECTED] *To:* axis-user@ws.apache.org *Sent:* Friday, January 05, 2007 9:42 PM *Subject:* RE: Deployment Problem with Quick Start Sample It still does not work do I need to download a patch? Doug -- *From:* Manoj Khangaonkar [mailto:[EMAIL PROTECTED] *Sent:* Friday, January 05, 2007 8:30 PM *To:* axis-user@ws.apache.org *Subject:* Re: Deployment Problem with Quick Start Sample And if you are using the browser you need to use the REST url http://mindleech:8080/axis2/rest/StockQuoteService?getPrice=IBM On 1/5/07, Manoj Khangaonkar [EMAIL PROTECTED] wrote: Doug, The aar needs to be copied to webapps/axis2/web-inf/services directory. You need to copy it Look at your tomcat logs , there should be an error. In 1.1.x -- the current trunk , rest is broken -see JIRA 1917 - i have provided a patch. One of the committers will need to commit the patch. Mj On 1/5/07, Doug Kunzman [EMAIL PROTECTED] wrote: Hi- I am using AXIS2 version 1.1 and attempted to deploy the quick start sample using the upload facility. I noticed that the StockQuateService.aar got copied to the /services directory rathern than the /WEB-INF directory as the documentation describes. Which is correct? Can someone explain? Also, when I type into a browser the following URL http://mindleech:8080/axis2/services/StockQuoteService I get the following message, - soapenv:Fault faultcode/ - faultstring I can not find a service for this request to be serviced. Check the WSDL and the request URI; nested exception is: org.apache.axis2.AxisFault: I can not find a service for this request to be serviced. Check the WSDL and the request URI /faultstring detail/ /soapenv:Fault When I type, http://mindleech:8080/axis2/rest/StockQuoteService?getPrice=IBM I get no response. Can someone please help me troubleshoot this problem doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deployment Problem with Quick Start Sample
And if you are using the browser you need to use the REST url http://mindleech:8080/axis2/rest/StockQuoteService?getPrice=IBM On 1/5/07, Manoj Khangaonkar [EMAIL PROTECTED] wrote: Doug, The aar needs to be copied to webapps/axis2/web-inf/services directory. You need to copy it Look at your tomcat logs , there should be an error. In 1.1.x -- the current trunk , rest is broken -see JIRA 1917 - i have provided a patch. One of the committers will need to commit the patch. Mj On 1/5/07, Doug Kunzman [EMAIL PROTECTED] wrote: Hi- I am using AXIS2 version 1.1 and attempted to deploy the quick start sample using the upload facility. I noticed that the StockQuateService.aar got copied to the /services directory rathern than the /WEB-INF directory as the documentation describes. Which is correct? Can someone explain? Also, when I type into a browser the following URL http://mindleech:8080/axis2/services/StockQuoteService I get the following message, − soapenv:Fault faultcode/ − faultstring I can not find a service for this request to be serviced. Check the WSDL and the request URI; nested exception is: org.apache.axis2.AxisFault: I can not find a service for this request to be serviced. Check the WSDL and the request URI /faultstring detail/ /soapenv:Fault When I type, http://mindleech:8080/axis2/rest/StockQuoteService?getPrice=IBM I get no response. Can someone please help me troubleshoot this problem doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No REST for axis2 v1.1
Martin, The quickstartsample is a rest sample. The client invokes the service using REST I have not tried it in 1.1. In 1.1.1 , it is broken and I have provided a patch AXIS2-1912. Mj On 12/29/06, Martin Gainty [EMAIL PROTECTED] wrote: Hello All- when attempting to access Axis 2 v 1.1 HappyAxis.jsp I see Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml Does anyone know how to enable rest support in Axis 2 1.1? Is there an example REST service available? Thx, M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
Re: No REST for axis2 v1.1
Martin, To add to my earlier response, REST should be enabled by default and for 1.1.1 the patch is for AXIS2-1917. Mj On 12/29/06, Manoj Khangaonkar [EMAIL PROTECTED] wrote: Martin, The quickstartsample is a rest sample. The client invokes the service using REST I have not tried it in 1.1. In 1.1.1 , it is broken and I have provided a patch AXIS2-1912. Mj On 12/29/06, Martin Gainty [EMAIL PROTECTED] wrote: Hello All- when attempting to access Axis 2 v 1.1 HappyAxis.jsp I see Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml Does anyone know how to enable rest support in Axis 2 1.1? Is there an example REST service available? Thx, M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
Re: No REST for axis2 v1.1
I am not a REST expert, but it appears The quickstart example is invoked as a REST client. here is cut and paste from the userguide: begin guide - Once those url's are working, let's quickly test the service. Try pointing your browser to the following URL: http://localhost:8080/axis2/rest/StockQuoteService/getPrice?symbol=IBM end guide - This invokes AXISRestServlet and not AXISServlet and follows the code path for REST services. On 12/29/06, Martin Gainty [EMAIL PROTECTED] wrote: apparently that was a patch for a CLASSPATH issue specifically I am looking for REST service which none of the 2.1.1 distros seem to have BTW there are 5 quickstarts that are packaged in the 2.1.1 distro (and none of them are a REST service) /src/modules/samples/quickstart /src/modules/samples/quickstartadb /src/modules/samples/quickstartaxiom /src/modules/samples/quickstartjibx /src/modules/samples/quickstartxmlbeans M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - *From:* Manoj Khangaonkar [EMAIL PROTECTED] *To:* axis-user@ws.apache.org ; Martin Gainty [EMAIL PROTECTED] *Sent:* Friday, December 29, 2006 12:23 PM *Subject:* Re: No REST for axis2 v1.1 Martin, To add to my earlier response, REST should be enabled by default and for 1.1.1 the patch is for AXIS2-1917. Mj On 12/29/06, Manoj Khangaonkar [EMAIL PROTECTED] wrote: Martin, The quickstartsample is a rest sample. The client invokes the service using REST I have not tried it in 1.1. In 1.1.1 , it is broken and I have provided a patch AXIS2-1912. Mj On 12/29/06, Martin Gainty [EMAIL PROTECTED] wrote: Hello All- when attempting to access Axis 2 v 1.1 HappyAxis.jsp I see Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml Does anyone know how to enable rest support in Axis 2 1.1? Is there an example REST service available? Thx, M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
Re: No REST for axis2 v1.1
I presume you have seen this link that describes AXIS2 support for REST and has some samples http://ws.apache.org/axis2/1_1/rest-ws.html On 12/29/06, Manoj Khangaonkar [EMAIL PROTECTED] wrote: I am not a REST expert, but it appears The quickstart example is invoked as a REST client. here is cut and paste from the userguide: begin guide - Once those url's are working, let's quickly test the service. Try pointing your browser to the following URL: http://localhost:8080/axis2/rest/StockQuoteService/getPrice?symbol=IBM end guide - This invokes AXISRestServlet and not AXISServlet and follows the code path for REST services. On 12/29/06, Martin Gainty [EMAIL PROTECTED] wrote: apparently that was a patch for a CLASSPATH issue specifically I am looking for REST service which none of the 2.1.1distros seem to have BTW there are 5 quickstarts that are packaged in the 2.1.1 distro (and none of them are a REST service) /src/modules/samples/quickstart /src/modules/samples/quickstartadb /src/modules/samples/quickstartaxiom /src/modules/samples/quickstartjibx /src/modules/samples/quickstartxmlbeans M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - *From:* Manoj Khangaonkar [EMAIL PROTECTED] *To:* axis-user@ws.apache.org ; Martin Gainty [EMAIL PROTECTED] *Sent:* Friday, December 29, 2006 12:23 PM *Subject:* Re: No REST for axis2 v1.1 Martin, To add to my earlier response, REST should be enabled by default and for 1.1.1 the patch is for AXIS2-1917. Mj On 12/29/06, Manoj Khangaonkar [EMAIL PROTECTED] wrote: Martin, The quickstartsample is a rest sample. The client invokes the service using REST I have not tried it in 1.1. In 1.1.1 , it is broken and I have provided a patch AXIS2-1912. Mj On 12/29/06, Martin Gainty [EMAIL PROTECTED] wrote: Hello All- when attempting to access Axis 2 v 1.1 HappyAxis.jsp I see Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml Does anyone know how to enable rest support in Axis 2 1.1? Is there an example REST service available? Thx, M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
Re: Java2wsdl ignorring the classpath?
If it is a classpath issue, then yes , all the classpaths need to made available with the -cp option. However I think the java2WSDL.bat needs to be fixed to include the users classpath - with a statement like set AXIS_CLASSPATH=%CLASSPATH%;%AXIS_CLASSPATH% If the user already has a CLASSPATH set up, the script should pick it up and not require the user to explicitly provide the path again while calling java2wsdl java2WSDL.sh already does it. On 12/20/06, Nilesh Ghorpade [EMAIL PROTECTED] wrote: Hi Manoj, I have got the same errors using JDK 1.5 as well. I believe the flaw is with the way the java2wsdl parses the -cp command line argument. I was able to get around this error by using ant for executing the java2wsdl and wsdl2java commands. Also I believe that the -cp option is used only for locating the class which we have mentioned in the -cn argument. Hence what I would suggest is try using the following command at the command line java -cp AXIS_JARS+ OTHER_REQUIRED_JARS org.apache.ws.java2wsdl.Java2WSDL -cn Name of the class -cp CLasspath for this class ... Else you can try using the Ant script which I have written. ?xml version=1.0? project name=CodegenExample default= basedir=. path id=example.classpath fileset dir=E:\Work-Folder\AXIS-2.X-POC\build\classes include name=*.class / /fileset fileset dir=D:\thirdparty-tools\axis\axis2-1.1\lib include name=*.jar / /fileset fileset dir=D:\MyProject\jars\externals include name=*.jar / /fileset fileset dir=D:\MyProject\jars\internals include name=*.jar / /fileset /path target name=java2wsdl depends= java classname=org.apache.ws.java2wsdl.Java2WSDL classpathref=example.classpath arg value=-o/ arg value=E:\Work-Folder\AXIS-2.X-POC\simmanager-ws\wsdl / arg value=-cn/ arg value=com.msc.sdm.ic.SimMgrWebServiceImpl / arg value=-l/ arg value=http://localhost:8000/sample/services/MyWebService; / arg value=-of/ arg value=MyWebService.wsdl / arg value=-st/ arg value=rpc/ arg value=-cp/ arg value=E:\Work-Folder\AXIS-2.X-POC\build\classes/ classpath refid=example.classpath/ /java /target /project You would have to just change the hard coded paths. Hope that helps Regards, Nilesh *Manoj Khangaonkar [EMAIL PROTECTED]* wrote: Thomas, With the -cp . (dot) option , I notice that your error is from the jdk jar. Not any of the libraries that AXIS2 brings in. From your classpath, It seems that you are using JDK 1.6. I have seem emails in this group that there are known problems with JDK1.6 Try JDK 1.5. It has always worked from me. I agree that requiring -cp . is annoying and the script needs to pick up the existing classpath. Mj On 12/20/06, Thomas Bruckmayer [EMAIL PROTECTED] wrote: Hi all! Sorry for the noob-question but i am not able to get java2wsdl running. When I'am running java2wsdl without -cp opting i got the following message An error occured while generating codejava.lang.ClassNotFoundException When I'am running java2wsdl with -cp . (current directory) I get Exception in thread main javax.xml.stream.FactoryConfigurationError : Provider javax.xml.stream.XMLInputFactory could not be instantiated: java.lang.Instantiat ionException at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:158 ) at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java: 40) at org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.ja va:66) at org.apache.ws.java2wsdl.Java2OMBuilder.generateTypes (Java2OMBuilder.j ava:153) at org.apache.ws.java2wsdl.Java2OMBuilder.generateOM(Java2OMBuilder.java :122) at org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilde r.java:184) at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCode genEngine.java:56) at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:29) I've heard that this can be cause when it is not possible to find the maven - libs. So I tried: java2wsdl -cp .;P:\Apache Software Foundation\Maven 1.0.2\lib -cn src.swa.webservices.SearchDeveloperService.SearchDeveloper -o SearchDevel operService.wsdl But the i get: An error occured while generating codejava.lang.ClassNotFoundException: src.swa. webservices.SearchDeveloperService.SearchDeveloper Maven and current directory are in the %classpath% variable: D:\workspace\swa_DMCecho %classpath% .;P:\Java\jdk1.6.0\lib;P:\axis\axis2- 1.1\lib ;P:\ant\lib;D:\workspace\swa_DMC ;P:\ Apache Software Foundation\Maven 1.0.2\lib But axis2wsdl does not care... OS: Windows XP regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: Java2wsdl ignorring the classpath?
Thomas, With the -cp . (dot) option , I notice that your error is from the jdk jar. Not any of the libraries that AXIS2 brings in. From your classpath, It seems that you are using JDK 1.6. I have seem emails in this group that there are known problems with JDK1.6 Try JDK 1.5. It has always worked from me. I agree that requiring -cp . is annoying and the script needs to pick up the existing classpath. Mj On 12/20/06, Thomas Bruckmayer [EMAIL PROTECTED] wrote: Hi all! Sorry for the noob-question but i am not able to get java2wsdl running. When I'am running java2wsdl without -cp opting i got the following message An error occured while generating codejava.lang.ClassNotFoundException When I'am running java2wsdl with -cp . (current directory) I get Exception in thread main javax.xml.stream.FactoryConfigurationError: Provider javax.xml.stream.XMLInputFactory could not be instantiated: java.lang.Instantiat ionException at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:158 ) at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java: 40) at org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.ja va:66) at org.apache.ws.java2wsdl.Java2OMBuilder.generateTypes(Java2OMBuilder.j ava:153) at org.apache.ws.java2wsdl.Java2OMBuilder.generateOM(Java2OMBuilder.java :122) at org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilde r.java:184) at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCode genEngine.java:56) at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:29) I've heard that this can be cause when it is not possible to find the maven - libs. So I tried: java2wsdl -cp .;P:\Apache Software Foundation\Maven 1.0.2\lib -cn src.swa.webservices.SearchDeveloperService.SearchDeveloper -o SearchDevel operService.wsdl But the i get: An error occured while generating codejava.lang.ClassNotFoundException: src.swa. webservices.SearchDeveloperService.SearchDeveloper Maven and current directory are in the %classpath% variable: D:\workspace\swa_DMCecho %classpath% .;P:\Java\jdk1.6.0\lib;P:\axis\axis2-1.1\lib ;P:\ant\lib;D:\workspace\swa_DMC ;P:\ Apache Software Foundation\Maven 1.0.2\lib But axis2wsdl does not care... OS: Windows XP regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 taskdef java2wsdl
Thomas, You are not finding it because this is no ant task for java2WSDL. Please open a JIRA issue. Mj On 12/20/06, Thomas Bruckmayer [EMAIL PROTECTED] wrote: Hi all! I have problemls locating the java2wsdl ant-task in axis 2, org.apache.axis2.tool.ant includes only AntCodegenTask which can be used for wsdl2java. target name=declare taskdef name=java2WSDL classname=org.apache.axis2. ?? classpathref=lib.axis2/ /target target name=run-java2wsdl description=generates WSDL file depends=declare java2WSDL classname=src.swa.webservices.SearchDeveloperService.SearchDeveloper location=http://localhost:8080/axis2/SearchDeveloperService; namespace=urn:finddev output=SearchDeveloperService.wsdl /java2WSDL /target Any suggestions? Thx and regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WS debugging in Eclipse
Hi Vladi, Assuming you are running AXIS2 with Tomcat, Here is a link on how to debug tomcat with eclipse http://tomcat.apache.org/faq/development.html#rd-eclipse SInce you are interesed in debugging AXIS2 , put appropriate break points in the AXIS2 code. The same concept applies to any other environment from which you run AXIS2. MJ On 12/6/06, VF [EMAIL PROTECTED] wrote: Hi all, Is it possible to debug web services in Eclipse? Vladi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 supporting SCA?
Tak, You might want to check the tuscany project at http://incubator.apache.org/tuscany I think SCA does support AXIS2 as a binding. Mj On 11/21/06, Takahiko Saito [EMAIL PROTECTED] wrote: Hi, We are working on a project that uses Apache Axis. On the Apache website, the newly release of Axis 2.0 does not list Service Component Architecture (SCA) as one of the supported features. If that is indeed the case, is there be any plan to release a follow-on version supporting SCA? Thanks in advance, Tak Saito
[AXIS2] Small problem in Userguide Page 3 - Writing WS clients using code generation
Hi, The userguide says , generate stubs using the command WSDL2Java -uri ..\samples\wsdl\Axis2SampleDocLit.wsdl -o ..\samples\src -p org.apache.axis2.userguide However this generates the stub with default databinding ADB. The subsequent sample code on the same page echoString, echoStringArray etc are written assuming xmlbeans databinding and will not compile. For echoString to work as is, the stub needs to be generated usingWSDL2Java -uri ..\samples\wsdl\Axis2SampleDocLit.wsdl -d xmlbeans -o ..\samples\src -p org.apache.axis2.userguide regardsMj