aspose file tools*
The moose likes Web Services and the fly likes How to read Object data and List of Objects data through SOAP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to read Object data and List of Objects data through SOAP?" Watch "How to read Object data and List of Objects data through SOAP?" New topic
Author

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

Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

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..


Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Hi Friends...
Anybody could help me to solve my problem?..

Your response would be appreciate for me..

Thanks in advance..
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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

Joined: Apr 07, 2009
Posts: 489

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

Joined: Oct 04, 2006
Posts: 2198
    
    1
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

Joined: Apr 07, 2009
Posts: 489

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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to read Object data and List of Objects data through SOAP?
 
Similar Threads
What's Wrong with this simple WSDL
How to determine if it is Document style or RPC looking at SOAP request ?
Unable to send a SOAP request properly designed using SAAJ
My First Soap Request , getting this Error "SEVERE: SAAJ0531: Unable to parse content type"
SAAJ - Empty SOAP Response / Null Pointer Exception