• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to read Object data and List of Objects data through SOAP?

 
Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends..

I'm learning about JAX-WS (i use EJB3 exposed as WebService)..
I've a problem while reading an Object and a List of objects..

here is my scenario..
assume that i want to transfer object and amount of objects by using SOAP..

this is my Object type that i want to transfer..


and then this is my EJB3 which exposed as WebService..


this is the SOAP response of my showOneClass() method :


and this is my code in Swing application which consume that SOAP response..


and my question is how to get values of id, code, and name which generated in that SOAP response..

please help me regarding this..

Thanks in advance..
 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends...
Anybody could help me to solve my problem?..

Your response would be appreciate for me..

Thanks in advance..
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Do you have to use a dynamic client, that is, a client that uses a SOAPConnection, to issue requests?
If you generate client artifacts using wsimport, the task will become much easier.
Just want to make sure before I answer the question.
Best wishes!
 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks ivan for your reply...

I am new in WebService, and currently i'm still using SOAPConnection object to pass parameters and getting data that generated by webservice..

in your reply, you mentioned about dynamic client..
Hm, i'm wondering about it, what is the mean of dynamic client itself?
is it client built with across java platform such as .NET?..
For learn scope, i just want to use Swing or Servlet to access the WebService that i want to build..
Just to simplifies it..

And then i'm wondering about wsimport, currently i use glassfish v2 and Netbeans 6.5..
I've used wsimport before for make client artifacts...
but I found strength problem while used wsimport,.. There's a file contains an error..
Perhaps, this is just my fool mistake..

Sir, may i know your implementation in developing WebService?..
Have you used JAX-WS before?.. and then what's the better way to use wsimport?..

Thanks in advance..
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!
Yes, I have developed web services using JAX-WS.
To learn the difference between dynamic and static clients, I recommend you to read section 4.9 in the following document that I have written:
http://faq.javaranch.com/content/Exam-Objectives-5.pdf
In that document there are also a description, including an Ant script, on how to generate artifacts for static client using wsimport.
Good luck!
 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok Thanks Ivan for the document..
Okay, i'll read it, and perhaps if i've a problem, i'll make a new thread again..

Thanks in advance..
 
reply
    Bookmark Topic Watch Topic
  • New Topic