This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Struct Consuming in Javain Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark " Struct Consuming in Javain" Watch " Struct Consuming in Javain" New topic
Author Struct Consuming in Javain

chikodi nwanjoku

Joined: Nov 10, 2012
Posts: 2
Please I am having an issue, I have a web service written in c#, one of the web methods has a parameter is a struct, now when comsume in java I don't know how to handle the struct object
Public string test(StructName object)
return. "Hello " +;


Myclass myobjectclass= new myClass();

On this point I don't know what to do in order to set the structName value.

Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3200
You might get a better response if you post it in the Web Services forum. But basically when you generate java stubs for your WSDL, the structure will have a java equivalent and that is what you need to use on the java side.

Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
Roel De Nijs

Joined: Jul 19, 2004
Posts: 4907

Moved to the web services forum

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
I agree. Here's the link:
subject: Struct Consuming in Javain
Similar Threads
Confusion about class creation inside a class.
oracle.sql.STRUCT and db user rights
Defining characteristics of the DispatchAction class
Struggling to run a script at regular intervals - any ideas?
Call to Oracle SP with Oracle object type parameter