axis2

How can I add a operation level handler in Axis2

Hello, I'm using the Axis2 Java web service engine and have written a server side handler for handling security for our application. The handler gets called when configured globally in axis2.xml, but doesn't get called when I apply it selectively on a per web service operation level. Here's a snippet from my services.xml where I tried ...

Writing a REST wrapper over AXIS2

Hi, I have an AXIS2 webservice already in place for my application. However, for an android mobile client, SOAP based webservices are too heavy. Hence, I am planning to wrap this webservice into RESTful webservice. To do this, 1. I ran wsimport on my wsdl to generate jaxb sources, since the ones I had were AXIS2 generated(with ADB). ...

Axis error about runtime location

The error is: Exception occurred while reading or writing file {0}The Axis2 facets cannot be installed since the Axis2 runtime location has not been set. Go to the Web Services preference page and set the Axis2 runtime location under Axis2 Preferences. In the preferences mentioned, the location is set correctly and in fact, it says "A...

Accessing a web service from your browser

I'm relatively new to how web services work so I've gone though a tutorial from http://blog.saminda.org/2008/07/light-weight-osgi-based-axis2-powered.html which sets up a web service that prints hello. The code to print out hello is here. In the same project here, there is another web service that adds two numbers together. To access...

Using Axis2 to login to SharePoint via Java using HTTPS

I'm trying to access a SharePoint server using Java (and Axis2 as the mechanism for creating classes from the WSDL). I can login and do some operation if the site is hosted through HTTP but through HTTPS it's failing. Does anyone have any experience doing this or know of a good resource for getting help with this? Thanks. ...

Axis2 NTLM retrieve default credentials from client

I am working on a J2EE client (1.4 JVM) that needs to consume a NTLM secured web service. We run our J2EE applications on Weblogic (8.1.4 in this case) on Windows which in turn runs under an NT service account. In the past, we have used the Weblogic clientgen capability to generate the client stub and handle the connections. This work...

Axis2 POJO asynchronous server call.

Hi i`m new to Axis2(and WS at all), i use POJO-oriented model, and i have one question. When i use serviceClient.invokeBlocking(...), i get back response via Object, but when i used asynchronous method invokeNonBlocking(...), in AxisCallback.onComplete(MessageContext), i receive MessageContext object. Is there any way to get serialized r...

Interoperability of Axis2

I have created a simple webservice using the POJO class in eclipse. One of the web had a custom class as a parameter. The issue that I faced was when I created a C++ client using gSoap client. The Webservice was not able to receive the custom class object and it was null. The WSDL used by gSoap was auto-generated by giving ?wsdl to the ...

Deployment problem with java axis2 web services

Hi We are having a problem deploying our webservices, built in eclipse using java/axis2. On local boxes and development servers some namespaces are generated as xmlns:ax21 & xmlns:ax23. But when deployed to test servers are xmlns:23 & xmlns:24. All servers are using identical java installs. This is causing problems with client apps t...

Data Binding in axis2

I want to create a simple webservice using Axis2 1.5.1. The expectations from the webservice is: 1. interoperability 2. interaction with custom objects Do i require to use any data binding (initially i thought of using ADB) or is deploying WS using POJO sufficient? Do we have enough documentation for the Data binding? Because Axis2 quick...

axis2 Web service. Where to put my own configuration

I have written a Web Service in Java using axis2 and the POJO deployment (to a Tomcat server). My service opens a connection to a MySQL database. To do that, I need the connection string. Where do I put the connection string, so I don't have to hard code it into the code? And how do I access it from code? I would like to set this paramet...

How to set Axis2 Web Service Client configuration using axis2.xml?

The documentation for Axis2 mentions axis2.xml file for configuration transport settings. However I could not seem to set transport type from HTTP/1.1 to HTTP/1.0 without chunking. I have put axis2.xml file in the classpath, in the same directory but no luck. Where should I put this configuration file in order to change the transport set...

How to use WSDL2Java generated files?

I generated the .java files using wsdl2java found in axis2-1.5. Now it generated the files in this folder structure: src/net/mycompany/www/services/ The files in the services folder are: SessionIntegrationStub and SessionIntegrationCallbackHandler. I would like to consume the webservice now. I added the net folder to the CLASSPATH env...

Calling axis2 web service from xfire client: The endpoint reference (EPR) for the Operation not found

I need to call axis2 web service with ws-security (username token) from xfire client over https. I could do the exercise via xfire dynamic client, but no luck with wsdl base client (i.e. generate java stub from wsdl). Could anybody point me out what could be wrong (stub, ws-security something else)? Exception: Exception in thread "m...

Glassfish War deployment Jar not loaded

I have a very annoying problem. So I want to include 2 jar files in my java web application (.war file) - to be loaded on glassfish version 2.1. The files are: axis2-adb-1.4.1.jar and wstx-asl-3.2.4.jar. In my console application, I simply add these to my classpath and they run fine. However, when I deploy this to glassfish (jars are...

Can't consume webservice from Java

I created the webservice stubs using axis2-1.5's wsdl2java.bat. This created a src folder with the following structure in it: src/net/mycompany/www/services/SessionIntegrationStub.java The package of the SessionIntegration.java file is: package net.mycompany.www.services; Now, I am trying to use this stub in my java code. I placed my...

Axis2 wont work in Netbeans

I am unable to get Axis2 to work on my NetBeans 6.5. I have everything that written here http://netbeans.org/kb/61/websvc/gs-axis.html I am using embedded tomcat of Netbeans. So the problem I am getting is that I can see tomcat welcome page at http://localhost:8084/ but at http://localhost:8084/axis2/ I am getting HTTP Status 404. ...

Axis2 / Rampart: How to make sure that a 401 is send on failed authentication

I have a web service using Axis2 (1.4.1) with Rampart for the security. When authentication fails, Axis2 will throw an exception internally and respond with http status 200. Is there a way to configure Axis2 or Rampart to responds properly with a 401 (Unauthorized)? Maybe somebody can give a hint what/where to look for? I looked throu...

XMLBeans - xsi:type stripped using Axis2 and Tomcat?

I’m new to XMLBeans and have been trying to use it to create an XML document as part of an axis2 web service. When I run my code as a standard Java application or as a standard servlet, the XML is correctly generated: <?xml version="1.0" encoding="UTF-8"?> <c:BroadsoftDocument protocol="OCI" xmlns:c="C"> <sessionId>000000001</sessionId...

error while deploying java webservice

Could someone help me on this, i have created simple java webservice using java1.6 , apache-tomcat-6.0.20 and axis2-1.4.1 while deplying this application , it returns following error message, SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurr...