aspose file tools*
The moose likes Websphere and the fly likes Web Services Question in WebSphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Web Services Question in WebSphere" Watch "Web Services Question in WebSphere" New topic
Author

Web Services Question in WebSphere

Michael Valentino
Ranch Hand

Joined: Nov 01, 2005
Posts: 96
Hey all,
I've been having some issues getting my web services to return Objects while developing with RAD 6.0 The services are happy returning any simple types defined in the xsd spec (i.e. int, String, etc.) but when it comes to custom Objects, the mysetrious Wizards insist on making anything not of these types Objects in the generated code. I've edited my WSDL file a few different ways but still no luck. Here's a sample of what I've tried so maybe you can show me where I may be going wrong.

in the wsdl:types section...


When the methods of the java proxy are generated, the method that returns what should be an object of type "respObj" is translated to a plain Object.
[ November 09, 2005: Message edited by: Michael Valentino ]

SCJP 1.4, SCWCD J2EE 1.4, SCJD J2SE 1.5, SCBCD J2EE 1.3, SCDJWS (In Progress)
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3716
    
    5

Just wondering are you using RAD WSDL generater and/or web service generater?
[ November 09, 2005: Message edited by: Scott Selikoff ]

My Blog: Down Home Country Coding with Scott Selikoff
Michael Valentino
Ranch Hand

Joined: Nov 01, 2005
Posts: 96
I'm using the Web Service generator then tweaking the WSDL by hand since the WSDL generator tool almost never generates the WSDL the way I expect it to. Still tinkering with it a little, but now I have it so that the method signatures are being generated correctly. Need to implement and test. Will let you know how it works out.
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3716
    
    5

Sorry I couldn't be more helpful. I love reading XML until namespaces come up, then I start to get a headache.

I would focus on configuring your data structures to better support the automatic generation of the WSDL. The benefits in the long run (assuming this is possible in your specific scenario) is that the WSDL is more tighly integrated with your service and is far easier to support.

Alternatively, I would also suggest a different WSDL generation tool other than the one in RAD but thats more of a personal preference.
Michael Valentino
Ranch Hand

Joined: Nov 01, 2005
Posts: 96
Hehe I would use the JWSDP if it were my choice. However, using other tools is not preferred because I'm evaluating this product (RAD) for use by our team. So far it's been more headaches than it's worth.

It's a shame because WAS is an excellent App server, but the RAD development tool is lousy. Way too much going on "behind the scenes" of the wizards and with their mappings xml files. I'm a big fan of JBoss where you have more control over generated files due to the use of Doclets and XDoclets (for XML). So far my experience with WebSphere in general has been "Makes hard things easy, and easy things impossible" It's got Microsoft Syndrome where it thinks that it knows what you want better than you do. Very annoying.

So now that I've got that out of my system... hah Thank you for your input though Scott. Really appreciate it.
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3716
    
    5

Originally posted by Michael Valentino:
It's a shame because WAS is an excellent App server, but the RAD development tool is lousy.

Oh you don't have to tell me twice... I would say you have acquired a very good sense of RAD. You're just lucky you're not using one of the Beta's or running fix packs that fail and require an entire re-installation.

Ultimately, I think WAS + (Eclipse + Ant) is the way to go. It requires more education but is much more practicle and leads to a lot less confusion, headaches, and magically appearing problems.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Services Question in WebSphere