• 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

about transfering complex objects using AXIS

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear friends,

I have a question about how to transfer complex objects between server and client using AXIS technology. as the example5 coming with AXIS, it's easy to transfer a bean containing primitive data. but I want to transfer a bean containing other beans as one of its fields. but I don't know if I transfer such kind of bean or how? also does anyone know if AXIS can transfer java collections and how?

another question is that I don't know why the wsdl file doesn't change after I change the source server java file and deploy it using command line: java org.apache.axis.client.AdminClient deploy.wsdd. but I do find the service is undeployed if I run undeploy command. for example, even if I add an variable of int type in Order file under example5, and recomplie the java file and then redeploy the service. the wsdl is the same as before! it's really wired. also I don't know where the service is deployed. if it's just a wsdl or there should be a java class file in some directory under tomcat?

thank you very much for your great help!
Sam
 
Ranch Hand
Posts: 8944
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

for example, even if I add an variable of int type in Order file under example5, and recomplie the java file and then redeploy the service



Are you adding set/get methods for the new variable?
 
sam wzm
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes, I have added set/get methods, thanks.
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by sam wzm:
Dear friends,
I have a question about how to transfer complex objects between server and client using AXIS technology. as the example5 coming with AXIS, it's easy to transfer a bean containing primitive data. but I want to transfer a bean containing other beans as one of its fields. but I don't know if I transfer such kind of bean or how?
Sam


You have use the same example5 as a basis. Define the bean mapping details for all the beans. The best way could be apply JAVA2WSDL on your java interfaces and generate the WSDD. now use this wsdd and deploy the service, then use WSDL2Java to generate the java client and test it. Axis website got a better documentation on this.

Make use of complex types instead of java collection for better interoperability.
 
Balaji Loganathan
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by sam wzm:

another question is that I don't know why the wsdl file doesn't change after I change the source server java file and deploy it using command line:
Sam



Strange...it happened sometime for me. (i was using servletexec + axis), so i started deploying the service directly by editing the server-config.wsdd file.
 
sam wzm
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


thanks guys!

about the complex objects, I have another problem, please look the new post and give me help if you know.

Thanks again,
Sammy
 
You can thank my dental hygienist for my untimely aliveness. So tiny:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic