• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Add complex type to axis2 sample code

Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to add complex type to the following sample code?
I will be glad to get some guidance

Thank you

public class myClass(){
int instance id;
String instanceName;
ArrayList arr ;

//Axis2 Sample Code :
import org.apache.axiom.om.*;
import org.apache.axis2.AxisFault;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.*;

public class EchoBlockingClient {
private static EndpointReference targetEPR = new EndpointReference(
public static void main(String[] args) {
try {
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace ns = fac.createOMNamespace("http://soapinterop.org/", "ns1");
OMElement payload = fac.createOMElement("echoString", ns);
Options options = new Options();
ServiceClient client = new ServiceClient();
OMElement result = client.sendReceive(payload);

} catch (AxisFault axisFault) {

    Bookmark Topic Watch Topic
  • New Topic