OutOfMemory error
Hi All, I have my own custom message receiver. In their I am creating the response message and building the body node using StAXOMBuilder from response string and setting the SOAP into the out message context. It works fine for small xml but when the size becomes big it gives OutOfMemory error. Following is the code I am using to build OMElement. //create the parser for response string XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new ByteArrayInputStream (xmlString.getBytes())); //create the builder StAXOMBuilder builder = new StAXOMBuilder(parser); //get the root element (in this case the body) OMElement bodyNode = builder.getDocumentElement(); Any solutions?? Chinmoy
Re: Axis2 accepting self signed certificate from the server
Hi Steve, I have a client trying to invoke a web service on a server which has a self signed SSL certificate. I am trying to find a way which will allow the application to use any self-signed certificates without worrying about importing server's cert in the local keystore. Thanks, Nipa On Wed, Apr 30, 2008 at 7:46 PM, <[EMAIL PROTECTED]> wrote: > Nipa, > > Could you be more specific about what you're using the certificate for - > WS-Security signing or encryption? or SSL to a stand-alone Axis2 server? > or ...? > > I've been trying to get all three of those to work lately, so I may be > able to help if I know some more. > > - Steve > -"nipa dadbhawala" <[EMAIL PROTECTED]> wrote: - > > >To: "axis-user@ws.apache.org" > >From: "nipa dadbhawala" <[EMAIL PROTECTED]> > >Date: 04/30/2008 07:56PM > >Subject: Axis2 accepting self signed certificate from the server > > > >Hi All, > > > >Is there any way I can make Axis2 accept server's self signed > >certificate? I tried setting system property as > > > >System.setProperty("axis.socketSecureFactory", > >"org.apache.axis.components.net.SunFakeTrustSocketFactory"); > > > >and it did not work. I also found an old thread on this topic which > >says SunFakeTrustSocketFactory is yet to be written for Axis2. > > > >http://mail-archives.apache.org/mod_mbox/ws-axis-user/200706.mbox/%3C > >[EMAIL PROTECTED] > > > >I am wondering if this is already written or is there any workaround > >for this? > > > >Any help will be appreciated. > > > >Thanks, > >Nipa > > > >MailScanner , and is > - To > unsubscribe, e-mail: [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 accepting self signed certificate from the server
Nipa, Could you be more specific about what you're using the certificate for - WS-Security signing or encryption? or SSL to a stand-alone Axis2 server? or ...? I've been trying to get all three of those to work lately, so I may be able to help if I know some more. - Steve-"nipa dadbhawala" <[EMAIL PROTECTED]> wrote: ->To: "axis-user@ws.apache.org" >From: "nipa dadbhawala" <[EMAIL PROTECTED]> >Date: 04/30/2008 07:56PM >Subject: Axis2 accepting self signed certificate from the server > >Hi All, > >Is there any way I can make Axis2 accept server's self signed>certificate? I tried setting system property as > >System.setProperty("axis.socketSecureFactory",>"org.apache.axis.components.net.SunFakeTrustSocketFactory"); > >and it did not work. I also found an old thread on this topic which>says SunFakeTrustSocketFactory is yet to be written for Axis2. > >http://mail-archives.apache.org/mod_mbox/ws-axis-user/200706.mbox/%3C>[EMAIL PROTECTED] > >I am wondering if this is already written or is there any workaround>for this? > >Any help will be appreciated. > >Thanks, >Nipa > >MailScanner , and is - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 webservice using MTOM/.NET client
Hi, Axis2 release contains a MTOM sample web service and a client which sends files to the service. Download the binary distribution and you can find it in the samples folder.. You can try creating a client for that using the given wsdl.. Let us know if you need anything more.. thanks, Thilina PS: If you need to do it in quick & dirty way, check http://thilinag.blogspot.com/2008/04/download-file-from-axis2-web-service.html On Wed, Apr 30, 2008 at 4:26 AM, Roeder, Andreas < [EMAIL PROTECTED]> wrote: > Hi everybody, > > I'm just started to use Axis2 for developing a webservice. So I'm just a > bloody beginner ;-) > > I want to send and receive files via an Axis2 webservice to/from a .NET > client written in C#. > Now I red serveral times that the Web Service Enhancements (WSE) 3.0 of > .NET and Axis2 both support MTOM. > Unfortunately I cannot find samples how get it implemented. Could someone > provide me some code for doing that? > > Thank you in advance. > > Best Regards, > > Andreas > -- Thilina Gunarathne - http://thilinag.blogspot.com
Axis2 accepting self signed certificate from the server
Hi All, Is there any way I can make Axis2 accept server's self signed certificate? I tried setting system property as System.setProperty("axis.socketSecureFactory", "org.apache.axis.components.net.SunFakeTrustSocketFactory"); and it did not work. I also found an old thread on this topic which says SunFakeTrustSocketFactory is yet to be written for Axis2. http://mail-archives.apache.org/mod_mbox/ws-axis-user/200706.mbox/[EMAIL PROTECTED] I am wondering if this is already written or is there any workaround for this? Any help will be appreciated. Thanks, Nipa
RE: ConfigurationContext
Thanks, however... This gets me *another* context. What is the expected pattern of usage? Create n Contexts and use? Or do as the Axis System/AxisServLet does and cache the Context for future use. It seems a better usage in my world to access the WarBasedAxisConfigurator created Context. Is there a reason not too? Are there risks involved in having multiple contexts floating around? Do they all get consistently built based upon the web.xml init params and axis.xml file? -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 2:26 PM To: axis-user@ws.apache.org Subject: Re: ConfigurationContext -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rename address.mar as addressing.jar and drop it into WEB-INF/lib. Kurt Kavanaugh wrote: | Background: | | | | Java: 1.5 | | Tomcat 5.25 | | Mod_JK Connector | | Apache web server | | Axis 2 | | | | IDE: Intellij 7.x | | | | We have non-standard web layout, I am using the init-params and params | in the axis.xml to explicitly set up the contexts and other entry | points. | | | | I have some experience with Axis back in 2001/2 at Swingtide when we | were building a SOAP inference engine, handlers building SOAP | endpoints,etc. | | | | I have the axis kernel sources setup in my IDE so I can step through and | learn more | | | | Goal(s): | | | | We are using, or more correctly put, going to be using, axis2 in a | legacy web environment. (I.e. We are using Axis2 in an embedded mode). | I/we are going to be using Document Style SOAP to integrate with other | distributed applications. | | | | I like the ability to programmatically introduce new services but I do | not see an easy way, or a pattern for accessing the | ConfigurationContext. In stepping through the code it is obvious that it | is fairly expensive operation to create one. Even if were not expensive | I would like, in a singleton way to access the Configuration Context, as | created by the AxisServlet and install new Java services as they come to | fruition. | | | | public static void install() | | { | | try | | { | | | | ConfigurationContext context = | ConfigurationContextFactory.createConfigurationContextFromFileSystem( | "\\conf", null ); | | HashMap services = | context.getAxisConfiguration().getServices(); | | if ( ! services.containsKey( | BuildingController.class.getName() )) | | { | | AxisService service = AxisService.createService( | BuildingController.class.getName(), context.getAxisConfiguration() ); | | context.getAxisConfiguration().addService( service ); | | } | | | | } | | catch ( Exception e ) | | { | | Trace.error("Problem adding service: " + e.getMessage(), e | ); | | } | | | | Problem: | | | | I am encountering the below exception which I am getting ready to debug. | But I was hoping to access same configuration context, unless this is | not an accepted usage, or is is not thread-safe, or... | | | | ERROR 2008-04-30 14:15:18,344 [Thread-1] - Problem adding service: The | system is attempting to engage a module that is not available: | addressing | | org.apache.axis2.AxisFault: The system is attempting to engage a module | that is not available: addressing | | at | org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration | .java:440) | | at | org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(AxisConfig | uration.java:567) | | at | org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEng | ine.java:589) | | at | org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(F | ileSystemConfigurator.java:141) | | at | org.apache.axis2.context.ConfigurationContextFactory.createConfiguration | Context(ConfigurationContextFactory.java:77) | | at | org.apache.axis2.context.ConfigurationContextFactory.createConfiguration | ContextFromFileSystem(ConfigurationContextFactory.java:180) | | | | Thanks for reading and considering | | | | Kurt | | | | | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) iD8DBQFIGLmzgNg6eWEDv1kRAqx6AJ9W9fnH2M9SK0WU8b57DQhCKLWKAACg5jyr wc0oDWo/KYp6EJOG6NtdUL4= =L6yN -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bug in CommonsHTTPSender: cookies fail to send when using a virtual host.
I'm using commons-httpclient 3.1 and found I couldn't send cookies. I have to set a virtual host: unavoidable for me, but the root of the problem. A patch in CommonsHTTPClient solved the problem: if (msgContext.getMaintainSession()) { HttpState state = httpClient.getState(); method.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY); +final String host = hostConfiguration.getParams().getVirtualHost() == null ? hostConfiguration.getHost() : hostConfiguration.getParams().getVirtualHost(); String path = targetURL.getPath(); boolean secure = hostConfiguration.getProtocol().isSecure(); fillHeaders(msgContext, state, HTTPConstants.HEADER_COOKIE, host, path, secure); fillHeaders(msgContext, state, HTTPConstants.HEADER_COOKIE2, host, path, secure); httpClient.setState(state); } The line used to assume hostConfiguration.getHost() was always the right host to set. Httpclient checks against the name of the virtual host if one is set. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AXIS2: ADB: Namespace Optimization or removal??
If you are using Java then use the -sp option in WSDL2Java when you are generating your stubs. Thanks Raghu From: Youtsey, Sean J CTR NAVSEA KPWA [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 12:44 PM To: axis-user@ws.apache.org Subject: AXIS2: ADB: Namespace Optimization or removal?? I am using AXIS2 (1.3) with ADB as the data binding and am trying to reduce the size of the XML message being sent across the wire (already using gzip compression option). The first question I have is related to namespace optimization...I think I have seen mention of it, but am unable to find anything related. It seems namespaces are printed out many times where they could be defined once (at a higher element) and referenced. Is there a flag or parameter to set to enable this? The second question is I would like to have the option to remove namespaces altogether, without having to create a different WSDL and associated schemas. If I trimmed out namespaces from the resulting XML document, would drastically decrease the size. Is there a flag or parameter to allow for this? Thanks in advance for your help! - Sean
AXIS2: ADB: Namespace Optimization or removal??
I am using AXIS2 (1.3) with ADB as the data binding and am trying to reduce the size of the XML message being sent across the wire (already using gzip compression option). The first question I have is related to namespace optimization...I think I have seen mention of it, but am unable to find anything related. It seems namespaces are printed out many times where they could be defined once (at a higher element) and referenced. Is there a flag or parameter to set to enable this? The second question is I would like to have the option to remove namespaces altogether, without having to create a different WSDL and associated schemas. If I trimmed out namespaces from the resulting XML document, would drastically decrease the size. Is there a flag or parameter to allow for this? Thanks in advance for your help! - Sean
Re: ConfigurationContext
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rename address.mar as addressing.jar and drop it into WEB-INF/lib. Kurt Kavanaugh wrote: | Background: | | | | Java: 1.5 | | Tomcat 5.25 | | Mod_JK Connector | | Apache web server | | Axis 2 | | | | IDE: Intellij 7.x | | | | We have non-standard web layout, I am using the init-params and params | in the axis.xml to explicitly set up the contexts and other entry | points. | | | | I have some experience with Axis back in 2001/2 at Swingtide when we | were building a SOAP inference engine, handlers building SOAP | endpoints,etc. | | | | I have the axis kernel sources setup in my IDE so I can step through and | learn more | | | | Goal(s): | | | | We are using, or more correctly put, going to be using, axis2 in a | legacy web environment. (I.e. We are using Axis2 in an embedded mode). | I/we are going to be using Document Style SOAP to integrate with other | distributed applications. | | | | I like the ability to programmatically introduce new services but I do | not see an easy way, or a pattern for accessing the | ConfigurationContext. In stepping through the code it is obvious that it | is fairly expensive operation to create one. Even if were not expensive | I would like, in a singleton way to access the Configuration Context, as | created by the AxisServlet and install new Java services as they come to | fruition. | | | | public static void install() | | { | | try | | { | | | | ConfigurationContext context = | ConfigurationContextFactory.createConfigurationContextFromFileSystem( | "\\conf", null ); | | HashMap services = | context.getAxisConfiguration().getServices(); | | if ( ! services.containsKey( | BuildingController.class.getName() )) | | { | | AxisService service = AxisService.createService( | BuildingController.class.getName(), context.getAxisConfiguration() ); | | context.getAxisConfiguration().addService( service ); | | } | | | | } | | catch ( Exception e ) | | { | | Trace.error("Problem adding service: " + e.getMessage(), e | ); | | } | | | | Problem: | | | | I am encountering the below exception which I am getting ready to debug. | But I was hoping to access same configuration context, unless this is | not an accepted usage, or is is not thread-safe, or... | | | | ERROR 2008-04-30 14:15:18,344 [Thread-1] - Problem adding service: The | system is attempting to engage a module that is not available: | addressing | | org.apache.axis2.AxisFault: The system is attempting to engage a module | that is not available: addressing | | at | org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration | .java:440) | | at | org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(AxisConfig | uration.java:567) | | at | org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEng | ine.java:589) | | at | org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(F | ileSystemConfigurator.java:141) | | at | org.apache.axis2.context.ConfigurationContextFactory.createConfiguration | Context(ConfigurationContextFactory.java:77) | | at | org.apache.axis2.context.ConfigurationContextFactory.createConfiguration | ContextFromFileSystem(ConfigurationContextFactory.java:180) | | | | Thanks for reading and considering | | | | Kurt | | | | | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) iD8DBQFIGLmzgNg6eWEDv1kRAqx6AJ9W9fnH2M9SK0WU8b57DQhCKLWKAACg5jyr wc0oDWo/KYp6EJOG6NtdUL4= =L6yN -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ConfigurationContext
Background: Java: 1.5 Tomcat 5.25 Mod_JK Connector Apache web server Axis 2 IDE: Intellij 7.x We have non-standard web layout, I am using the init-params and params in the axis.xml to explicitly set up the contexts and other entry points. I have some experience with Axis back in 2001/2 at Swingtide when we were building a SOAP inference engine, handlers building SOAP endpoints,etc. I have the axis kernel sources setup in my IDE so I can step through and learn more Goal(s): We are using, or more correctly put, going to be using, axis2 in a legacy web environment. (I.e. We are using Axis2 in an embedded mode). I/we are going to be using Document Style SOAP to integrate with other distributed applications. I like the ability to programmatically introduce new services but I do not see an easy way, or a pattern for accessing the ConfigurationContext. In stepping through the code it is obvious that it is fairly expensive operation to create one. Even if were not expensive I would like, in a singleton way to access the Configuration Context, as created by the AxisServlet and install new Java services as they come to fruition. public static void install() { try { ConfigurationContext context = ConfigurationContextFactory.createConfigurationContextFromFileSystem( "\\conf", null ); HashMap services = context.getAxisConfiguration().getServices(); if ( ! services.containsKey( BuildingController.class.getName() )) { AxisService service = AxisService.createService( BuildingController.class.getName(), context.getAxisConfiguration() ); context.getAxisConfiguration().addService( service ); } } catch ( Exception e ) { Trace.error("Problem adding service: " + e.getMessage(), e ); } Problem: I am encountering the below exception which I am getting ready to debug. But I was hoping to access same configuration context, unless this is not an accepted usage, or is is not thread-safe, or... ERROR 2008-04-30 14:15:18,344 [Thread-1] - Problem adding service: The system is attempting to engage a module that is not available: addressing org.apache.axis2.AxisFault: The system is attempting to engage a module that is not available: addressing at org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration .java:440) at org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(AxisConfig uration.java:567) at org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEng ine.java:589) at org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(F ileSystemConfigurator.java:141) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration Context(ConfigurationContextFactory.java:77) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration ContextFromFileSystem(ConfigurationContextFactory.java:180) Thanks for reading and considering Kurt
{AXIS2] Rampart 1.3.mar throws error with Axis2 1.3
When I start Tomcat with Axis2 1.3 (includes Rampant 1.3) I get the following error: [ERROR] The rampart-1.3.mar module, which is not valid, caused org/apache/axis2/wsdl/codegen/extension/ModulePolicyExten sion java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/codegen/extension/ModulePolicyExtension I found many references on the web and in this mailing list about this error and one of them is HYPERLINK "https://issues.apache.org/jira/browse/RAMPART-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522580"https://issues.apache.org/jira/browse/RAMPART-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522580 assuring that this bug is RESOLVED. I downloaded Axis2 1.3 a week ago and this bug is still there. Question: where can I get the fixed version? Thanks, Victor No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.6/1407 - Release Date: 4/30/2008 11:35 AM
Bad types exception whith DataHandler attatchment invocation
Hi! I'm trying to invoke a Web Service published through AXIS from a Spring based web application. The operation being invoked has some DataHandler arguments. Here is how I construct the DataHandler client code: Code: OctetStreamDataSource("objectData", new OctetStream(readBytes(themeFile))); DataHandler objectData = new DataHandler(dataSource); The invocation returns with the following exception: Code: org.xml.sax.SAXException: Bad types (class [B -> class javax.activation.DataHandler) at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.performJaxRpcCall(JaxRpcPortClientInterceptor.java:657) at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.doInvoke(JaxRpcPortClientInterceptor.java:591) at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:562) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy11.addMediaObject(Unknown Source) at ... The generated SOAP invocation is as follows: Code: POST /oma-dl-server/services/ThemeProvisioningService HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.4 Host: 127.0.0.1:8085 Cache-Control: no-cache Pragma: no-cache SOAPAction: "" Content-Length: 1130 http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> http://theme-provisioning";> testObjectID1 falseasdf testFileasdf asdfasdf asdfsdfgasdf asdfasdf asdf asdf ad The WSDL operations is: Code: Any help will be appreciated. Thank you in advance. Edit/Delete Message -- View this message in context: http://www.nabble.com/Bad-types-exception-whith-DataHandler-attatchment-invocation-tp16985566p16985566.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can I use use rampart with JAX-WS style webservice
Hi I have a web service developed using jax-ws style annotations. So it does not require a services.xml, It is deployed to axis2 as jar file under WEB-INF\servicejars directory. Now if I want to secure this service using rampart how do I link the policy.xml? Where do I add the stuff such as that one usually adds into services.xml ? cheers Tezcan
Re: RAMPRAT examples question/help
Hi Tezcan, > 2-) Can some one point me to ramprat examples that use the WSDL2Java > gereated stubs? > This tutorial [1] may help you. thanks, /nandana [1] - http://wso2.org/library/3190
Problem in AXIS custom deployment
Hi All, I am facing problem in axis custom deployment. Can you please help me to fix the problem. Here are the steps I have done 1. I have created a Sample Sample2WS.java program and saved it /opt/axis_dev/ws/samples ( AXIS_DEV=/opt/axis_dev) also created the deploy.wsdd file at the same location package ws.samples; public class Sample2WS { public String sayHello(){ return "Hello CSS2005"; } } http://xml.apache.org/axis/wsdd/"; xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";> 2. I have compiled it and copied the Sample2WS.class file under axis/WEB-INF/classes/ in tomcat webapps directory. 3. Created Hello.jar file for Sample2WS.class and pasted the same on axis/WEB-INF/lib of axis directory. 4 .set the classpath on /etc/bashrc AXISCLASSPATH=$AXIS_LIB/axis.jar:$AXIS_LIB/commons-discovery-0.2.jar:$AXIS_LIB/commons-logging-1.0.4.jar:$AXIS_LIB/jaxrpc.jar:$AXIS_LIB/saaj.jar:$AXIS_LIB/log4j-1.2.8.jar:$AXIS_LIB/xml-apis.jar:$AXIS_LIB/xercesImpl.jar:$AXIS_LIB/Hello.jar 5. Given java org.apache.axis.client.AdminClient deploy.wsdd command on /opt/axis_dev/ws/samples directory. It outputs Processing file deploy.wsdd Done processing 6. When I give http://localhost:8081/axis/servlet/AxisServlet I could not see my web services under deployed webservice and also I could not see the server-config.wsdd file under axis/WEB-INF folder Regards, Thamizhannal P - Bollywood, fun, friendship, sports and more. You name it, we have it.
AW: RAMPRAT examples question/help
Hi Dimuthu thanks for the example. I am having a problem with enagging the modules and receiving "org.apache.axis2.AxisFault: Unable to engage module : addressing" what, exactly, do I need to have in my repo directory, apart from rampart.mar and addressing.mar ? cheers Tezcan -Ursprüngliche Nachricht- Von: Dimuthu Leelarathne [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 30. April 2008 04:46 An: axis-user@ws.apache.org Betreff: Re: RAMPRAT examples question/help Hi, On Tue, 2008-04-29 at 14:39 +0200, [EMAIL PROTECTED] wrote: > Hi > > I am going thru the ramprat v1.3 examples and seems to me that all the > examples are also using use Axis2 as a client to invoke the service. > > Hence requiring all the ramprat/axis2 jars, axis2.xml, etc. > 1-) Is this a MUST criteria? It is not a must. Rampart successfully passes interop tests with many. > 2-) Can some one point me to ramprat examples that use the WSDL2Java > gereated stubs? Here is a sample code. In this code "EchoStub" is a WSDL2Java generated stub and the "repo" folder is the client repo which has the required rampart.mar and addressing.mar [1] Thank you, Dimuthu http://wso2.org public static void main(String[] args) throws Exception{ ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem("repo", null); EchoStub stub = new EchoStub(ctx,"http://localhost:9763/services/echo";); EchoString str = new EchoString(); str.setIn("hi dimuthu"); ServiceClient client = stub._getServiceClient(); Options options = client.getOptions(); options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, loadPolicy("policy.xml")); client.setOptions(options); client.engageModule("rampart"); EchoStringResponse res = stub.echoString(str); System.out.println(res.get_return()); } > cheers > Tezcan > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
axis2 rc1.4 error in wsdl2java generated stub
Hi I am receiving the following error in my wsdl2java generated stub for my simple service in Eclipse. "The type EchoStub.EchoResponse must implement the inherited abstract method ADBBean.serialize(QName, OMFactory, MTOMAwareXMLStreamWriter, boolean)" When I replace the axis2 v1.4 jars with axis2 v1.3 the error does not occur. Is there a newer version of the axis2 code gerator tools that are for v1.4? This also occurs when I use the command line version of wsdl2java.bat found under \bin directory. Cheers Tezcan
Re: Custom MEP sample impl?
Deepal jayasinghe wrote: Markus Tost wrote: Hi, I want to implement custom MEPs with Axis2. As I see so far, I have to extend the OperationClient and the OperationContext. Also a custom MessageReceiver may be needed. If you are going to implement that in the server side then you do not need to extend OperationClient. And also OperationContext is generic , what you have to implement is new AxisOperation and a MessageReceiver. Actually, I want to implement both the server side and the client side. They will have "matching" MEPs, e.g. In-Out-In at server side and Out-In-Out at client side. Good point about the description class(es). I shouldn't forget them. Is there any sample code of a MEP implementation which goes beyond the request-response style of the built-in WSDL 2.0 MEPs (e.g. Out-In-In, Out-Out-In, In-In-Out)? Not in the Axis2 code base Are there any written tutorials / best practises / guidelines for implementing such custom MEPs? Would you share your experience with me? I will try to write a sample and a tutorial soon. (I was waiting until a user ask for such a request :) ) Sounds great! I'm looking forward to read it. :) Thank you! Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: using JAX-WS in Axis2
Hi Johan thanks for this info but I am using JAX-WS style with annotations and the two tools are not generating server/client code the way it is supposed to. For example no objectFactory class is created. Any ideas on this? cheers Tezcan -Ursprüngliche Nachricht- Von: Johan Östrand XX [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 29. April 2008 18:22 An: axis-user@ws.apache.org Betreff: RE: using JAX-WS in Axis2 ...or you can use java2wsdl and wsdl2java brgds Johan From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 29 april 2008 15:56 To: axis-user@ws.apache.org Subject: using JAX-WS in Axis2 Hi is there a wsgen / wsimport type tools that I can use in Axis2. cheers Tezcan
WG: Axis2 webservice using MTOM/.NET client
> Hi everybody, > > I'm just started to use Axis2 for developing a webservice. So I'm just > a bloody beginner ;-) > > I want to send and receive files via an Axis2 webservice to/from a > .NET client written in C#. > Now I red serveral times that the Web Service Enhancements (WSE) 3.0 > of .NET and Axis2 both support MTOM. > Unfortunately I cannot find samples how get it implemented. Could > someone provide me some code for doing that? > > Thank you in advance. > > Best Regards, > > Andreas