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 ]
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.
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.
Joined: Nov 01, 2005
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.
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.