[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: WSDLs and Schemas preview
Here is the ZIP file with MUWS and MOWS WSDLs and Schemas. This actually works when properly composed into a web service. I will be sending a manageable WS example for MOWS section 4 later.
<<WSDM.zip>>
So, essentially this ZIP has contents for MUWS spec Appendices D and E and MOWS spec Appendices D and E.
Note the following.
For proper generation of skeletons and clients, explicitly defining complexType for property documents is a must. Since tools do not support WS-ResourceProperties yet, this is a work arround to get proper types and QNames ready for early implementers.
[
<xs:complexType name="EndpointIdentificationPropertiesType">
<xs:sequence>
<xs:element ref="mows:EndpointReference"/>
<xs:element ref="mows:EndpointDescriptions"/>
<xs:any minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:element name="EndpointIdentificationProperties"
type="mows:EndpointIdentificationPropertiesType"/>
]
Schema includes provided to be a tricky part in the interop. Some WSDL tools would not import the namespace again and would just fail. Fixing it to imports (MUWS/MOWS) or inlining the schema in WSDL (WS-ResourceProperties fix) worked out just fine. So don't be surporised to see things like the following.
[
<types>
<xs:schema elementFormDefault="qualified"
targetNamespace="urn:wsdm:muws:types"
xmlns:muws="urn:wsdm:muws">
<xs:import namespace="urn:wsdm:muws" schemaLocation="MUWS.xsd"/>
</xs:schema>
</types>
]
Some WSDL tools did not support the (VALID!) attribute restriction as follows.
[
<xs:element name="NumberOfRequests">
<xs:complexType>
<xs:simpleContent>
<xs:restriction base="muws:IntegerMetric">
<xs:attribute name="ChangeType" fixed="Counter"/>
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
</xs:element>
]
So I had to simplify it to
[
<xs:element name="NumberOfRequests" type="muws:IntegerMetric"/>
]
-- Igor Sedukhin .. (igor.sedukhin@ca.com)
-- (631) 342-4325 .. 1 CA Plaza, Islandia, NY 11788
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]