axis2

override endpoint in axis2 by configuration

Description of the problem: Several Web Services that will be deployed in Websphere, Weblogic and Jboss. Jboss uses axis2, the others don't. I want to have only one wsdl per Web service. I want to keep the same endpoint/url across the different target platforms. At the moment the wsdls are different (basically the name of the service t...

Axis2 empty array

Hi, I recive null insted of empty array on the client side when my POJO axis2 method returns empty array. I understand that the problem is in WSDL. Is there is any way to configure axis2 to generate valid WSDL? I create axis2 service programmatically: ConfigurationContext context = ConfigurationContextFactory.createConfigurationContext...

Hibernate configuration files not found by Axis2

I am writing a web service to be deployed on Tomcat using Axis2. I am using Hibernate3 to persist data between the web service and a MySQL database. When running the application through by IDE, the method I am exposing through Axis2 works as intended, however when I deploy the .aar to Tomcat, I receive a SOAP Error claiming that hiberna...

wsdl interoperability problems

I wrote a .asmx web service which I'm trying to consume from a java client. I'm using axis2's wsdl2java to generate code. But it says that the wsdl is invalid. What exactly is the problem here? It is .net which generated the wsdl automatically after all. Are there problems with wsdl standards, rather the lack of them? What can I do now? ...

axis2 doesn't return xml-response according to given WSDL

hi, I've got a problem with axis2' backward compatibility. The problem is next: there's need to migrate from axis1 on axis2 w/o changing clients. Since I have WSDL this must not be a problem. Right? So, the only things to do: adjust axis2' stuff like libraries and configuration infrastructure. I created all required infrastructure: ...

Web services - WSDL to Java - Extending only skeleton file?

I have converted a WSDL file to generate Java code (with Axis2)that will be deployed as web service. Do I only need to implement and extend the skeleton file generated? Or, can I edit and extend other classes too? I fear modifying other files will result in some mismatch between the WSDL and Java code. ...

Eclipse WTP, Axis 2 Web Service Client

Hi, I'm trying to build a web service and a client for this service. I'm using Eclipse 3.5.1 with axis2-1.4.1. I'm facing a problem: I created the web service via the web service wizard and the service shows up in the axis service list. If I porint to the wsdl - its generated. Now when I'm trying to build the client, I choose the wsdl...

axis2 web service behave differently when tested with web service client or with local test class

Hello I need to update a facade to some web service proxy classes to a third party web service, and expose them as a service. This for two reason : to maintain the same interface for all application that need to use the system : actually its migrating and there are a few differences in the third party ws (method names); and to expose a ...

Web service client receiving generic FaultException rather than FaultException<T>

I am connecting to a Java Axis2 web service using a .NET web service client. The client itself targets the .NET 3.5 framework. The application that wraps the client DLL is 2.0. I'm not sure if that has any bearing. I have been given the WSDL and XSDs by email. From those I have built my proxy class using svcutil. Although I am able to s...

Where to put a configuration file for an Axis2 web service?

I'd like to have my Axis2 Web Service read from a configuration file, whose name is sent as a parameter to the service. Where is the best place to put this file? And How to best access it? Examples welcome. I've checked the current directory is the Apache/Tomcat/bin file, I could put it in the parent directory, or put it into a Apache/...

Apache Axis2 tried books

I am looking to get my hands wet in Java Web Services. Apache CXF and Axis2 seem to be in demand a lot. I googled a bit for finding a good Axis2 book that has lot of working examples. some books like Quick Start Apache Axis 2 seem to have bad reviews on Amazon and titles like Web Services with Apache CXF and Axis2 seem to lack working...

Removing Nillable="true" while generating WSDL

I'm creating a web services and generating a contract (WSDL) with Axis2 like a POJO web service which is in turn giving me an output like this <xs:element minOccurs="0" name="acHolderName" nillable="true" type="xs:string"/> Whereas the required one is this <xs:element minOccurs="0" name="acHolderName" type="xs:string"/> Is there any ...

How to write web services in java

Though this might appear as a duplicate of Java Web Services , I would like to know Where to start and to continue.In the past, I have invested so much of time to find where to start but I wasn't able to. There are so many jargons and chaos (at least for me!) while reading the pages about web services. There are so many terms - like JAX-...

run webservice jax-ws client in a web app under tomcat

All service classes in my case extend javax.xml.ws.Service. But real invocations as I see work through 3-rd party libraries under the hood. In my case tomcat uses Axis2. First I should ask, what jars Tomcat uses to run a web-service? Second, is there a way to change them? Third, what does this exception mean? It needs another jar fi...

Java reading xml element without prefix but within the scope of a namespace

Functionally, the two blocks should be the same <soapenv:Body> <ns1:login xmlns:ns1="urn:soap.sof.com"> <userInfo> <username>superuser</username> <password>qapass</password> </userInfo> </ns1:login> </soapenv:Body> ----------------------- <soapenv:Body> <ns1:login xmlns:ns1="urn:soap.sof.com"> <ns1:userIn...

How to enforce a namespace in wsdl for inner elements

I am looking at an example WSDL <definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://mypackage/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="h...

Why would I want to use anything other than WCF?

After completing several small projects with WCF, I'm quite happy with what it can do. However, having spent a brief amount of time looking into the alternatives, I'm struggling to find exactly what benefits/drawbacks I would experience from using Java based web services such as AXIS2 or Metro? Obviously open-source is perhaps one of t...

how to make axis2 return gzipped response

By default axis2 returns regular(plain text xml) response. My goal - find some cfg property to make axis2 return gzipped response. Anybody? Thanks! ...

Dependencies for Axis2 1.5.1 generated stubs

Hi, I have server side java stubs created with wsdl2java from axis2 1.5.1. I'm trying to integrate these stubs into the grander application, but I'm having a heck of a time getting the axis2 1.5.1 dependencies down. Im using Maven2 to control dependencies. As of now I am loading most dependencies from a local library directory with all...

I need jax-ws runtime on Tomcat. Is it ok to put "jax-ws/lib/*" to "tomcat/lib" ?

I need jax-ws runtime on Tomcat. Is it ok to put "jax-ws/lib/*" to "tomcat/lib" ? Does one need any axis, axis2 libs in tomcat if he puts jax-ws/lib into tomcat/lib? At least, any of axis*.jar are needed for Tomcat to function properly? ...