Topic: WSDL on the basis of XSD
Is XSD the description of several tens the objects connected among themselves, certainly. There is object Request of approximately following structure:
<xsd:complexType name = "RequestType">
<xsd:sequence>
<xsd:element name = "RequestHeader" type = "rht:RequestHeaderType"> </xsd:element>
<xsd:element name = "RequestBody">
<xsd:complexType>
<xsd:sequence>
<xsd:choice>
<xsd:element name = "el1Request" type = "tt1:el1Type"> </xsd:element>
<! - a row of other objects->
<xsd:element name = "el50Request" type = "tt50:el50Type"> </xsd:element>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
I want to write hands to it WSDL for import in VisualStudio not to describe classes separately and automatically to generate requests / to check answers. Prompt, how it is correct in WSDL to describe request, for example with a request body el50Request? On how many I understand, at first it is necessary to describe the object, type such:
<xsd:complexType name = "el50RequestType" type = "RequestType">
<xsd:sequence>
<xsd:element name = "Request">
<xsd:complexType>
<xsd:sequence>
<xsd:element name = "RequestHeader" type = "rht:RequestHeaderType"> </xsd:element>
<xsd:element name = "RequestBody">
<xsd:complexType>
<xsd:sequence>
<xsd:element name = "el50Request" type = "tt50:el50Type"> </xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
And further already in WSDL to describe a method with request of this type and . With the answer similarly.
But couples that I above described swears. My object el50RequestType is not pleasant to it, speaks that it does not correspond to type RequestType