Hi, everyone:
I am working to write a web service client and have a customized
client-axis2.xml.
I used the following code to get a ConfigurationContext object:
ConfigurationContext ctx =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(".",
"conf/client.axis2.xml");
Now I put the client.axis2.xml in a jar file rather than file system. The
sturcture of the jar file looks like:
0 Wed Jun 24 17:42:44 PDT 2009 META-INF/
106 Wed Jun 24 17:42:42 PDT 2009 META-INF/MANIFEST.MF
0 Wed Jun 24 17:42:42 PDT 2009 org/
0 Wed Jun 24 17:42:42 PDT 2009 org/kepler/
0 Wed Jun 24 17:42:42 PDT 2009 org/kepler/executionWS/
0 Wed Jun 24 17:42:44 PDT 2009 org/kepler/executionWS/client/
25777 Wed Jun 24 17:42:44 PDT 2009 client.axis2.xml
2210 Wed Jun 24 17:42:42 PDT 2009 log4j.properties
27832 Wed Jun 24 17:42:44 PDT 2009
org/kepler/executionWS/client/KeplerExeWSClient.class
How can the client class KeplerExeWSClient get a
ConfigurationContext object? Use the method
ConfigurationContextFactory.createConfigurationContextFromURIs(axis2xml,
repositoy)?
Thank you very much for the help!
Jing
Jing Tao
National Center for Ecological
Analysis and Synthesis (NCEAS)
735 State St. Suite 204
Santa Barbara, CA 93101