- From: Liu, Kevin <kevin.liu@sap.com>
- Date: Fri, 24 Jun 2005 17:18:49 -0700
- To: "Jacek Kopecky" <jacek.kopecky@deri.org>, "WS-Description WG" <www-ws-desc@w3.org>
Hi Jacek, I like this example better for illustrating the use of type systems other than XSD in WSDL 2.0. If you can provide some introductory text, I can consider including it in end of the Advanced Topics II section at [1]. The new section may be titled as "Using Type Systems Other Than XSD" or whatever you think is appropriate. BTW, I would suggest that you change xmlns:wjava="http://www.w3.org/2005/05/wsdl/java" to something like xmlns:wjava="http://java.example.com/2005/05/wsdl/java" to make it explicit that this is a hypothetical extension to be defined by somebody. [1] http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/wsdl20/wsdl20-primer.ht ml?rev=1.80&content-type=text/html;%20charset=iso-8859-1#advanced-topic_ iii Best Regards, Kevin > -----Original Message----- > From: www-ws-desc-request@w3.org > [mailto:www-ws-desc-request@w3.org] On Behalf Of Jacek Kopecky > Sent: Friday, Jun 24, 2005 8:31 AM > To: WS-Description WG > Subject: example of using Java types in operations > > > Hi all, > > just in case it gets any attention, here's an example of how > Java types > could be used as a type system in WSDL. I think it only needs very > little verbiage around to make it fit in the appropriate place in the > primer or wherever it should go. It should say the Java > extension is not > formally specified, it is just a mock-up example. > > Is this one more helpful, do you think? 8-) > > Jacek > > > <?xml version="1.0" encoding="utf-8" ?> > <description > xmlns="http://www.w3.org/2005/05/wsdl" > targetNamespace= "http://example.com/employees" > xmlns:tns= "http://example.com/employees" > xmlns:wsoap= "http://www.w3.org/2005/05/wsdl/soap" > xmlns:wjava="http://www.w3.org/2005/05/wsdl/java" > xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> > > <types> > <wjava:class> > package org.example; > public class Employee implements > java.io.Serializable { > public String id; > public String name; > public String title; > public org.example.util.Address address; > public int salary; > } > </wjava:classes> > <wjava:import package="org.example.util" > location="http://example.org/utils.jar" /> > </types> > > <interface name="employeeDBInterface" > > > <operation name="opGetEmployeeInformation" > > pattern="http://www.w3.org/2005/05/wsdl/in-out" > wsdlx:safe = "true"> > <input messageLabel="In" > wjava:class="java.lang.String" /> > <output messageLabel="Out" > wjava:class="org.example.Employee" /> > </operation> > </interface> > > <binding name="RMIBinding" > type="http://www.w3.org/2005/05/wsdl/java/rmi"> > </binding> > > <service name="employeeDBService" > interface="tns:employeeDBInterface"> > <endpoint name="dbEndpoint" > binding="tns:RMIBinding" > address="tcp://example.com:1234"/> > </service> > </description> > > >
Received on Saturday, 25 June 2005 05:37:04 UTC