Re: useOriginalWsdl generates error when set to true.
maybe you schema definitions files not including the arr file ,when set the useOriginalwsdl=true silver17 wrote: > > Hi guys, > > I've been working on an Axis2 service and keep getting the same error. > What I WANT to do is use the original wsdl but modify the soap address and > I can't seem to do that. When I access the wsdl I would like to set the > original wsdl to true and access the service at: > http://server.com/axis2/services/service?wsdl but I get the error: > > error> > Unable to generate WSDL 1.1 for this service > > If you wish Axis2 to automatically generate the WSDL 1.1, then please +set > useOriginalwsdl as false in your services.xml > > > > As a result I am forced the use the address with a .wsdl suffix when > referencing my service via clients. It works, but since it doesn't modify > the wsdl port address I must manually modify the URL on the client side, > which is needless work. I'm currently using Axis2.1.3 on OAS. > > My service.xml > > > > > > http://www.w3.org/ns/wsdl/in-out"; > class="ca.gc.agr.services.extractaafcprofile.ExtractAAFCProfileMessageReceiverInOut"/> > > name="ServiceClass">ca.gc.agr.services.extractaafcprofile.ExtractAAFCProfileSkeleton > true > true > mep="http://www.w3.org/ns/wsdl/in-out";> > ExtractAAFCProfile > > //schemas.xmlsoap.org/wsdl/ExtractAAFCProfile_portType/ExtractAAFCProfileResponse > faultName="TranslatorFault">TranslatorException > > > > > My wsdl service name: > > > binding="nlwis:ExtractAAFCProfile_SOAP12Binding"> > > location="http://localhost:8080/axis2/services/ExtractAAFCProfile"; /> > > binding="nlwis:ExtractAAFCProfile_SOAP11Binding"> > > location="http://localhost:8080/axis2/services/ExtractAAFCProfile"; /> > > > > > -- View this message in context: http://www.nabble.com/useOriginalWsdl-generates-error-when-set-to-true.-tp16834658p25000274.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: Passing 2 byte arrays to web service is yielding strange results
Could be the same issue as AXIS2-4308. Martin, are you looking into this? Andreas On Fri, Aug 14, 2009 at 22:17, Martin Gainty wrote: > cant access the aar ? > any ability to put this on a http or ftp site or display the wsdl? > > Martin Gainty > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > de ceci est interdite. Ce message sert à l'information seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Date: Fri, 14 Aug 2009 12:27:42 -0700 >> From: justin.fe...@gmail.com >> To: axis-user@ws.apache.org >> Subject: Re: Passing 2 byte arrays to web service is yielding strange >> results >> >> >> Attached is the AAR file (TestWS.aar) as well as a test client >> (TestClient.jar). The test client files were generated using WSDL2Java >> (ADB). >> >> -Justin >> http://www.nabble.com/file/p24977228/TestClient.jar TestClient.jar >> http://www.nabble.com/file/p24977228/TestWS.aar TestWS.aar >> >> Andreas Veithen-2 wrote: >> > >> > Justin, >> > >> > Can you package your service in an AAR file (or any other deployable >> > artifact) and post a simple test client that reproduces the problem? >> > >> > Andreas >> > >> > On Fri, Aug 14, 2009 at 00:19, JFeisty wrote: >> >> >> >> Axis newbie hereI have a very simple (pojo) web service and am >> >> serving it >> >> using Axis2 v1.5 in Tomcat 6. I have one web method called test(). It >> >> takes as a parameter a 'Placeholder' object. That 'Placeholder' object >> >> has >> >> two private byte array fields exposed with getters and setters. Here >> >> is >> >> the >> >> server-side code: >> >> >> >> public class TestWS { >> >> public void test(Placeholder p) { >> >> System.out.println("Placeholder.first size: " + >> >> p.getFirst().length); >> >> System.out.println("Placeholder.second size: " + >> >> p.getSecond().length); >> >> } >> >> >> >> >> >> public class Placeholder { >> >> private byte[] first = null; >> >> private byte[] second = null; >> >> >> >> public byte[] getFirst() { >> >> return first; >> >> } >> >> >> >> public void setFirst(byte[] first) { >> >> this.first = first; >> >> } >> >> >> >> public byte[] getSecond() { >> >> return second; >> >> } >> >> >> >> public void setSecond(byte[] second) { >> >> this.second = second; >> >> } >> >> } >> >> >> >> I call this web method and set the Placeholder's 'first' property to a >> >> 5-byte byte array and the 'second' property to a 2-byte byte array. >> >> The >> >> output is very surprising: >> >> >> >> Placeholder.first size: 5 >> >> Placeholder.second size: 5 >> >> >> >> What is going on here? Why is the second byte array the same as the >> >> first? >> >> >> >> Thanks, >> >> Justin >> >> -- >> >> View this message in context: >> >> >> >> http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24960357.html >> >> Sent from the Axis - User mailing list archive at Nabble.com. >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24977228.html >> Sent from the Axis - User mailing list archive at Nabble.com. >> > > > Windows Live™: Keep your life in sync. Check it out.
Sandesha2 and WS-RM questions
Hi, I'm interested in WS-RM and Sandesha2. I've followed the tutorial published at [1] successfully and now have the following questions: 1) The latest Sandesha2 release is 1.3 and on its web site it claims to run with Axis2 1.3. I therefore used this old version of Axis2. Will Sandesha2 be updated or is it a "dead" project? 2) How can I force my service to require WS-RM 1.1 and _NOT_ allow WS-RM 1.0 connections? NOTE: From the tutorial at [1], it is stated that the client can control which version of the spec is used by calling: clientOptions.setProperty(SandeshaClientConstants.RM_SPEC_VERSION, Sandesha2Constants.SPEC_VERSIONS.v1_1); However, I found nothing on how to configure specific WS-RM requirements on the server side. 3) Is there a way to get Sandesha2 to publish WS-RM assertions in the service's WSDL using WS-Policy? My service's published WSDL contains nothing to advertize its WS-RM capabilities. Thank you very much for your help. [1] http://ws.apache.org/sandesha/sandesha2/userGuide.html
Re: autogenerated wsdl contains wrong service location
Alexander, Thanks for the detailed information. I opened an issue for this (see AXIS2-4464) and started to investigate the problem. Andreas On Thu, Jul 23, 2009 at 08:55, Alexander Bruch wrote: > Andreas, > > here are some informations for axis2 under eclipse galileo > > 0. Open Eclipse > 1. Configure Axis2 > - Goto Menu Windows -> Preferences -> Web Services -> Axis2 Preferences > - Choose the Axis2 installation Path i.e. on Windows c:\Program > Files\axis2-1.5 > - Apply > 3. Create new Dynamic WbProject > - Goto Menu File -> New -> Dynamic Web Project > - Project name: TestAxis2-1.5 > - Target Runtime i.e. "Apache Tomcat 6.0" > - Dynamic Web module version: 2.5 > - Configuration: Default Configuration for Apache Tomcat v6.0 > - Configuration: Click Button "Modify" > - Activate Root Checkbox of Axis2 Webservices > (This should install axis2 Project Facets (axis2-web, libs etc.) > - Click Next / Finish until the Project setup is completed > > 4. Create POJO > - Create New Java Class : Package com.test.axis2, Class Name SimplePOJO > - Add two Private properties (String name, int age) and let eclipse generate > public getters and setters. > - Save The niew Class > > 5. Create WebService > - Right click on the new SimplePOJO.java > - chosse WebService -> Create WebService > - At the configuration Section choose: > Server: Tomcat v6.0 Server > Webservice runtime: Apache Axis2 > Service projectz: TestAxis1.5 > > Move the Slider to the top -> "Test Service" > Move the Client Slider to the bottom -> "No client" > > - click Next > - In the next Dialog select " Generate a default service.xml file > - Click Next > - In the Next Dialog select "Start Server" if not already startes > - Click next / finish > > Below is a list of exceptions that will occur. > This is mostly because the Classes are not where they suposed to be > > i.e. org.apache.axis2.transport.http.AxisAdminServlet is suddenly found at > org.apache.axis2.webapp (WebContent/WEB-INF/classes > > > > INFO: Marking servlet AxisAdminServlet as unavailable > 23.07.2009 08:32:03 org.apache.catalina.core.ApplicationContext log > SCHWERWIEGEND: Error loading WebappClassLoader > delegate: false > repositories: > /WEB-INF/classes/ > --> Parent Classloader: > org.apache.catalina.loader.standardclassloa...@18558d2 > org.apache.axis2.transport.http.AxisAdminServlet > java.lang.ClassNotFoundException: > org.apache.axis2.transport.http.AxisAdminServlet > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360) > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083) > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4364) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) > at > org.apache.catalina.core.StandardService.start(StandardService.java:516) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:710) > at org.apache.catalina.startup.Catalina.start(Catalina.java:578) > 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:597) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) > 23.07.2009 08:32:03 org.apache.catalina.core.StandardContext loadOnStartup > SCHWERWIEGEND: Servlet /TestAxis1.5 threw load() exception > java.lang.ClassNotFoundException: > org.apache.axis2.transport.http.AxisAdminServlet > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360) > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083) > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4364) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > at org.apache.catalina.core.StandardHost.star