views:

493

answers:

1

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 settings?

+1  A: 

I believe that the axis2.xml file location can specified as a jvm property parameter:

java MyApp -Daxis2.xml="location of axis2.xml"

or by creating a ConfigurationContext using a ConfigurationContextFactory and passing this to the ServiceClient constructor

stjohnroe