- From: Arthur Ryman <ryman@ca.ibm.com>
- Date: Mon, 3 Apr 2006 09:17:04 -0400
- To: wakeup <alainc@euskalnet.net>
- Cc: www-ws-desc@w3.org, www-ws-desc-request@w3.org
- Message-ID: <OF4FBEFE51.DDFCE7B1-ON85257145.0047E12F-85257145.0048F7A6@ca.ibm.com>
No. There are two approaches that work well. 1. Design an XML schema for you input and output messages, put those in the WSDL and then use a tool to generate code from WSDL, and fill in the implementation of the code by delegating to your existing objects. 2. Design data transfer objects in you programming language and write a wrapper class for you existing code. The wrapper uses the data transfer objects in its method signature and its implementation delegates to you existing object. Then generate WSDL for your wrapper class instead of your original code. Both of these approaches produce simple XML messages that can be easily processed by other clients. Arthur Ryman, IBM Software Group, Rational Division blog: http://ryman.eclipsedevelopersjournal.com/ phone: +1-905-413-3077, TL 969-3077 assistant: +1-905-413-2411, TL 969-2411 fax: +1-905-413-4920, TL 969-4920 mobile: +1-416-939-5063, text: 4169395063@fido.ca "wakeup (sent by Nabble.com)" <lists@nabble.com> Sent by: www-ws-desc-request@w3.org 04/03/2006 03:09 AM Please respond to wakeup <alainc@euskalnet.net> To www-ws-desc@w3.org cc Subject Re: passing objects to web service Then you recomend this? Returning a XML string? public string exampleMethod() But with this option, you spend time formatin xml to objects, I'm not sure. -- View this message in context: http://www.nabble.com/passing-objects-to-web-service-t1374219.html#a3720932 Sent from the w3.org - www-ws-desc forum at Nabble.com.
Received on Monday, 3 April 2006 13:17:35 UTC