Re: error sending S/MIME
Thx Martin Gainty wrote: Illegal interception and manipulation costs businesses millions of dollars in lost revenue here AXIS Security is handled by Rampart Rampart doc states these steps for implementing BC 1.) Download bouncycastle according to your java version. You can download bouncycastle from the following link. http://www.bouncycastle.org/latest_releases.html 2.) Add the bcprov-jdkXX-139.jar to your service's / client's classpath. 3.) Add the following line to java.security file which can be found in JRE's lib/security directory as the last line. security.provider.X=org.bouncycastle.jce.provider.BouncyCastleProvider I put $JAVA_HOME/jre/lib/ext/bcprov-jdk15-143.jar and in java.securety I add BouncyCastle provider. Before you try any of the samples makesure you 1.) Have the Axis2 standard binary distribution downloaded and extracted. 2.) Set the AXIS2_HOME environment variable 3.) Run ant from the samples directory to copy the required libraries and modules to relevant directories in AXIS2_HOME. add both rahas-1.4.mar and rampart-1.4.mar modules to /WEB-INF/modules/modules.list rahas-1.4.mar rampart-1.4.mar I have this modul, I use rampart, but also have smtpfault.mar. /WEB-INF/conf/axis2.xml would contain this global reference module ref=rampart/ then configure inflow and outflow security parameters e.g: module ref=rampart / !-- sample-10 : MTOM optimize encrypted content -- parameter name=OutflowSecurity action itemsTimestamp Signature Encrypt/items userclient/user !-- your customised Callback Handler class goes here -- passwordCallbackClassorg.apache.rampart.samples.sample10.PWCBHandler/passwordCallbackClass signaturePropFileclient.properties/signaturePropFile signatureKeyIdentifierDirectReference/signatureKeyIdentifier encryptionKeyIdentifierDirectReference/encryptionKeyIdentifier encryptionUserservice/encryptionUser /action /parameter parameter name=InflowSecurity action itemsTimestamp Signature Encrypt/items !-- your customised Callback Handler class goes here -- passwordCallbackClassorg.apache.rampart.samples.sample10.PWCBHandler/passwordCallbackClass signaturePropFileclient.properties/signaturePropFile /action /parameter I have my Callback Handler and it work fine. The problem is somewhere in axis2, because as standalone web application, this is working fine(sending S/MIME mail). So what are you saying, that the problem is rampart modul? client.properties would contain: org.apache.ws.security.crypto.provider=org.bouncycastle.jce.provider.BouncyCastleProvider org.apache.ws.security.crypto.merlin.keystore.type=jks org.apache.ws.security.crypto.merlin.keystore.password=PasswordUsedTOCreateKeyStoreFile.jks org.apache.ws.security.crypto.merlin.file=client.jks 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: Wed, 12 Aug 2009 15:31:39 +0200 From: tomaz.majerh...@arnes.si To: axis-user@ws.apache.org Subject: error sending S/MIME Env: OS: Win XP Tomcat: 6.0.18 java: 1.6.0_10-b33 axis2: 1.4.1 I have tomcat web application which use crypto and bouncy castle for signing the mail and it work well. But when I'm using same class in my soap service(axis2) I get error: javax.mail.MessagingException: IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/pkcs7-signature; name=smime.p7s; smime-type=signed-data Do any body know what is problem. Regards Windows Live™: Keep your life in sync. Check it out. http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009 begin:vcard fn:Tomaz Majerhold n:Majerhold;Tomaz org:ARNES, Slovenian NREN;Development
Re: wdsl 2.0 support in axis2
Axis Folks, When i saw Keith Chapman's blog on WSDL 2.0 using Axis2 i was encouraged. However, i created a little maven project and added the attached schema valid WSDL 2.0 file to src/main/axis2/service.wsdl and attempted the wsld2code target. It failed with a complaint indicating that it's expecting a file conforming to wsdl1.1 schema instead of the wsdl2.0 schema. How does one actually get support for WSDL 2.0 with Axis2? Best wishes, --greg bash-3.2$ mvn axis2-wsdl2code:wsdl2code [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'axis2-wsdl2code'. [INFO] [INFO] Building bnfsrv [INFO]task-segment: [axis2-wsdl2code:wsdl2code] [INFO] Downloading: http://scala-tools.org/repo-releases/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom Downloading: http://download.java.net/maven/2/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom Downloading: http://repository.codehaus.org/com/thoughtworks/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom Downloading: http://repository.codehaus.org/org/codehaus/mojo/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom Downloading: http://eaio.com/maven2/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom Downloading: http://biosimrepomirror.googlecode.com/svn/trunk//org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom Downloading: http://apache.sunsite.ualberta.ca/ws/axis2/tools/1_4_1/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom Downloading: http://repo1.maven.org/maven2/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom Downloading: http://scala-tools.org/repo-releases/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom Downloading: http://download.java.net/maven/2/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom Downloading: http://repository.codehaus.org/com/thoughtworks/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom Downloading: http://repository.codehaus.org/org/codehaus/mojo/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom Downloading: http://eaio.com/maven2/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom Downloading: http://biosimrepomirror.googlecode.com/svn/trunk//org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom Downloading: http://apache.sunsite.ualberta.ca/ws/axis2/tools/1_4_1/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom Downloading: http://repo1.maven.org/maven2/org/igniterealtime/smack/smackx/3.1.0/smackx-3.1.0.pom Downloading: http://scala-tools.org/repo-releases/cup/java-cup-11a/local/java-cup-11a-local.pom Downloading: http://download.java.net/maven/2/cup/java-cup-11a/local/java-cup-11a-local.pom Downloading: http://repository.codehaus.org/com/thoughtworks/cup/java-cup-11a/local/java-cup-11a-local.pom Downloading: http://repository.codehaus.org/org/codehaus/mojo/cup/java-cup-11a/local/java-cup-11a-local.pom Downloading: http://eaio.com/maven2/cup/java-cup-11a/local/java-cup-11a-local.pom Downloading: http://biosimrepomirror.googlecode.com/svn/trunk//cup/java-cup-11a/local/java-cup-11a-local.pom Downloading: http://apache.sunsite.ualberta.ca/ws/axis2/tools/1_4_1/cup/java-cup-11a/local/java-cup-11a-local.pom Downloading: http://repo1.maven.org/maven2/cup/java-cup-11a/local/java-cup-11a-local.pom Downloading: http://scala-tools.org/repo-releases/cup/java-cup-11a-runtime/local/java-cup-11a-runtime-local.pom Downloading: http://download.java.net/maven/2/cup/java-cup-11a-runtime/local/java-cup-11a-runtime-local.pom Downloading: http://repository.codehaus.org/com/thoughtworks/cup/java-cup-11a-runtime/local/java-cup-11a-runtime-local.pom Downloading: http://repository.codehaus.org/org/codehaus/mojo/cup/java-cup-11a-runtime/local/java-cup-11a-runtime-local.pom Downloading: http://eaio.com/maven2/cup/java-cup-11a-runtime/local/java-cup-11a-runtime-local.pom Downloading: http://biosimrepomirror.googlecode.com/svn/trunk//cup/java-cup-11a-runtime/local/java-cup-11a-runtime-local.pom Downloading: http://apache.sunsite.ualberta.ca/ws/axis2/tools/1_4_1/cup/java-cup-11a-runtime/local/java-cup-11a-runtime-local.pom Downloading: http://repo1.maven.org/maven2/cup/java-cup-11a-runtime/local/java-cup-11a-runtime-local.pom [INFO] [axis2-wsdl2code:wsdl2code] Retrieving document at 'src/main/axis2/service.wsdl'. [Fatal Error] service.wsdl:5:5: Element type wsdl2:definitions must be followed by either attribute specifications, or /. org.xml.sax.SAXParseException: Element type wsdl2:definitions must be followed by either attribute specifications, or /. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at
Re: Greater than's not being escaped in content of element in response
Axis2 uses StAX to serialize XML, and the default StAX implementation shipped with Axis2 is Woodstox. You will have to check in the documentation of Woodstox if it is possible to configure this behavior, or alternatively find another StAX implementation that supports this. Andreas On Thu, Aug 13, 2009 at 06:09, twosnacmwiesem...@bloomberg.net wrote: Hi, I'm using wsdl2java to implement a service. One of my elements in my response object is an xs:string. When the xml is produced from the service as a response, the '' characters are as is. An example would be: ns1:textAnswerlt;go 1 lt;go/ns1:textAnswer This was valid xml apparently (learn something new everyday) and makes sense because there's less text in the payload. But, the client libraries that I'm using are proprietary and choke hard on this. I cannot change the client libraries, how can I change the serialization of this object to escape '' characters? -- View this message in context: http://www.nabble.com/Greater-than%27s-not-being-escaped-in-content-of-element-in-response-tp24948530p24948530.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: Re:
Hi, i just tried to compile with axis2 v.1.5 and still got the same prob. I try to compile the the generated code of a wsdl containing: xs:complexType name=ErrorReportType xs:sequence... xs:element name=Class form=unqualified type=xs:string/... /xs:sequence /xs:complexType The console returns the following: C:\svn\mytestproject\src\main\java\test\MyServiceStub.java:[62057,52] getClass() in test.MyServiceStub.ErrorReportType cannot override getClass() in java.lang.Object; overridden method is final at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:579) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure C:\svn\mytestproject\src\main\java\test\MyServiceStub.java:[62057,52] getClass() in test.MyServiceStub.ErrorReportType cannot override getClass() in java.lang.Object; overridden method is final[62057,52] at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516) at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) ... 16 more I appreciate any help... Thanks Ike Original-Nachricht Datum: Wed, 12 Aug 2009 14:20:25 -0500 Von: Asen asen.m.ase...@gmail.com An: axis-user@ws.apache.org Betreff: Re: Re: Thanks. I am using standard 1.4.1 and I do not think this fix made it to it. Just tested with 1.5 and saw the fix !!! - private static synchronized String getUniqueSuffix(){ + private static synchronized java.lang.String getUniqueSuffix(){ On Wed, Aug 12, 2009 at 1:27 PM, Andreas Veithen andreas.veit...@gmail.comwrote: Ike, Probably it is sufficient to upgrade to Axis2 1.5. I tested this with the current trunk, and ADB now generates a method with name get_class. Probably the fix went into the 1.5 release. Andreas On Wed, Aug 12, 2009 at 17:08, turbok...@gmx.de wrote: I got this problem with axis2 1.4.1. . Axis1 doesnt seem to have this problem ,if i run the wsdlfile trough axis1, axis1 places indeed an underscore, so that the get_Class() method is beeing created. How can I solve this prob with axis2? do i need to tweak the adb framework ? if yes, how this can be implemented if take a look on http://ws.apache.org/axis2/1_5/adb/adb-tweaking.html, i am not clear how to implement the org.apache.axis2.schema.typemap.JavaTypeMap interface and link it to the adb framework to catch it up. thanks Ike Original-Nachricht Datum: Wed, 12 Aug 2009 16:55:34 +0200 Von: Andreas Veithen andreas.veit...@gmail.com An: axis-user@ws.apache.org Betreff: Re: That is not true. If the element is named string and part of a sequence, ADB doesn't generate anything called String, but only methods called setString and getString. There is no conflict here. If the element is a root element, ADB will indeed generate a class called String, but since it is in a different package than java.lang and the ADB generated code uses fully qualified class names everywhere, there is again no conflict here. For names that match a Java primitive type, ADB is smart enough to add an underscore to avoid name collisions. It seems that
how can only public some spring bean method as method!
Hi,All I have a spring Bean with many many method. but some method i don't want to public as WebService Method. like: public IUserAccountManager getUserAccountManager() { return userAccountManager; } public void setUserAccountManager(IUserAccountManager userAccountManager) { this.userAccountManager = userAccountManager; } when i use c# client, I still can see this method too... what should i do? the follow is my services.xml: serviceGroup service name=DataSetServiceEnquiry scope=transportsession description simple spring example /description parameter name=ServiceObjectSupplierorg.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier/parameter parameter name=SpringBeanNamedataSetServiceEnquiry/parameter !-- messageReceivers messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /messageReceivers -- operation name=login messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=getLoginMsg messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation /service /serviceGroup Thanks, Sam Wong
Using ServiceBuilder to build a axis 2 service
Hi all I want to build a service for deployment using the wsdl and services.xml so I can deploy it locally, as not in a container, using the SimpleHTTPServer class. But I'm facing some problems using the services.xml, the ServiceBuilder don't seem to use it very much here is how I create my service Making first the service based on the wsdl InputStream wsdlStream = new FileInputStream( wsdl/ProjectMgntService.wsdl); AxisService wsdlService = null; if (wsdlStream != null) { WSDL11ToAxisServiceBuilder wsdl2AxisServiceBuilder = new WSDL11ToAxisServiceBuilder( wsdlStream, null, null); wsdlService = wsdl2AxisServiceBuilder.populateService(); wsdlService.setWsdlFound(true); wsdlService.setCustomWsdl(true); wsdlService.setClassLoader(BaseWSTestCase.class .getClassLoader()); } ConfigurationContext configContext = ConfigurationContextFactory .createDefaultConfigurationContext(); InputStream servicexmlStream = new FileInputStream( src/test/resources/services.xml); DescriptionBuilder builder = new DescriptionBuilder( servicexmlStream, configContext); OMElement rootElement = builder.buildOM(); ServiceBuilder serviceBuilder = new ServiceBuilder( configContext, wsdlService); AxisService projectMgntService = serviceBuilder .populateService(rootElement); When I deploy this I get an error saying the no message receiver is configured for the operation, so I have to add these to my code, specifying the class implementing the service and message receiver wsdlService .addParameter(ServiceClass, ProjectMgntServiceImpl); wsdlService.addMessageReceiver( http://www.w3.org/ns/wsdl/in-out;, new ProjectMgntServiceMessageReceiverInOut()); But these parameters is in the services.xml so my question is, how can I build a and deploy the service using ServiceBuilder where it uses the services.xml file. cheers, Håkon -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company)
error sending S/MIME
When I'm using axis2 1.5 and S/MIME(I have Boncy Castle provider in JVM java.security) I get error: java.security.NoSuchProviderException: No provider configured for S/MIME But the same program(sending S/MIME mail) as web application in the same Tomcat(where axis2 is installed) it work fine. There is problem in axis2 jars, it is so strange, it take me two days and no solution. begin:vcard fn:Tomaz Majerhold n:Majerhold;Tomaz org:ARNES, Slovenian NREN;Development team adr:;;Jamova 39;Ljubljana;Ljubljana;1000;Slovenia title:Developer tel;work:+386 14798930 tel;fax:+386 1 479 88 99 tel;home:+386 1425 38 01 tel;cell:+386 40757229 x-mozilla-html:FALSE url:http://www.arnes.si/ version:2.1 end:vcard
Re: how can only public some spring bean method as method!
Hi, That's what i have mentioned in my last reply . Normally all the public method on Spring bean will expose as a web service operations. If you don't want to expose any particular method, you can define it as a exclude operation in service.xml file then that particular method will not expose as a web service operation. say you don't want to expose getUserAccountManager(..) and setUserAccountManager(..) methods as web service operations,then you can have following service.xml serviceGroup service name=DataSetServiceEnquiry scope=transportsession description simple spring example /description parameter name=ServiceObjectSupplierorg.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier/parameter parameter name=SpringBeanNamedataSetServiceEnquiry/parameter !-- messageReceivers messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /messageReceivers -- operation name=login messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=getLoginMsg messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation excludeOperations operationgetUserAccountManager/operation operationsetUserAccountManager/operation /excludeOperations /service /serviceGroup you can read more about service.xml file from here [1] , HTH [1] - http://wso2.org/library/2060 Thanks , On Thu, Aug 13, 2009 at 3:02 PM, sam wongsamwon...@gmail.com wrote: Dear Sagara, how about I just only public some method as web server method? how to write services.xml? another question: where is the full structure services.xml ? Thanks Sam Wong 2009/8/13 Sagara Gunathunga sagara.gunathu...@gmail.com: Hi Sam, In the service.xml file you can exclude unwanted operations using using excludeOperations as follows. excludeOperations operationgetUserAccountManager/operation operationsetUserAccountManager/operation /excludeOperations Thanks , On Thu, Aug 13, 2009 at 2:13 PM, sam wongsamwon...@gmail.com wrote: Hi,All I have a spring Bean with many many method. but some method i don't want to public as WebService Method. like: public IUserAccountManager getUserAccountManager() { return userAccountManager; } public void setUserAccountManager(IUserAccountManager userAccountManager) { this.userAccountManager = userAccountManager; } when i use c# client, I still can see this method too... what should i do? the follow is my services.xml: serviceGroup service name=DataSetServiceEnquiry scope=transportsession description simple spring example /description parameter name=ServiceObjectSupplierorg.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier/parameter parameter name=SpringBeanNamedataSetServiceEnquiry/parameter !-- messageReceivers messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /messageReceivers -- operation name=login messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=getLoginMsg messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation /service /serviceGroup Thanks, Sam Wong -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/ -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/
Re: how can only public some spring bean method as method!
good, thanks Sagara 2009/8/13 Sagara Gunathunga sagara.gunathu...@gmail.com: Hi, That's what i have mentioned in my last reply . Normally all the public method on Spring bean will expose as a web service operations. If you don't want to expose any particular method, you can define it as a exclude operation in service.xml file then that particular method will not expose as a web service operation. say you don't want to expose getUserAccountManager(..) and setUserAccountManager(..) methods as web service operations,then you can have following service.xml serviceGroup service name=DataSetServiceEnquiry scope=transportsession description simple spring example /description parameter name=ServiceObjectSupplierorg.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier/parameter parameter name=SpringBeanNamedataSetServiceEnquiry/parameter !-- messageReceivers messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /messageReceivers -- operation name=login messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=getLoginMsg messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation excludeOperations operationgetUserAccountManager/operation operationsetUserAccountManager/operation /excludeOperations /service /serviceGroup you can read more about service.xml file from here [1] , HTH [1] - http://wso2.org/library/2060 Thanks , On Thu, Aug 13, 2009 at 3:02 PM, sam wongsamwon...@gmail.com wrote: Dear Sagara, how about I just only public some method as web server method? how to write services.xml? another question: where is the full structure services.xml ? Thanks Sam Wong 2009/8/13 Sagara Gunathunga sagara.gunathu...@gmail.com: Hi Sam, In the service.xml file you can exclude unwanted operations using using excludeOperations as follows. excludeOperations operationgetUserAccountManager/operation operationsetUserAccountManager/operation /excludeOperations Thanks , On Thu, Aug 13, 2009 at 2:13 PM, sam wongsamwon...@gmail.com wrote: Hi,All I have a spring Bean with many many method. but some method i don't want to public as WebService Method. like: public IUserAccountManager getUserAccountManager() { return userAccountManager; } public void setUserAccountManager(IUserAccountManager userAccountManager) { this.userAccountManager = userAccountManager; } when i use c# client, I still can see this method too... what should i do? the follow is my services.xml: serviceGroup service name=DataSetServiceEnquiry scope=transportsession description simple spring example /description parameter name=ServiceObjectSupplierorg.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier/parameter parameter name=SpringBeanNamedataSetServiceEnquiry/parameter !-- messageReceivers messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /messageReceivers -- operation name=login messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=getLoginMsg messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation /service /serviceGroup Thanks, Sam Wong -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/ -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/
Re: error sending S/MIME
This may be caused by conflicting versions of some JAR (like activation or javamail). See [1]. [1] http://people.apache.org/~veithen/axiom/userguide/ch04.html#d0e719 On Thu, Aug 13, 2009 at 11:41, TomazMtomaz.majerh...@arnes.si wrote: When I'm using axis2 1.5 and S/MIME(I have Boncy Castle provider in JVM java.security) I get error: java.security.NoSuchProviderException: No provider configured for S/MIME But the same program(sending S/MIME mail) as web application in the same Tomcat(where axis2 is installed) it work fine. There is problem in axis2 jars, it is so strange, it take me two days and no solution.
Re: axis2 and rampart embedded into a fully POJO environment
Hi, Didi you solve this? I'm facing the same issues as you. Trying to deploy rampart enabled service inside the Simple server and getting hit with this error from the null pointer. cheers, Håkon 2009/3/23 Csaba Juhász jcs...@gmail.com Hi, I'm quite new to Axis so forgive me if ask something stupid. We are developing a middleware application which already has numerous north- and southbound interfaces towards other software components. We already have a solution for SOAP communication (it's based on a simple embedded HTTP server and some predefined XML snippets) which has worked so far, but we are facing a new use case now which may force us to use a new approach (our northbound integration is too specific especially in the field of security). There are some constrains and criterias concerning deployment,configuration and throughput that must be fulfilled by the new solution. Currently our software consist of several standalone Java processes communicating using an internal CORBA interface (no application server) and all configuration is done centrally through one property file manually or using our configuration GUI; our project leader wants to keep things this way, this is why I'm searching a solution that is fully embeddable and can be fully configured and manipulated programmatically. In the last few days I was investigating the possibility of using Axis2 and more importantly its Rampart module embedded into our POJO project. At first I've tried to find similar use cases on the web but all I've managed to find were some cases where Axis was embedded into a web application running on some kind of an application server and some examples about the use of the SimpleHTTPServer included in Axis2. Using these examples and the SimpleHTTPServer I was able to deploy a simple POJO class (the Echo example service found on numerous web pages) as a service and engage the Rampart module (only a Timestamp is required in the request and the response) on it fully programmatically but had some exceptions when the service was exposed and I need some tips with these problems. I'm not sure if anyone has done something similar but thanks for any help. So the details: - I'm using the SimpleHTTPServer to host my test service which is a POJO service - Rampart module is engaged using the classes in the Rampart distribution by using an instance of the AxisnModule class with a programmatic configuration based on the contents of the Rampart module's deployment descriptor *1.* On the first tries when I invoked the deployed service with Rampart engaged on the server, my requests were sucessful regardless of the missing security header (only a timestamp) of the request. To find out the cause I've debugged the program flow during request processing and I've found out that this behaviour was caused during the execution of Rapmpart's WSDoAllReceiver class. More concretely by the Object keyed with WSSHandlerConstants.INFLOW_SECURITY_SERVER (InflowSecurity-server) missing from either the options or the message context and similarly by the Object keyed with WSSHandlerConstants.INFLOW_SECURITY_CLIENT (InflowSecurity-client) missing from the same places. The relevant code in the WSDoAllReceiver class starts at line 119, you can see that the whole security functions are bypassed when the values retrieved by the ywo keys are nulls. I assume both of these keys are populated somehow in a normal deployment environment, but in my case they weren't as I've used only the WSSHandlerConstants.INFLOW_SECURITY (InflowSecurity) and WSSHandlerConstants.OUTFLOW_SECURITY (OutflowSecurity) keys to configure security on my service. My question is how are these missing keys poulated during normal deployment, what are their default values? I've currenlty managed to bypass this problem by putting instances of the Object class into the AxisConfiguration context using the two keys. *2.* Using the dummy INFLOW_SECURITY_SERVER and INFLOW_SECURITY_CLIENT objects I was able to come a bit further, but found a new problem for myself. Now my service invocations are failing as they should but the correct soap message is not returned to the client. I see the correct exception in the server logs (org.apache.axis2.AxisFault: WSDoAllReceiver: Incoming message does not contain required Security header) but directly after that I get an other exception and no result is returned to the client. I get the following exception: WARN [HttpConnection-8080-1] - Error in extracting message properties org.apache.axis2.AxisFault: Error in extracting message properties at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:70) at org.apache.axis2.engine.Phase.invoke(Phase.java:317) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:520) at
Re: error sending S/MIME
I could be I changed this jars and still problem. Scenario: For singing a mail I use: bcmail-jdk16-143.jar, javamail-crypto_060622.jar, javamail-crypto-bouncycastle-smime_060622.jar, bcprov-jdk16-143 and they ware in my_service/lib folder -- I was getting error: java.security.NoSuchProviderException: No provider configured for S/MIME Solution: I put this jars in axis2 lib (webapps\axis2\WEB-INF\lib) and iit work fine. Best regards, T Andreas Veithen wrote: This may be caused by conflicting versions of some JAR (like activation or javamail). See [1]. [1] http://people.apache.org/~veithen/axiom/userguide/ch04.html#d0e719 On Thu, Aug 13, 2009 at 11:41, TomazMtomaz.majerh...@arnes.si wrote: When I'm using axis2 1.5 and S/MIME(I have Boncy Castle provider in JVM java.security) I get error: java.security.NoSuchProviderException: No provider configured for S/MIME But the same program(sending S/MIME mail) as web application in the same Tomcat(where axis2 is installed) it work fine. There is problem in axis2 jars, it is so strange, it take me two days and no solution. begin:vcard fn:Tomaz Majerhold n:Majerhold;Tomaz org:ARNES, Slovenian NREN;Development team adr:;;Jamova 39;Ljubljana;Ljubljana;1000;Slovenia title:Developer tel;work:+386 14798930 tel;fax:+386 1 479 88 99 tel;home:+386 1425 38 01 tel;cell:+386 40757229 x-mozilla-html:FALSE url:http://www.arnes.si/ version:2.1 end:vcard
Re: axis2 and rampart embedded into a fully POJO environment
What version of Rampart are you using? I guess your point (2) is something related to JIRA *RAMPART-236*https://issues.apache.org/jira/browse/RAMPART-236. Please look at link [1]. [1]. https://issues.apache.org/jira/browse/RAMPART-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12739525#action_12739525 Chinmoy 2009/8/13 Håkon Sagehaug hakon.sageh...@bccs.uib.no Hi, Didi you solve this? I'm facing the same issues as you. Trying to deploy rampart enabled service inside the Simple server and getting hit with this error from the null pointer. cheers, Håkon 2009/3/23 Csaba Juhász jcs...@gmail.com Hi, I'm quite new to Axis so forgive me if ask something stupid. We are developing a middleware application which already has numerous north- and southbound interfaces towards other software components. We already have a solution for SOAP communication (it's based on a simple embedded HTTP server and some predefined XML snippets) which has worked so far, but we are facing a new use case now which may force us to use a new approach (our northbound integration is too specific especially in the field of security). There are some constrains and criterias concerning deployment,configuration and throughput that must be fulfilled by the new solution. Currently our software consist of several standalone Java processes communicating using an internal CORBA interface (no application server) and all configuration is done centrally through one property file manually or using our configuration GUI; our project leader wants to keep things this way, this is why I'm searching a solution that is fully embeddable and can be fully configured and manipulated programmatically. In the last few days I was investigating the possibility of using Axis2 and more importantly its Rampart module embedded into our POJO project. At first I've tried to find similar use cases on the web but all I've managed to find were some cases where Axis was embedded into a web application running on some kind of an application server and some examples about the use of the SimpleHTTPServer included in Axis2. Using these examples and the SimpleHTTPServer I was able to deploy a simple POJO class (the Echo example service found on numerous web pages) as a service and engage the Rampart module (only a Timestamp is required in the request and the response) on it fully programmatically but had some exceptions when the service was exposed and I need some tips with these problems. I'm not sure if anyone has done something similar but thanks for any help. So the details: - I'm using the SimpleHTTPServer to host my test service which is a POJO service - Rampart module is engaged using the classes in the Rampart distribution by using an instance of the AxisnModule class with a programmatic configuration based on the contents of the Rampart module's deployment descriptor *1.* On the first tries when I invoked the deployed service with Rampart engaged on the server, my requests were sucessful regardless of the missing security header (only a timestamp) of the request. To find out the cause I've debugged the program flow during request processing and I've found out that this behaviour was caused during the execution of Rapmpart's WSDoAllReceiver class. More concretely by the Object keyed with WSSHandlerConstants.INFLOW_SECURITY_SERVER (InflowSecurity-server) missing from either the options or the message context and similarly by the Object keyed with WSSHandlerConstants.INFLOW_SECURITY_CLIENT (InflowSecurity-client) missing from the same places. The relevant code in the WSDoAllReceiver class starts at line 119, you can see that the whole security functions are bypassed when the values retrieved by the ywo keys are nulls. I assume both of these keys are populated somehow in a normal deployment environment, but in my case they weren't as I've used only the WSSHandlerConstants.INFLOW_SECURITY (InflowSecurity) and WSSHandlerConstants.OUTFLOW_SECURITY (OutflowSecurity) keys to configure security on my service. My question is how are these missing keys poulated during normal deployment, what are their default values? I've currenlty managed to bypass this problem by putting instances of the Object class into the AxisConfiguration context using the two keys. *2.* Using the dummy INFLOW_SECURITY_SERVER and INFLOW_SECURITY_CLIENT objects I was able to come a bit further, but found a new problem for myself. Now my service invocations are failing as they should but the correct soap message is not returned to the client. I see the correct exception in the server logs (org.apache.axis2.AxisFault: WSDoAllReceiver: Incoming message does not contain required Security header) but directly after that I get an other exception and no result is returned to the client. I get the following exception: WARN [HttpConnection-8080-1] - Error in extracting message properties
Re: axis2 and rampart embedded into a fully POJO environment
Hi Yes all was fixed when I changes to axiom 1.2.8. cheers, Håkon 2009/8/13 Chinmoy Chakraborty cch...@gmail.com What version of Rampart are you using? I guess your point (2) is something related to JIRA *RAMPART-236*https://issues.apache.org/jira/browse/RAMPART-236. Please look at link [1]. [1]. https://issues.apache.org/jira/browse/RAMPART-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12739525#action_12739525 Chinmoy 2009/8/13 Håkon Sagehaug hakon.sageh...@bccs.uib.no Hi, Didi you solve this? I'm facing the same issues as you. Trying to deploy rampart enabled service inside the Simple server and getting hit with this error from the null pointer. cheers, Håkon 2009/3/23 Csaba Juhász jcs...@gmail.com Hi, I'm quite new to Axis so forgive me if ask something stupid. We are developing a middleware application which already has numerous north- and southbound interfaces towards other software components. We already have a solution for SOAP communication (it's based on a simple embedded HTTP server and some predefined XML snippets) which has worked so far, but we are facing a new use case now which may force us to use a new approach (our northbound integration is too specific especially in the field of security). There are some constrains and criterias concerning deployment,configuration and throughput that must be fulfilled by the new solution. Currently our software consist of several standalone Java processes communicating using an internal CORBA interface (no application server) and all configuration is done centrally through one property file manually or using our configuration GUI; our project leader wants to keep things this way, this is why I'm searching a solution that is fully embeddable and can be fully configured and manipulated programmatically. In the last few days I was investigating the possibility of using Axis2 and more importantly its Rampart module embedded into our POJO project. At first I've tried to find similar use cases on the web but all I've managed to find were some cases where Axis was embedded into a web application running on some kind of an application server and some examples about the use of the SimpleHTTPServer included in Axis2. Using these examples and the SimpleHTTPServer I was able to deploy a simple POJO class (the Echo example service found on numerous web pages) as a service and engage the Rampart module (only a Timestamp is required in the request and the response) on it fully programmatically but had some exceptions when the service was exposed and I need some tips with these problems. I'm not sure if anyone has done something similar but thanks for any help. So the details: - I'm using the SimpleHTTPServer to host my test service which is a POJO service - Rampart module is engaged using the classes in the Rampart distribution by using an instance of the AxisnModule class with a programmatic configuration based on the contents of the Rampart module's deployment descriptor *1.* On the first tries when I invoked the deployed service with Rampart engaged on the server, my requests were sucessful regardless of the missing security header (only a timestamp) of the request. To find out the cause I've debugged the program flow during request processing and I've found out that this behaviour was caused during the execution of Rapmpart's WSDoAllReceiver class. More concretely by the Object keyed with WSSHandlerConstants.INFLOW_SECURITY_SERVER (InflowSecurity-server) missing from either the options or the message context and similarly by the Object keyed with WSSHandlerConstants.INFLOW_SECURITY_CLIENT (InflowSecurity-client) missing from the same places. The relevant code in the WSDoAllReceiver class starts at line 119, you can see that the whole security functions are bypassed when the values retrieved by the ywo keys are nulls. I assume both of these keys are populated somehow in a normal deployment environment, but in my case they weren't as I've used only the WSSHandlerConstants.INFLOW_SECURITY (InflowSecurity) and WSSHandlerConstants.OUTFLOW_SECURITY (OutflowSecurity) keys to configure security on my service. My question is how are these missing keys poulated during normal deployment, what are their default values? I've currenlty managed to bypass this problem by putting instances of the Object class into the AxisConfiguration context using the two keys. *2.* Using the dummy INFLOW_SECURITY_SERVER and INFLOW_SECURITY_CLIENT objects I was able to come a bit further, but found a new problem for myself. Now my service invocations are failing as they should but the correct soap message is not returned to the client. I see the correct exception in the server logs (org.apache.axis2.AxisFault: WSDoAllReceiver: Incoming message does not contain required Security header) but directly after that I get an other exception and no result is
configuring axis for a heavy java daemon
Hi Experts, We have a Java application which is a basically a heavy java daemon with a lot of threads. This application needs to communicate with another application which is some other technology. So far we have been using XML-RPC for communication. But now we now to migrate to powerful webservice solution. I see in the user's guide we can do it by putting all code as part of axis web application. But we want to have the application running as it is and still expose it as web service. How this can be done. Any pointers are welcome. Thanks in advance. regards, Pushker
Re: Axis2 Client in Weblogic: org.apache.axis2.deployment.DeploymentException
Guys, Any takers for this? IamSam wrote: Hello Members, I am using Stub generated by Axis2 1.4 (WSDL2java) in a TimerTask scheduled inside Weblogic 9.0. It works normally but some times throws this exceptions and then onwards stops working org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Class Not found : sample.axisversion.Version at ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(Axis2_14_DIR\\repository,Axis2_14_DIR\\conf\\axis2.xml); Here are the details, WebService: .net based webservice Client: Java Thread scheduled by Timer (inside Weblogic. Its a Webapp) Version: Axis2 1.4, Rampart 1.3 I have not deployed Axis2 inside weblogic but have copied the jars inside the lib folder of my project and create the Context using the path of Axis2.xml. Is it happening because I create a new Object everytime in each thread and something is messing up because of that. Thanks, Sameer -- View this message in context: http://www.nabble.com/Axis2-Client-in-Weblogic%3A-org.apache.axis2.deployment.DeploymentException-tp24943227p24954652.html Sent from the Axis - User mailing list archive at Nabble.com.
RE: Axis2 Client in Weblogic: org.apache.axis2.deployment.DeploymentException
did you try Java2WSDL -dlb -cn FullyQualofiedPackageAndClass to create doc/lit 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: Thu, 13 Aug 2009 07:01:47 -0700 From: sameer.mhas...@gmail.com To: axis-user@ws.apache.org Subject: Re: Axis2 Client in Weblogic: org.apache.axis2.deployment.DeploymentException Guys, Any takers for this? IamSam wrote: Hello Members, I am using Stub generated by Axis2 1.4 (WSDL2java) in a TimerTask scheduled inside Weblogic 9.0. It works normally but some times throws this exceptions and then onwards stops working org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Class Not found : sample.axisversion.Version at ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(Axis2_14_DIR\\repository,Axis2_14_DIR\\conf\\axis2.xml); Here are the details, WebService: .net based webservice Client: Java Thread scheduled by Timer (inside Weblogic. Its a Webapp) Version: Axis2 1.4, Rampart 1.3 I have not deployed Axis2 inside weblogic but have copied the jars inside the lib folder of my project and create the Context using the path of Axis2.xml. Is it happening because I create a new Object everytime in each thread and something is messing up because of that. Thanks, Sameer -- View this message in context: http://www.nabble.com/Axis2-Client-in-Weblogic%3A-org.apache.axis2.deployment.DeploymentException-tp24943227p24954652.html Sent from the Axis - User mailing list archive at Nabble.com. _ Express your personality in color! Preview and select themes for Hotmail®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009
retrieve header information from skeleton
I need retrieve header data from generated skeleton. I know one way to read the header is from a handler where a MessageContext can pass the header. However, I have to insert the header data into body in the handler. It is not efficient and awkward. Do you know a straight forward way? Thanks, Mary Hu This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email.
RE: retrieve header information from skeleton
should the solution provider accomplish this difficult task for free? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung 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. Subject: retrieve header information from skeleton Date: Thu, 13 Aug 2009 13:42:29 -0400 From: mary...@jpmorgan.com To: axis-user@ws.apache.org I need retrieve header data from generated skeleton. I know one way to read the header is from a handler where a MessageContext can pass the header. However, I have to insert the header data into body in the handler. It is not efficient and awkward. Do you know a straight forward way? Thanks, Mary Hu This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _ Get back to school stuff for them and cashback for you. http://www.bing.com/cashback?form=MSHYCBpubl=WLHMTAGcrea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
RE: retrieve header information from skeleton
I'm just asking if there is a known solution, because I think this is not a new inquiry. I appreciate any inputs. Thanks, Mary Hu _ From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Thursday, August 13, 2009 1:47 PM To: axis-user@ws.apache.org Subject: RE: retrieve header information from skeleton should the solution provider accomplish this difficult task for free? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung 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. _ Subject: retrieve header information from skeleton Date: Thu, 13 Aug 2009 13:42:29 -0400 From: mary...@jpmorgan.com To: axis-user@ws.apache.org I need retrieve header data from generated skeleton. I know one way to read the header is from a handler where a MessageContext can pass the header. However, I have to insert the header data into body in the handler. It is not efficient and awkward. Do you know a straight forward way? Thanks, Mary Hu _ This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _ Get back to school stuff for them and cashback for you. Try Bing now. http://www.bing.com/cashback?form=MSHYCBpubl=WLHMTAGcrea=TEXT_MSHYCB_ BackToSchool_Cashback_BTSCashback_1x1 This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email.
Does Axis 2.0 support WSDL 2.0?
Axis Folks, Do the Axis2 code-generation tools support WSDL 2.0? Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com
Re: Does Axis 2.0 support WSDL 2.0?
I think there is a command line option to switch to WSDL 2.0. Please check the documentation. Andreas On Thu, Aug 13, 2009 at 19:56, Meredith Gregorylgreg.mered...@gmail.com wrote: Axis Folks, Do the Axis2 code-generation tools support WSDL 2.0? Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com
Re: Does Axis 2.0 support WSDL 2.0?
Andreas, Thanks for your response. i did check the documentation. The description of the wsdl2code mvn targethttp://ws.apache.org/axis2/tools/1_2/maven-plugins/maven-wsdl2code-plugin.htmllists no such configuration parameter. Is there some other place i should look? Best wishes, --greg On Thu, Aug 13, 2009 at 11:04 AM, Andreas Veithen andreas.veit...@gmail.com wrote: I think there is a command line option to switch to WSDL 2.0. Please check the documentation. Andreas On Thu, Aug 13, 2009 at 19:56, Meredith Gregorylgreg.mered...@gmail.com wrote: Axis Folks, Do the Axis2 code-generation tools support WSDL 2.0? Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com
Re: Does Axis 2.0 support WSDL 2.0?
As I remember correct option is w2, but I need to double check. Now I do not have access to code, once I do I will send the exact parameter. On Thu, Aug 13, 2009 at 2:08 PM, Meredith Gregorylgreg.mered...@gmail.com wrote: Andreas, Thanks for your response. i did check the documentation. The description of the wsdl2code mvn target lists no such configuration parameter. Is there some other place i should look? Best wishes, --greg On Thu, Aug 13, 2009 at 11:04 AM, Andreas Veithen andreas.veit...@gmail.com wrote: I think there is a command line option to switch to WSDL 2.0. Please check the documentation. Andreas On Thu, Aug 13, 2009 at 19:56, Meredith Gregorylgreg.mered...@gmail.com wrote: Axis Folks, Do the Axis2 code-generation tools support WSDL 2.0? Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com -- http://blogs.deepal.org
Re: Does Axis 2.0 support WSDL 2.0?
Deepal, Many thanks for the note. But, even if that is the option, how do you set it from maven. The configuration offers no parameter to control that. Best wishes, --greg The WSDL2Code goal takes the following parameters as input. All parameters can be set from the command line by using properties. For example, the parameter generateServerSide may be set using the property axis2.wsdl2code.generateServerSide. If the parameter isn't set via property or in the POM, then a default value applies. *Parameter Name**Command Line Property**Description**Default Value* databindingName${axis2.wsdl2code.databindingName}Data binding framework, which is being used by the generated sources.adb generateAllClasses ${axis2.wsdl2code.generateAllClasses}Whether to generate simply all classes. This is only valid in conjunction with generateServerSide.false generateServerSide${axis2.wsdl2code.generateServerSide}Whether server side sources are being generated.false generateServerSideInterface ${axis2.wsdl2code.generateServerSideInterface}Whether to generate the server side interface.false generateServicesXml ${axis2.wsdl2code.generateServicesXml}Whether a services.xml file is being generated.false generateTestcase${axis2.wsdl2code.generateTestCase}Whether a test case is being generated.false language${axis2.wsdl2code.language}Programming language of the generated sources.java namespaceToPackages ${axis2.wsdl2code.namespaceToPackages}Map of namespace URI to packages in the format uri1=package1,uri2=package2,... Using this parameter is discouraged. In general, you should use the namespaceUris parameter. However, the latter cannot be set on the command line. namespaceURIs Map of namespace URI to packages. Example: namespaceURIs namespaceURI uriuri1/uri packagepackage1/package /namespaceURI /namespaceURI outputDirectory${axis2.wsdl2code.target}Target directory, where sources are being target/generated-sources/axis2/wsdl2code generated. packageName${axis2.wsdl2code.package}Package name of the generated sources. portName${axis2.wsdl2code.portName}Port name, for which sources are being generated. By default, sources are generated for all ports. serviceName${axis2.wsdl2code.serviceName}Service name, for which sources are being generated. By default, sources are generated for all services. syncMode${axis2.wsdl2code.syncMode}Sync mode, for which sources are being generated; either of sync, async, or both (default).both unpackClasses ${axis2.wsdl2code.unpackClasses}Whether to unpack classes. wsdlFile${axis2.wsdl2code.wsdl}Location of the WSDL file, which is read as inputsrc/main/axis2/service.wsdl On Thu, Aug 13, 2009 at 11:25 AM, Deepal Jayasinghe deep...@gmail.comwrote: As I remember correct option is w2, but I need to double check. Now I do not have access to code, once I do I will send the exact parameter. On Thu, Aug 13, 2009 at 2:08 PM, Meredith Gregorylgreg.mered...@gmail.com wrote: Andreas, Thanks for your response. i did check the documentation. The description of the wsdl2code mvn target lists no such configuration parameter. Is there some other place i should look? Best wishes, --greg On Thu, Aug 13, 2009 at 11:04 AM, Andreas Veithen andreas.veit...@gmail.com wrote: I think there is a command line option to switch to WSDL 2.0. Please check the documentation. Andreas On Thu, Aug 13, 2009 at 19:56, Meredith Gregory lgreg.mered...@gmail.com wrote: Axis Folks, Do the Axis2 code-generation tools support WSDL 2.0? Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com -- http://blogs.deepal.org -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com
Re: Does Axis 2.0 support WSDL 2.0?
Try -wv versionWSDL Version. Valid Options : 2, 2.0, 1.1 So in your case -wv 2 or -wv 2.0 Thanks, Deepal On Thu, Aug 13, 2009 at 2:34 PM, Meredith Gregorylgreg.mered...@gmail.com wrote: Deepal, Many thanks for the note. But, even if that is the option, how do you set it from maven. The configuration offers no parameter to control that. Best wishes, --greg The WSDL2Code goal takes the following parameters as input. All parameters can be set from the command line by using properties. For example, the parameter generateServerSide may be set using the property axis2.wsdl2code.generateServerSide. If the parameter isn't set via property or in the POM, then a default value applies. Parameter NameCommand Line PropertyDescriptionDefault Value databindingName${axis2.wsdl2code.databindingName}Data binding framework, which is being used by the generated sources.adb generateAllClasses${axis2.wsdl2code.generateAllClasses}Whether to generate simply all classes. This is only valid in conjunction with generateServerSide.false generateServerSide${axis2.wsdl2code.generateServerSide}Whether server side sources are being generated.false generateServerSideInterface${axis2.wsdl2code.generateServerSideInterface}Whether to generate the server side interface.false generateServicesXml${axis2.wsdl2code.generateServicesXml}Whether a services.xml file is being generated.false generateTestcase${axis2.wsdl2code.generateTestCase}Whether a test case is being generated.false language${axis2.wsdl2code.language}Programming language of the generated sources.java namespaceToPackages${axis2.wsdl2code.namespaceToPackages}Map of namespace URI to packages in the format uri1=package1,uri2=package2,... Using this parameter is discouraged. In general, you should use the namespaceUris parameter. However, the latter cannot be set on the command line. namespaceURIs Map of namespace URI to packages. Example: namespaceURIs namespaceURI uriuri1/uri packagepackage1/package /namespaceURI /namespaceURI outputDirectory${axis2.wsdl2code.target}Target directory, where sources are being target/generated-sources/axis2/wsdl2code generated. packageName${axis2.wsdl2code.package}Package name of the generated sources. portName${axis2.wsdl2code.portName}Port name, for which sources are being generated. By default, sources are generated for all ports. serviceName${axis2.wsdl2code.serviceName}Service name, for which sources are being generated. By default, sources are generated for all services. syncMode${axis2.wsdl2code.syncMode}Sync mode, for which sources are being generated; either of sync, async, or both (default).both unpackClasses${axis2.wsdl2code.unpackClasses}Whether to unpack classes. wsdlFile${axis2.wsdl2code.wsdl}Location of the WSDL file, which is read as inputsrc/main/axis2/service.wsdl On Thu, Aug 13, 2009 at 11:25 AM, Deepal Jayasinghe deep...@gmail.com wrote: As I remember correct option is w2, but I need to double check. Now I do not have access to code, once I do I will send the exact parameter. On Thu, Aug 13, 2009 at 2:08 PM, Meredith Gregorylgreg.mered...@gmail.com wrote: Andreas, Thanks for your response. i did check the documentation. The description of the wsdl2code mvn target lists no such configuration parameter. Is there some other place i should look? Best wishes, --greg On Thu, Aug 13, 2009 at 11:04 AM, Andreas Veithen andreas.veit...@gmail.com wrote: I think there is a command line option to switch to WSDL 2.0. Please check the documentation. Andreas On Thu, Aug 13, 2009 at 19:56, Meredith Gregorylgreg.mered...@gmail.com wrote: Axis Folks, Do the Axis2 code-generation tools support WSDL 2.0? Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com -- http://blogs.deepal.org -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com -- http://blogs.deepal.org
[Axis] Abstract class problem
When I compile my code, I get the following error: class org.apache.axis.message.SOAPEnvelope is an abstract class. It can't be instantiated. Why is this? I checked the docs and org.apache.axis.message.SOAPEnvelope is a public class. It is not abstract.
Re: Does Axis 2.0 support WSDL 2.0?
Deepal, i've modified the configuration of the mvn plugin per your suggestion. i get exactly the same error. i get this on a document that is schema-valid according to Oxygen. Best wishes, --greg plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.4.1/version executions execution goals goalwsdl2code/goal /goals /execution /executions configuration packageName${groupId}.${artifactId}.model/packageName wv2.0/wv /configuration /plugin bash-3.2$ mvn axis2-wsdl2code:wsdl2code ... [Fatal Error] service.wsdl:5:5: Element type wsdl2:definitions must be followed by either attribute specifications, or /. org.xml.sax.SAXParseException: Element type wsdl2:definitions must be followed by either attribute specifications, or /. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:288) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:111) at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:558) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error parsing WSDL Element type wsdl2:definitions must be followed by either attribute specifications, or /. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 33 seconds [INFO] Finished at: Thu Aug 13 11:51:03 PDT 2009 [INFO] Final Memory: 15M/29M [INFO] bash-3.2$ On Thu, Aug 13, 2009 at 11:39 AM, Deepal Jayasinghe deep...@gmail.comwrote: Try -wv versionWSDL Version. Valid Options : 2, 2.0, 1.1 So in your case -wv 2 or -wv 2.0 Thanks, Deepal On Thu, Aug 13, 2009 at 2:34 PM, Meredith Gregorylgreg.mered...@gmail.com wrote: Deepal, Many thanks for the note. But, even if that is the option, how do you set it from maven. The configuration offers no parameter to control that. Best wishes, --greg The WSDL2Code goal takes the following parameters as input. All parameters can be set from the command line by using properties. For example, the parameter generateServerSide may be set using the property axis2.wsdl2code.generateServerSide. If the parameter isn't set via property or in the POM, then a default value applies. Parameter NameCommand Line PropertyDescriptionDefault Value databindingName${axis2.wsdl2code.databindingName}Data binding framework, which is being used by the generated sources.adb generateAllClasses${axis2.wsdl2code.generateAllClasses}Whether to generate simply all classes. This is only valid in conjunction with generateServerSide.false generateServerSide${axis2.wsdl2code.generateServerSide}Whether server side
RE: Axis2 Client in Weblogic: org.apache.axis2.deployment.DeploymentException
Hi Martin, Thanks for your reply. I am not creating the WSDL as the web service I am using is a 3rd party WS and I use their WSDL to generate Client Java stub (WSDL2Java) mgainty wrote: did you try Java2WSDL -dlb -cn FullyQualofiedPackageAndClass to create doc/lit 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: Thu, 13 Aug 2009 07:01:47 -0700 From: sameer.mhas...@gmail.com To: axis-user@ws.apache.org Subject: Re: Axis2 Client in Weblogic: org.apache.axis2.deployment.DeploymentException Guys, Any takers for this? IamSam wrote: Hello Members, I am using Stub generated by Axis2 1.4 (WSDL2java) in a TimerTask scheduled inside Weblogic 9.0. It works normally but some times throws this exceptions and then onwards stops working org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Class Not found : sample.axisversion.Version at ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(Axis2_14_DIR\\repository,Axis2_14_DIR\\conf\\axis2.xml); Here are the details, WebService: .net based webservice Client: Java Thread scheduled by Timer (inside Weblogic. Its a Webapp) Version: Axis2 1.4, Rampart 1.3 I have not deployed Axis2 inside weblogic but have copied the jars inside the lib folder of my project and create the Context using the path of Axis2.xml. Is it happening because I create a new Object everytime in each thread and something is messing up because of that. Thanks, Sameer -- View this message in context: http://www.nabble.com/Axis2-Client-in-Weblogic%3A-org.apache.axis2.deployment.DeploymentException-tp24943227p24954652.html Sent from the Axis - User mailing list archive at Nabble.com. _ Express your personality in color! Preview and select themes for Hotmail®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009 -- View this message in context: http://www.nabble.com/Axis2-Client-in-Weblogic%3A-org.apache.axis2.deployment.DeploymentException-tp24943227p24957646.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: Does Axis 2.0 support WSDL 2.0?
AFAIK in axis2-wsdl2code maven plugin's WSDL2CodeMojo does not contain any parameter called wv , so this option not supports for wsdl2code Maven-plugin. Try to use wsdl2java command line tool with wv option , it will work. e.g. wsdl2java -wv 2 -uri echo.wsdl Thanks , On Fri, Aug 14, 2009 at 12:23 AM, Meredith Gregorylgreg.mered...@gmail.com wrote: Deepal, i've modified the configuration of the mvn plugin per your suggestion. i get exactly the same error. i get this on a document that is schema-valid according to Oxygen. Best wishes, --greg plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.4.1/version executions execution goals goalwsdl2code/goal /goals /execution /executions configuration packageName${groupId}.${artifactId}.model/packageName wv2.0/wv /configuration /plugin bash-3.2$ mvn axis2-wsdl2code:wsdl2code ... [Fatal Error] service.wsdl:5:5: Element type wsdl2:definitions must be followed by either attribute specifications, or /. org.xml.sax.SAXParseException: Element type wsdl2:definitions must be followed by either attribute specifications, or /. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:288) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:111) at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:558) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error parsing WSDL Element type wsdl2:definitions must be followed by either attribute specifications, or /. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 33 seconds [INFO] Finished at: Thu Aug 13 11:51:03 PDT 2009 [INFO] Final Memory: 15M/29M [INFO] bash-3.2$ On Thu, Aug 13, 2009 at 11:39 AM, Deepal Jayasinghe deep...@gmail.com wrote: Try -wv version WSDL Version. Valid Options : 2, 2.0, 1.1 So in your case -wv 2 or -wv 2.0 Thanks, Deepal On Thu, Aug 13, 2009 at 2:34 PM, Meredith Gregorylgreg.mered...@gmail.com wrote: Deepal, Many thanks for the note. But, even if that is the option, how do you set it from maven. The configuration offers no parameter to control that. Best wishes, --greg The WSDL2Code goal takes the following parameters as input. All parameters can be set from the command line by using properties. For example, the parameter generateServerSide may be set using the property axis2.wsdl2code.generateServerSide. If the parameter isn't set via property or in the POM, then a default value
Re: Does Axis 2.0 support WSDL 2.0?
WSDL2CodeMojo does support this option, but the documentation is not up to date: /** * @parameter expression=${axis2.wsdl2code.wsdlVersion} */ private String wsdlVersion = null; Andreas On Thu, Aug 13, 2009 at 22:09, Sagara Gunathungasagara.gunathu...@gmail.com wrote: AFAIK in axis2-wsdl2code maven plugin's WSDL2CodeMojo does not contain any parameter called wv , so this option not supports for wsdl2code Maven-plugin. Try to use wsdl2java command line tool with wv option , it will work. e.g. wsdl2java -wv 2 -uri echo.wsdl Thanks , On Fri, Aug 14, 2009 at 12:23 AM, Meredith Gregorylgreg.mered...@gmail.com wrote: Deepal, i've modified the configuration of the mvn plugin per your suggestion. i get exactly the same error. i get this on a document that is schema-valid according to Oxygen. Best wishes, --greg plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.4.1/version executions execution goals goalwsdl2code/goal /goals /execution /executions configuration packageName${groupId}.${artifactId}.model/packageName wv2.0/wv /configuration /plugin bash-3.2$ mvn axis2-wsdl2code:wsdl2code ... [Fatal Error] service.wsdl:5:5: Element type wsdl2:definitions must be followed by either attribute specifications, or /. org.xml.sax.SAXParseException: Element type wsdl2:definitions must be followed by either attribute specifications, or /. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:288) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:111) at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:558) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error parsing WSDL Element type wsdl2:definitions must be followed by either attribute specifications, or /. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 33 seconds [INFO] Finished at: Thu Aug 13 11:51:03 PDT 2009 [INFO] Final Memory: 15M/29M [INFO] bash-3.2$ On Thu, Aug 13, 2009 at 11:39 AM, Deepal Jayasinghe deep...@gmail.com wrote: Try -wv version WSDL Version. Valid Options : 2, 2.0, 1.1 So in your case -wv 2 or -wv 2.0 Thanks, Deepal On Thu, Aug 13, 2009 at 2:34 PM, Meredith Gregorylgreg.mered...@gmail.com wrote: Deepal, Many thanks for the note. But, even if that is the option, how do you set it from maven. The configuration offers no parameter to control that. Best wishes, --greg The WSDL2Code goal takes the
Re: Does Axis 2.0 support WSDL 2.0?
Andreas, Thanks! That does the trick. Best wishes, --greg On Thu, Aug 13, 2009 at 1:22 PM, Andreas Veithen andreas.veit...@gmail.comwrote: WSDL2CodeMojo does support this option, but the documentation is not up to date: /** * @parameter expression=${axis2.wsdl2code.wsdlVersion} */ private String wsdlVersion = null; Andreas -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com
Passing 2 byte arrays to web service is yielding strange results
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.
[AXIS2]solicit response or notif
Hi, Does Axis/Axis2 support notfi and solicit response Message patterns ? I understand that in WSDL out-only for notif and out-in for solicit-response to be written. Once the code is generated, what different needs to be done to support these than regular in-out message for service implementation and for client implementation to handle these message.? Any link to documentation ? Thanks, Dev