RE: How to get ConfigurationContext from a xml file which is in a jar file

2009-06-26 Thread Li, Zhenge
Tao, If the config file is in your classpath or can be found in the jar which is in your classpath, you can try below code block. ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); String name = "path-to-your-axis2.xml" Axis2ConfigUrl = classLoader.getResource(name); this

RE: comparison of different databinding

2009-04-22 Thread Li, Zhenge
Hi Sudhir, I ran into below links a while ago. Some charts in: http://wso2.org/library/588 Comments by Mark D. Hansen, Author of "SOA Using Java Web Services". http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=5 1&t=004657

RE: Getting the Content Lenth of The SOAP Response

2009-04-22 Thread Li, Zhenge
Chunking can be turned off by tuning the org.apache.axis2.transport.http.HTTPConstants.CHUNKED constant. Options options = new org.apache.axis2.client.Options.Options(); ... options.setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKE D, false); ServiceClient client = stub._getS

RE: How to monitor SOAP messages in the Client without changing the server?

2009-04-22 Thread Li, Zhenge
SoapMonitor module can work on client side too. You just need to modify src/org/apache/axis2/handlers/soapmonitor/SOAPMonitorHandler.java to switch IN with OUT for client side monitoring. You can deploy it the same way as you do with any other modules and change you client to use it - I inserted s

RE: [axis2] Automatic schema validation

2008-10-02 Thread Li, Zhenge
The Axis2 soap monitor module is a perfect example on how to write a handler. Just download the code from http://ws.apache.org/axis2/modules/index.html and you'll be able make the monitor work within half an hour. Then the monitor module can be easily customized for schema validation, I believe.