axis2

Are Axis2 generated stubs thread-safe?

落花浮王杯 提交于 2019-11-27 13:00:07
问题 Are client stubs generated from WSDL by Axis2 thread-safe? Of course, "thread-safe" isn't necessary a rigorously defined term, so I'm at least interested in the following: Are different instances of the same stub class accessible concurrently by different threads, with the same effective behavior as single-threaded execution? Is a single instance of the same stub class accessible concurrently by different threads, with the same effective behavior as the same calls interleaved in some

Axis2 - always getting 404 errors

不问归期 提交于 2019-11-27 06:13:32
问题 I'm trying to move some Web Service stubs from Metro to Axis2, however after generating my stubs using wsdl2java I'm constently getting 404 errors whenever I try and make a service call. 16/12/2010 11:14:57 AM org.apache.axis2.deployment.ModuleDeployer deploy INFO: Deploying module: addressing-1.5.3-jar - file:/C:/Users/xxx/.m2/repository/org/apache/axis2/axis2/1.5.3/axis2-1.5.3-jar.jar 16/12/2010 11:14:57 AM org.apache.axis2.transport.http.HTTPSender sendViaPost INFO: Unable to sendViaPost

Exception occurred during code generation for the WSDL : java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/utils/NamespacePrefixList

五迷三道 提交于 2019-11-27 05:50:19
问题 I am using Tomcat 7 server and Axis 2 1.7 runtime in eclipse. I have a WSDL file which is generated in Axis 2. so go for Topdown approach to generate a webservice class (skeleton). I selected my configuration as Axis in server run time. when tried to click finish it is showing following error: " Exception occurred during code generation for the WSDL : java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/utils/NamespacePrefixList " I thought it is a jar miss so i first included

Error in WCF client consuming Axis 2 web service with WS-Security UsernameToken PasswordDigest authentication scheme

断了今生、忘了曾经 提交于 2019-11-27 04:32:40
I have a WCF client connecting to a Java based Axis2 web service (outside my control). It is about to have WS-Security applied to it, and I need to fix the .NET client. However, I am struggling to provide the correct authentication. I am aware that WSE 3.0 might make it easier, but I would prefer not to revert to an obsolete technology. Similar issues (unsolved), include this , this and this . The SOAP message should look like this: <wsse:UsernameToken> <wsse:Username><!-- Removed--></wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token

Serializing with JAXB and the Any

落花浮王杯 提交于 2019-11-27 03:23:19
问题 I have a schema that defines the following type: <xsd:complexType name="Payload"> <xsd:sequence> <xsd:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax"/> </xsd:sequence> </xsd:complexType> And that creates an object like so: @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Payload", propOrder = { "any" }) public class Payload { @XmlAnyElement(lax = true) protected List<Object> any; } Now I try adding another generated JAXB object to that Payload doing

Log axis2 client requests and responses

亡梦爱人 提交于 2019-11-27 00:56:22
问题 I would like to log all requests/responses made by an axis2 client. I tried to create a file called client-config.wsdd as describer in http://code.google.com/support/bin/answer.py?hl=en&answer=15137 but without success (I don't get a log file). Requests are made over https and I am not sure if it matters. I tried <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/> and <transport name="https" pivot="java:org.apache.axis.transport.http.HTTPSender"/> without success.

Difference between JAX-WS, Axis2 and CXF

天涯浪子 提交于 2019-11-26 23:53:08
问题 What is the difference between: JAX-WS Axis2 CXF All three can be used to create webservices in Java. As of I know JAX-WS is a specification and Axis2 and CXF are implementations, but Java 1.6 has implementation of JAX-WS if I am not wrong. So one can use Java 1.6 to develop JAX-WS web services without using Axis2 or CXF? Then what is the use of Axis2, CXF? 回答1: The JAX-WS implementation built into the JDK really is just the basic soap stuff. If you need any of the more complex WS-* things

The endpoint reference (EPR) for the Operation not found is

∥☆過路亽.° 提交于 2019-11-26 23:34:39
问题 I have been struggling with the following error the last couple of days can you please help! I generated my server and client code using the wsdl2java tool from a wsdl 2.0 file. When invoking the webservice I am getting the following error: org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not found is /axis2/services/MyService/authentication/?username=Denise345&password=xxxxx and the WSA Action = null My service is displayed on the axis2 webpage with all available

Difference between Apache CXF and Axis

Deadly 提交于 2019-11-26 23:26:11
What are the advantages of using Apache CXF over Apache Axis and vice versa? Keep in mind, I'm completely biased (PMC Chair of CXF), but my thoughts: From a strictly "can the project do what I need it to do" perspective, both are pretty equivalent. There some "edge case" things that CXF can do that Axis 2 cannot and vice versa. But for 90% of the use cases, either will work fine. Thus, it comes down to a bunch of other things other than "check box features". API - CXF pushes "standards based" API's (JAX-WS compliant) whereas Axis2 general goes toward proprietary things. That said, even CXF may

Can we implement method overloading in web service class?

别说谁变了你拦得住时间么 提交于 2019-11-26 21:37:59
问题 I would like to implement method overloading in the Java web service class as follows: public String myMethod(User user) { // My code } public String myMethod(User[] user) { for(int i=0; i<user.length; i++) { myMethod(user[i]); } } If I forward a single User object to myMethod() , it should trigger the first method and if I send an array of User s, it should trigger the second method. In the WSDL file it shows only a single method. However, if I try to call @WebMethod(operationName="") for