Re: [ot] adjusting timeouts
I encountered timeouts using an Axis2/C client and a service using the Axis2/C server module. Here's what I found to solve the problem, FYI.The client error log indicates the timeout:[Thu Nov 19 18:30:56 2009] [debug] http_client.c(571) http client , response timed out[Thu Nov 19 18:30:56 2009] [error] http_client.c(574) Response timed out[Thu Nov 19 18:30:56 2009] [error] http_sender.c(1381) status_code 0[Thu Nov 19 18:30:56 2009] [error] engine.c(179) Transport sender invoke failed[Thu Nov 19 18:30:56 2009] [error] TestCases.c(239) Stub invoke FAILED: Error code: 92 :: Response timed outThe default timeout is 6 ms (1 minute) as given in axis2_http_transport.hTo increase the timeout to the required value of 300 seconds (30 ms), I set the option in the client as follows.axis2_options_set_timeout_in_milli_seconds(options, env, 30);Responses taking more than 2 minutes are now returning properly.George -- Forwarded Message: -- From: Sam Carleton scarle...@miltonstreet.com To: Apache AXIS C User List axis-c-user@ws.apache.org Subject: Re: [ot] adjusting timeouts Date: Sun, 15 Nov 2009 22:29:04 + George,Actually, after a bit moreinvestigationI discovered the error was between the keyboard and chair...The .Net client is setting up the binding at runtime... I discovered that that after the .Net client set SendTimeout to 10 minutes, it set it to 25 seconds. Opps! SamOn Sun, Nov 15, 2009 at 4:01 PM, gsherw...@att.net wrote: I too am interested in how to set the timeout for the Axis2/C module. Rarely my application will need up to 300 seconds (the Apache httpd default). But I have not tried that yet.Thanks,George -- Original message from Sam Carleton scarle...@miltonstreet.com: -- My Axis2/C code is being used by a .Net client and being hosted via Apache 2.2 and mod_axis2. I have set the SendTimeout on the .Net binding to 10 minutes but things are still timing out in about 30 seconds. I am wondering if anyone in this forum has run into this problem and has any suggestions on setting on either apache or the .net side to extend the timeout.
client side handler
Hi all, I am trying to add an handler in my axis2 client and in order to do this I followed the Writing Your Own Axis2 Module tutorial adapting it for the client side. The problem is that the handler is not called at all during the web service invocation. Here is what I have done: This is the handler code ** public class Handler extends AbstractHandler implements org.apache.axis2.engine.Handler{ private String name; public InvocationResponse invoke(MessageContext arg0) throws AxisFault { System.out.println(arg0.getEnvelope().toString()); return InvocationResponse.CONTINUE; } public void revoke(MessageContext msgContext) { System.out.println(msgContext.getEnvelope().toString()); } public String getName() { return name; } public void setName(String name) { this.name = name; } } This is the module.xml *** module name=test class=obg.test.client.TestModule inflow handler name=InFlowTestHandler class=obg.test.client.Handler order phase=testPhase / /handler /inflow outflow handler name=OutFlowTestHandler class=obg.test.client.Handler order phase=testPhase/ /handler /outflow Outfaultflow handler name=FaultOutFlowTestHandler class=obg.test.client.Handler order phase=testPhase/ /handler /Outfaultflow INfaultflow handler name=FaultInFlowTestHandler class=obg.test.client.Handler order phase=testPhase/ /handler /INfaultflow /module This is what I added into axis.xml for each phaseOrder I tried both phase name=testPhase handler name=InFlowTestHandler class=obg.test.client.Handler order phase=testPhase / /handler /phase and phase name=testPhase/ Finally I create my stub in this way: ConfigurationContext ctx = null; try { ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(../axi s2.xml); } catch (AxisFault e1) { // TODO Auto-generated catch block e1.printStackTrace(); } // TODO Auto-generated method stub try{ SMSServiceStub stub = new SMSServiceStub(ctx, ..?wsdl); What else Do I have to do? Any suggestions? Best regards Valerio
Getting build error in Axis2 trunk
Hi, I am getting build error when building axis2 trunk. [INFO] [INFO] Building Apache Axis2 - Fast Infoset [INFO]task-segment: [clean, install] [INFO] [INFO] [clean:clean] Downloading: http://ws.zones.apache.org/repository2/com/sun/xml/fastinfoset/FastInfoset/1.1.8/FastInfoset-1.1.8.pom [WARNING] Unable to get resource 'com.sun.xml.fastinfoset:FastInfoset:pom:1.1.8' from repository apache-ws-snapshots2 (http://ws.zones.apache.org/repository2): Authorization failed: Access denied to: http://ws.zones.apache.org/repository2/com/sun/xml/fastinfoset/FastInfoset/1.1.8/FastInfoset-1.1.8.pom Downloading: http://tomcat.apache.org/dev/dist/m2-repository/com/sun/xml/fastinfoset/FastInfoset/1.1.8/FastInfoset-1.1.8.pom [INFO] Unable to find resource 'com.sun.xml.fastinfoset:FastInfoset:pom:1.1.8' in repository tomcat-repository (http://tomcat.apache.org/dev/dist/m2-repository) Downloading: http://repo1.maven.org/eclipse/com/sun/xml/fastinfoset/FastInfoset/1.1.8/FastInfoset-1.1.8.pom [INFO] Unable to find resource 'com.sun.xml.fastinfoset:FastInfoset:pom:1.1.8' in repository eclipse-repo ( http://repo1.maven.org/eclipse) Downloading: http://download.java.net/maven/1/com.sun.xml.fastinfoset/poms/FastInfoset-1.1.8.pom [INFO] Unable to find resource 'com.sun.xml.fastinfoset:FastInfoset:pom:1.1.8' in repository java.net ( http://download.java.net/maven/1) Downloading: http://repo1.maven.org/maven2/com/sun/xml/fastinfoset/FastInfoset/1.1.8/FastInfoset-1.1.8.pom [INFO] Unable to find resource 'com.sun.xml.fastinfoset:FastInfoset:pom:1.1.8' in repository central ( http://repo1.maven.org/maven2) Downloading: http://ws.zones.apache.org/repository2/com/sun/xml/fastinfoset/FastInfoset/1.1.8/FastInfoset-1.1.8.jar [WARNING] Unable to get resource 'com.sun.xml.fastinfoset:FastInfoset:jar:1.1.8' from repository apache-ws-snapshots2 (http://ws.zones.apache.org/repository2): Authorization failed: Access denied to: http://ws.zones.apache.org/repository2/com/sun/xml/fastinfoset/FastInfoset/1.1.8/FastInfoset-1.1.8.jar Downloading: http://tomcat.apache.org/dev/dist/m2-repository/com/sun/xml/fastinfoset/FastInfoset/1.1.8/FastInfoset-1.1.8.jar [INFO] Unable to find resource 'com.sun.xml.fastinfoset:FastInfoset:jar:1.1.8' in repository tomcat-repository (http://tomcat.apache.org/dev/dist/m2-repository) Downloading: http://repo1.maven.org/eclipse/com/sun/xml/fastinfoset/FastInfoset/1.1.8/FastInfoset-1.1.8.jar [INFO] Unable to find resource 'com.sun.xml.fastinfoset:FastInfoset:jar:1.1.8' in repository eclipse-repo ( http://repo1.maven.org/eclipse) Downloading: http://download.java.net/maven/1/com.sun.xml.fastinfoset/jars/FastInfoset-1.1.8.jar [INFO] Unable to find resource 'com.sun.xml.fastinfoset:FastInfoset:jar:1.1.8' in repository java.net ( http://download.java.net/maven/1) Downloading: http://repo1.maven.org/maven2/com/sun/xml/fastinfoset/FastInfoset/1.1.8/FastInfoset-1.1.8.jar [INFO] Unable to find resource 'com.sun.xml.fastinfoset:FastInfoset:jar:1.1.8' in repository central ( http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) com.sun.xml.fastinfoset:FastInfoset:jar:1.1.8 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.sun.xml.fastinfoset -DartifactId=FastInfoset -Dversion=1.1.8 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.sun.xml.fastinfoset -DartifactId=FastInfoset -Dversion=1.1.8 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.axis2:axis2-fastinfoset:jar:SNAPSHOT 2) com.sun.xml.fastinfoset:FastInfoset:jar:1.1.8 -- 1 required artifact is missing. for artifact: org.apache.axis2:axis2-fastinfoset:jar:SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), eclipse-repo (http://repo1.maven.org/eclipse), java.net (http://download.java.net/maven/1), tomcat-repository (http://tomcat.apache.org/dev/dist/m2-repository), apache.snapshots (http://repository.apache.org/snapshots), apache-ws-snapshots2 (http://ws.zones.apache.org/repository2) i really appreciate if anyone can give advice regarding this. thanks regards, Chamara silva
Please help for deploying Axis2 on SunOne Server
Dear all, I am deploying Axis2 1.5 on SunOne 6.1 sp10 server. But I am having problems due to clustering configuration in axis2.xml. Somehow, Axis2 is running depending on Apache Tomcat. Since, my service can work without any problem on Apache Tomcat server but not on SunOne server. When I deployed it on SunOne server it is giving an exception as below: javax.servlet.ServletException: WEB2778: Servlet.init() for servlet AxisServlet threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:949) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3553) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3841) at com.iplanet.ias.web.WebModule.start(WebModule.java:260) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardHost.start(StandardHost.java:652) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355) at org.apache.catalina.startup.Embedded.start(Embedded.java:995) at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431) at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500) at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161) - Root Cause - *java.lang.NoClassDefFoundError: org/apache/catalina/tribes/ChannelException * at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.apache.axis2.deployment.ClusterBuilder.buildCluster(ClusterBuilder.java:71) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:181) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:641) at org.apache.axis2.deployment.WarBasedAxisConfigurator.init(WarBasedAxisConfigurator.java:157) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3553) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3841) at com.iplanet.ias.web.WebModule.start(WebModule.java:260) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardHost.start(StandardHost.java:652) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355) at org.apache.catalina.startup.Embedded.start(Embedded.java:995) at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431) at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500) at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161) Caused by: java.lang.ClassNotFoundException: org.apache.catalina.tribes.ChannelException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1465) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1301) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 21 more *if I copy catalina-tribes.jar, which contains *ChannelException class,*file from Apache Tomcat to my webapp's lib directory on SunOne, I am getting another type of exception as below: * failure ( 8636): for host 10.1.5.15 trying to GET /TESTCM/services/ABCServices22/getUserInformation, service-j2ee reports: StandardWrapperValve[AxisServlet]: WEB2792: Servlet.service() for servlet AxisServlet threw exception java.lang.NullPointerException at org.apache.axis2.clustering.context.DefaultContextManager.updateContexts(DefaultContextManager.java:81) at org.apache.axis2.clustering.context.Replicator.replicate(Replicator.java:81) at org.apache.axis2.receivers.AbstractMessageReceiver.replicateState(AbstractMessageReceiver.java:71) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:41) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136) at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130) at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829) at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255) at
Invoke with token
Hi I think I have tried with CXF and not with Axis2. Looks like both are from Apache. Being a newbie to Java as well as web service, can anyone guide with creating java class from the wsdl and the xsd files please? Also is it possible to invoke the web service by adding dynamic token? Thanks, Suma This email was sent to you by Thomson Reuters, the global news and information company. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.
Re: Problems when calling getOMElement
Hi Anybody did this, go from adb object through a xslt transfomation? Or having problem getting values out from a XML message when the tyep attribute is used for the data type of the element. cheers, Håkon 2009/11/18 Håkon Sagehaug hakon.sageh...@bccs.uib.no Hi To provide more information, we want to do xslt transformation to our generated client side object. And as far as I know we need the OmElement of the generated type to do so, but when this don't give back the values just the XML with no values, there is not much to transform. So we need a hint on how this can be done. cheers, håkon 2009/11/18 Håkon Sagehaug hakon.sageh...@bccs.uib.no Hi all, Any tips on this. stange if it won't work? 2009/11/17 Håkon Sagehaug hakon.sageh...@bccs.uib.no Hi all, I've got a client that calls a ws and using adb as the databinding(client side), then we want to get a string representation of the obejct. We execute object.getOMElement(), the method returns only the xml element and not the actual value inside the element. So this element here ns2:BlastOutput_program xsi:type=ns2:BlastOutput_ programblastp/ns2:BlastOutput_program Would returns this string ns2:BlastOutput_program/ns2:BlastOutput_program We where wondering if it had anything to to with the xsi:type attribute? Any tips on how to solve this, or another way of getting a string representatioon of the object using adb as the databinding? cheers, Håkon -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) hakon.sageh...@bccs.uib.no, phone +47 55584125 -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) hakon.sageh...@bccs.uib.no, phone +47 55584125 -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) hakon.sageh...@bccs.uib.no, phone +47 55584125 -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) hakon.sageh...@bccs.uib.no, phone +47 55584125
Axiom exception in weblogic 10.3
Hi All, I am running axis2 1.4 webservices in weblogic 10.3. I am getting following error: *org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: Error at Line:12, token:[OPENTAGBEGIN]Unbalanced ELEMENT got:args expected:return* Any idea what is going wrong here? Same app works fine in tomcat 5.0 with jdk 1.5. I am using jrockit 1.6 in weblogic 10.3. Chinmoy
Re: Problems when calling getOMElement
Håkon, I think you need to give a bit more context. What version of Axis2? What version of Axiom? Code snippet showing what you are trying to do, etc. Andreas 2009/11/19 Håkon Sagehaug hakon.sageh...@bccs.uib.no: Hi Anybody did this, go from adb object through a xslt transfomation? Or having problem getting values out from a XML message when the tyep attribute is used for the data type of the element. cheers, Håkon 2009/11/18 Håkon Sagehaug hakon.sageh...@bccs.uib.no Hi To provide more information, we want to do xslt transformation to our generated client side object. And as far as I know we need the OmElement of the generated type to do so, but when this don't give back the values just the XML with no values, there is not much to transform. So we need a hint on how this can be done. cheers, håkon 2009/11/18 Håkon Sagehaug hakon.sageh...@bccs.uib.no Hi all, Any tips on this. stange if it won't work? 2009/11/17 Håkon Sagehaug hakon.sageh...@bccs.uib.no Hi all, I've got a client that calls a ws and using adb as the databinding(client side), then we want to get a string representation of the obejct. We execute object.getOMElement(), the method returns only the xml element and not the actual value inside the element. So this element here ns2:BlastOutput_program xsi:type=ns2:BlastOutput_ programblastp/ns2:BlastOutput_program Would returns this string ns2:BlastOutput_program/ns2:BlastOutput_program We where wondering if it had anything to to with the xsi:type attribute? Any tips on how to solve this, or another way of getting a string representatioon of the object using adb as the databinding? cheers, Håkon -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) hakon.sageh...@bccs.uib.no, phone +47 55584125 -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) hakon.sageh...@bccs.uib.no, phone +47 55584125 -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) hakon.sageh...@bccs.uib.no, phone +47 55584125 -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company) hakon.sageh...@bccs.uib.no, phone +47 55584125
Re: AXIS2 Rampart
You may find [1] helpful. Thanks regards. -Prabath [1]:http://blog.rampartfaq.com/2009/11/how-to-generate-non-secure-response-to.html Priyanka Kapoor wrote: Hi Everyone, I am using Rampart 1.4 with axis 1.5.1. I was trying the Rampart samples and everything was fine. I could able to see the message flows in the TCPMon. I want to know whether the responses from the server can be a normal soap message without the WSSE headers and stuffs..? Inshort i am looking for the following Original response from the rampart sample02 example: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Wed, 18 Nov 2009 03:10:28 GMT a21 ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header xmlns:wsa=http://www.w3.org/2005/08/addressing; wsse:Security xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd; soapenv:mustUnderstand=1 wsu:Timestamp xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; wsu:Id=Timestamp-7050181 wsu:Created2009-11-18T03:10:28.442Z/wsu:Created wsu:Expires2009-11-18T03:15:28.442Z/wsu:Expires /wsu:Timestamp ds:Signature xmlns:ds=http://www.w3.org/2000/09/xmldsig#; Id=Signature-32702517 ds:SignedInfo ds:CanonicalizationMethod Algorithm=http://www.w3.org/2001/10/xml-exc-c14n#; / ds:SignatureMethod Algorithm=http://www.w3.org/2000/09/xmldsig#rsa-sha1; / ds:Reference URI=#Id-11700608 ds:Transforms ds:Transform Algorithm=http://www.w3.org/2001/10/xml-exc-c14n#; / /ds:Transforms ds:DigestMethod Algorithm=http://www.w3.org/2000/09/xmldsig#sha1; / ds:DigestValue7/rKSmTf7Qz8bOYFO5QslyTkBcM=/ds:DigestValue /ds:Reference ds:Reference URI=#Timestamp-7050181 ds:Transforms ds:Transform Algorithm=http://www.w3.org/2001/10/xml-exc-c14n#; / /ds:Transforms ds:DigestMethod Algorithm=http://www.w3.org/2000/09/xmldsig#sha1; / ds:DigestValuexy8fI5lMqIsXkcpD5u/KxAsHGTU=/ds:DigestValue /ds:Reference /ds:SignedInfo ds:SignatureValueVYr5h4Ovmlh6KKGBfCyow7c7U/OC9GQqMe8ShpQOXpnzP8ZpCm/LqOTx0jsXQxnhUp3mn28TEclzFO1aKRcyjW/aOju3d4ilHAL1pHubtt1Isu4jP0w4YdVnmFQRAf1nFqLaYRxt2pkJN1N1crvs1u9HBqe/TFkvD0p98tqTAf8=/ds:SignatureValue ds:KeyInfo Id=KeyId-9613092 wsse:SecurityTokenReference xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; wsu:Id=STRId-2653016 wsse:KeyIdentifier EncodingType=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary; ValueType=http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#ThumbprintSHA1;HYL371NzoOs2+IA24VDkBGcUFQM=/wsse:KeyIdentifier /wsse:SecurityTokenReference /ds:KeyInfo /ds:Signature /wsse:Security wsa:Actionurn:echoResponse/wsa:Action wsa:RelatesTourn:uuid:F5BB27586B814675051258513827527/wsa:RelatesTo /soapenv:Header soapenv:Body xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; wsu:Id=Id-11700608 ns:echoResponse xmlns:ns=http://sample02.policy.samples.rampart.apache.org; ns:returnHello world/ns:return /ns:echoResponse /soapenv:Body /soapenv:Envelope Needed simple response: ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; p1:testHeader xmlns:v1=http://..; p1:valuevalue123/p1:value /p1:testHeader /soapenv:Header soapenv:Body xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; p2:testResponse xmlns:p2=http://../ result success /result /p2:testResponse /soapenv:Body /soapenv:Envelope I thought of using a Outflowhandler to detach the header,body as well and add a new customized SOAP envelope in the same handler..Does it sound good..? I am in a dilemma since the service would have already secured the message using the keys and the policies... Can someone tell me how to proceed to achieve this simple response..? Regards, Priyanka
[axis2] Need help with HTTPS
I am trying to figure out how to use HTTPS with Apache2-1.5. First of al I have used the binary distribution and do not know if it supports SSL. Second: I have jdk1.6 build 17 and in document http://hc.apache.org/httpclient-3.x/sslguide.html it says that it should have the proper JSSE support already. I do not know however if it uses same certificate and keys as openssl. I assumed that (after I have ran axis2server.sh) I should be able to access https://localhost:8080 -failed while http://localhost:8080 works fine. Tried https://localhost:443 - failed. Tried to modify axis2.xml to have transportReceiver name=https class=org.apache.axis2.transport.http.SimpleHTTPServer parameter name=port8080/parameter It did not help either. How to setup SSL with apache? Help!!! OpenSSL seems to be working. At least with self-certification and openssl client and server test. Thanks Vadim. From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Wednesday, August 12, 2009 8:01 AM To: axis-user@ws.apache.org Subject: RE: error sending S/MIME 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 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 /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 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
Re: [axis2] Need help with HTTPS
On Fri, Nov 20, 2009 at 7:08 AM, Vadim Letitchevski vletitchev...@teledyne.com wrote: I am trying to figure out how to use HTTPS with Apache2-1.5. First of al I have used the binary distribution and do not know if it supports SSL. Second: I have jdk1.6 build 17 and in document http://hc.apache.org/httpclient-3.x/sslguide.html it says that it should have the proper JSSE support already. I do not know however if it uses same certificate and keys as openssl. I assumed that (after I have ran axis2server.sh) I should be able to access https://localhost:8080 -failed while http://localhost:8080 works fine. Tried https://localhost:443 - failed. Tried to modify axis2.xml to have transportReceiver name=https class=org.apache.axis2.transport.http.SimpleHTTPServer parameter name=port8080/parameter try to deploy the axis2.war in tomcat (or any other application server). And configure the https as given in the tomcat documentation. Then you will be able to expose your services through https. thanks, Amila. It did not help either. How to setup SSL with apache? Help!!! OpenSSL seems to be working. At least with self-certification and openssl client and server test. Thanks Vadim. -- *From:* Martin Gainty [mailto:mgai...@hotmail.com] *Sent:* Wednesday, August 12, 2009 8:01 AM *To:* axis-user@ws.apache.org *Subject:* RE: error sending S/MIME 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 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 /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 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:
errors when use maven2 to download axiom
I use maven2 and axis 1.5. I always get error to download axiom with checking error. what should I change? -- Haipeng Du Salt Lake City