Description: |
From the list:
The GWSDL to WSDL 1.1 transformation document states the
following regarding mapping of Service Data definitions
(from section 3.1.1)
"
c For each sd:serviceData element:
1) Create an xsd:element under the wsdl:definitions.
The name attribute value MUST the same as the
sd:serviceData name attribute value. The type attribute
value MUST be properly qualified. Either referencing the
targetNamespace of the wsdl:definitions element in which
the sd:serviceData is defined or if prefixed in the
wsdl:definitions element using that prefix. (Note: this may
be incomplete)
"
The examples include the following:
"
<!-- ?xml version="1.0" encoding="UTF-8"? -->
<wsdl:definitions name="OperatingSystem"
targetNamespace="http://www.gridforum.org/service/crm/OperatingSystem"
... stuff not shown for simplicity
<gwsdl:portType name="OperatingSystem"
extends="crm:BaseManageableResource">
<wsdl:operation name="reboot">
<wsdl:input message="rebootRequest"/>
<wsdl:output message="ResultResponse"/>
</wsdl:operation>
<wsdl:operation name="shutdown">
<wsdl:input message="shutdownRequest"/>
<wsdl:output message="ResultResponse"/>
</wsdl:operation>
<sd:serviceData name="OSType" type="OSTypeType" minOccurs="0"
maxOccurs="1" mutability="setOnce"
crm:valid="down starting up stopping failed">
</sd:serviceData>
<sd:serviceData name="freePhysicalMemory" type="crm:gauge"
minOccurs="0" maxOccurs="1" mutability="mutable"
crm:units="kilobytes"
crm:valid="starting up stopping failed"
crm:volatile="1">
</sd:serviceData>
</gwsdl:portType>
"
which maps to:
"
<!-- ?xml version="1.0" encoding="UTF-8"? -->
<wsdl:definitions name="OperatingSystem"
targetNamespace=http://www.gridforum.org/service/crm/OperatingSystem
... stuff not shown for simpliciy
<wsdl:types>
type section unchanged
</wsdl:types>
<!-- Flattened wsdl 1.1. portType for Operating System. -->
<wsdl:portType name="OperatingSystem">
... stuff removed for simplicity
</wsdl:portType>
<gwsdl:portType name="OperatingSystem"
extends="crm:BaseManageableResource">
gwsdl:portType unchanged
</gwsdl:portType>
</wsdl:definitions>
"
This seems incorrect, since there are not xsd:element defs
in the translated wsdl corresponding to the service data
definitions.
The text:
"
<wsdl:types>
type section unchanged
</wsdl:types>
"
seems wrong, in that the types section should include a
schema (with the same target namespace as the gwdl
definition the service data is defined in) which includes
these xsd: element definitions.
The example should be fixed and the translation text should
be clarified, such as:
"
c For each sd:serviceData element:
1) Create an xsd:element within a schema under the
wsdl types section. The target namespace for this schema
must be the same as the target namespace for the gwsdl
definition the service element definitions are mapped from.
. The name attribute value MUST the same as the
sd:serviceData name attribute value. The type attribute
value MUST be properly qualified. Either referencing the
targetNamespace of the wsdl:definitions element in which
the sd:serviceData is defined or if prefixed in the
wsdl:definitions element using that prefix.
"
Tom Rutt
Fujitsu
--
----------------------------------------------------
Tom Rutt email: tom@coastin.com; trutt@fsw.fujitsu.com
Tel: +1 732 801 5744 Fax: +1 732 774 5133
. |