Browsing All Posts published on »January, 2008«

Wrong order of inherinted attributes in Axis2

January 21, 2008

1

I found a bug in Axis2 which prevents .NET client accessing inherited attributes defined in super class. This is due to the sequence of elements in generated response is not correct. Basically based on the WSDL generated by Axis2, attributes from super class should be appended first and sorted, then attributes from subclass. Clearly, Axis2 appends attributes in a wrong order, it tries to add attributes from subclass first. The BeanUtil class is responsible to generate SOAP response for ADB and POJO styled web service, therefore I made a modification to this class as follows.

How to configure services.xml for Axis2 web services

January 17, 2008

0

This tutorial by Deepal Jayasinghe mainly focuses on how to write a service configuration file or services.xml for Apache Axis2/Java from scratch. He covers all the applicable syntax in the services.xml file as well as their proper usage. Click here to read more.

Load a class from an AAR in Axis2

January 8, 2008

0

Each service is loaded by its own classloader in Axis2, in order to get classes defined in for example AAR package, you need to have service class loader first: 1: public static ClassLoader getServiceClassLoader() { 2: MessageContext ctx = MessageContext.getCurrentMessageContext(); 3: return ctx.getAxisService().getClassLoader(); 4: }

Reflection on primitive types and their wrapper classes in Java SE 6

January 8, 2008

1

Since Java 5, we've got auto-boxing for primitive data types, remember this only works for primitive types not primitive arrays since arrays are considered as objects.

Configure HTTP proxy for Axis2 client

January 8, 2008

0

It’s just a matter of setting some properties before invoking the web service, see example below

How to get HTTPServletRequest object in Axis2

January 8, 2008

0

The following code demostrate how to get HTTPServletRequest object out of MessageContext in Axis2