axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <>
Subject RE: axis2 client width Complex objects or Collection
Date Sat, 18 Jul 2015 00:37:35 GMT
use the provided xmlbeans working template to first generate axis service xmlbeans.aar and
write the client to ensure proper formatting of xmlbean client to axis service xmlbeans.aar

Modify the template in iterative fashion to eventually refactor the template 
over to your Collections

//create default DocumentBuilder
javax.xml.parsers.DocumentBuilder builder = factory.newDocumentBuilder();

//parse xsdConfigFile into xsdConfigDoc (Document)
org.w3c.dom.Document xsdConfigDoc = builder.parse(new File(xsdConfigFile));

//assume XMLBEANS_NS is defined to point to
private static final String XMLBEANS_NS = "";

//assume the name of the node is qname
private static final String XMLBEANS_QNAME_NODE = "qname";

//You can build a NodeList with all qname elements defined in the above xsdConfigFile
org.w3c.dom.NodeList qnameNodes = xsdConfigDoc.getElementsByTagNameNS(XMLBEANS_NS, XMLBEANS_QNAME_NODE);

Martin Gainty 

Date: Fri, 17 Jul 2015 10:20:52 +0800
Subject: Re: RE: axis2 client width Complex objects or Collection

dear Martin Gainty,thank you for your replay.i now how do that. but my question is how to
using XMLBeans,using  XMLBeans or using JiBX. generating a client.and the client is support
Collection ´╝čthe parameters and returns is Collection ,Can Axis2 client is support?   I have
a little weak in my english, please help me.    Thank you agen.  
 From: Martin GaintyDate: 2015-07-17 08:53To: java-dev@axis.apache.orgSubject: RE: axis2 client
width Complex objects or Collection
1)download stable release Axis-
2)cwd /modules/samples/quickstartxmlbeans

in download folder you will find service skeleton located in folder

04/17/2012  05:29 PM             2,131

you will also find client code located in folder

04/17/2012  05:29 PM             2,642

to generate service:
bash>ant generate.service

make sure the generated StockQuoteService.aar is deployed (cp) to 

to generate client:
bash>ant generate.client

then to execute the client
bash>ant run.client

Please keep us apprised if you have any questions
Martin --

Date: Thu, 16 Jul 2015 14:04:30 +0800
Subject: axis2 client width Complex objects or Collection

dear everyone:         i want get a result like:

I want use generating a client using XMLBeans,using  XMLBeans or using JiBX.
please tell me how do it?Onegai every one. 		 	   		  
View raw message