Sparx Systems Forum
Enterprise Architect => Suggestions and Requests => Topic started by: david.bowman on May 02, 2007, 07:48:24 am
-
Hi,
Using the WSDL generation is there any way to get a message part to reference the generated element rather than the generated type?
So:
<wsdl:types>
<xs:schema targetNamespace="http://www.tmp.com/Tools/HandHistory/Summariser/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:s1="http://www.tmp.com/Tools/HandHistory/Summariser/">
<xs:element name="SummariseHandsRequest" type="s1:SummariseHandsRequest"/>
<xs:complexType name="SummariseHandsRequest">
<xs:sequence>
<xs:element name="handIds" type="xs:unsignedLong" maxOccurs="unbounded"/>
<xs:element name="handType" type="xs:string"/>
<xs:element name="year" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="SummariseHandsMessage">
<wsdl:part name="summaryRequest" type="tns:SummariseHandsRequest"/>
</wsdl:message>
In the message part, I'd like the part to use an element attribute rather than the type attribute. This would make it WS-I Basic Profile 1.1 compliant.
Thus it should look like:
<wsdl:types>
<xs:schema targetNamespace="http://www.tmp.com/Tools/HandHistory/Summariser/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:s1="http://www.tmp.com/Tools/HandHistory/Summariser/">
<xs:element name="SummariseHandsRequest" type="s1:SummariseHandsRequest"/>
<xs:complexType name="SummariseHandsRequest">
<xs:sequence>
<xs:element name="handIds" type="xs:unsignedLong" maxOccurs="unbounded"/>
<xs:element name="handType" type="xs:string"/>
<xs:element name="year" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="SummariseHandsMessage">
<wsdl:part name="summaryRequest" element="tns:SummariseHandsRequest"/>
</wsdl:message>
D