axis2

Are Axis2 generated stubs thread-safe?

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 sin...

tell wsdl2java not to generate code if file is not modified since last code was generated

basically i am using ant to generate webservice client and server stubs. We don't change wsdl as frequently as our java code. But since wsdl2java generated code is always new, javac target always compiles code (too slow). Is there a way to tell wsdl2java task that gensrc is not modified so don't generate code ? ...

any way to use axis2 client web services w/o generating a stub class?

are there any approaches for leveraging a java interface file to call an axis web service w/o generating a stub class? We control both sides (client and server). ...

Server name in XML response message?

Hi there, guys! I'm currently developing a set of webservices in Java, to host on Axis2 running over WebLogic 10.3.0. These webservices receive and return SOAP messages. As I have a clustered environment on WebLogic, I would like to have the WebLogic's server name (the one I configured using the Administration Console) returned in the ...

How to develop an asynchronous web service in Netbeans?

Hi, Netbeans has a very nice setup for creating and testing synchronous web services with Axis2. However, I'd like to develop an asynchronous web service in Axis2, again in Netbeans. Is there a link somewhere I can look at? Is my best bet to check the example code in the Axis2 distribution? Thanks! ...

Which is better in this case - sync or async web service?

I'm setting up a web service in Axis2 whose job it will be to take a bunch of XML and put it on to a queue to be processed later. I understand its possible to set up a client to invoke a synchronous web service asynchronously by creating a using an "invokeNonBlocking" operation on the "Call" instance. (ref http://onjava.com/pub/a/onjava...

Web service client code generation problem (with Axis 2 )

Hello I need to generate a Java Client. I tried wsdl2java from Apache CXF Project, it returns "a Null pointer exception" when I give it an http link to a wsdl file. I also tried the Axis2 Codegen plugin for eclipse. It cannot generate a client stub and prints an error that it cannot resolve a relative path to an .xsd file. The provider ...

Eclipse is very slow when using Code Assist (org.eclipse.mylyn.java.ui.javaAllCompletionProposalComputer)

Can you guess what happens? I generated a client stub using Eclipse WTP [Axis2] and while working on a client I get Eclipse working very slowly when it tries to use Code Assist, that is, press a dot to get a list of methods, there's up to 30 seconds hang-ups of the workbench. eclipse.buildId=M20090917-0800 java.version=1.6.0_15 java.ve...

Apache axis error cannot find services.xml

When I try to restart the apache tomcat server it throws the error. org.apache.axis2.deployment.DeploymentException: The services.xml file cannot be found for the service: {0} The wsdl generated is actually blank and only contains the description from the services.xml file which does indeed exist under META-INF. I am using eclipse,...

How can I run intialization code during axis2 startup?

I have a 3rd party library that I use in my webapp. I need to call an init method from this library during axis2 startup. I can't wait until the first request comes in - it must be done at startup. ...

Can all parameters from axis2.xml be overridden in services.xml

I've trying to move parameters from axis2.xml to be specific to a single service by putting them in services.xml I've tried this by moving false and it doesn't work. Any tips on what I'm doing wrong? Is there any reason why parameters can't be moved in this way? ...

Can Axis2 expose a web service from a plain old Java program?

I need to modify an existing Java SE process to expose a web service. I notice that ApacheCXF can expose web services from a Java SE process, but my company is pushing me strongly towards using Axis2. All the examples seem to assume you're running a fully-fledged servlet container. But since Java SE 6 includes com.sun.net.httpserver,...

JAX WS RI 2.1.6 Error: org.xml.sax.SAXParseException: '*_Type' is already defined

I'm using JAX-WS RI 2.1.6 (wsimport/JAXB) for data binding and for generating Java classes. However, I'm getting several of these errors: org.xml.sax.SAXParseException: '*_Type' is already defined at com.sun.xml.internal.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:165) at com.sun.xml.internal.xsom.impl.parser.NGCCRun...

Packaging a Spring managed Axis2 web service client

I've created a web service client using Axis2. I would like to package the client into a jar, so I can use it in several other projects. The client uses the Axis2 WS-Security module 'rampart'. This module, rampart.mar (not a typo!) has to be present on the Axis 'repository path', in a directory called 'modules'. The client also requires ...

WSDLException : An error occurred trying to resolve schema referenced at ...

Hello i'm trying to generate a proxy class from a local wsdl file with eclipse Galileo and axis 2 1.4 on windows xp . My problem is that i get an error due to an imported schema inside the wsdl . The line tha troubles me is : <xsd:import namespace="http://www.w3.org/2005/05/xmlmime" schemaLocation="http://www.w3.org/2005/05/xmlmime"/&g...

How to port WCF RESTful web service to Axis 2/C (or WSO C++)

We are looking at redoing some web service applications (currently in prototype phase) from WCF/C# to a C++ cross platform web service framework. So, I'm looking at Axis2/C or WSO2 WSF/C++ as possible frameworks. I'd really like to port the functionality already written in the WCF service to the other service frameworks. Here's the fu...

Consuming WebServices in Java

We are building a web-application and a significant portion of the project will be making real time calls from our servlets to some back end webservices. Some of these calls will be cached depending on the context. We will also have a reqiurement to handle incoming double byte character strings for languages such as Hebrew and CJK. ...

How can I setup dependencies for Axis2 / Axiom on Maven2

I've tried the following settings on pom.xml to use Axis2 wsdl2code: <dependencies> <dependency> <groupId>org.apache.axis2</groupId> <artifactId>axis2</artifactId> <version>1.5.1</version> </dependency> </dependencies> ... <build> <plugins> <plugin> <groupId>org.apache.axis2</groupId> <artifactId>axis2-ws...

how can I share proxy objects across multiple Axis2 web service clients?

I have several WCF services that I want to access from a Java client. The services have some complex data contracts used across multiple services. I want to be able to generate client code that will allow me to share the objects generated from the data contracts across all the services. Basically I want to be able to retrieve data fro...

AXIS2 How to set connection retry??

It seems that the Axis admin client org.apache.axis2.client.ServiceClient is issuing org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry() and the retry is like 3 times by default. Is there a way to set to not do retries? My code: ServiceClient client = new ServiceClient(); Options opts = new Options(); ...