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 Friday, 24 June 2005 15:31:03 UTC