Is it posible to replace the schema in the auto generated WSDL file in a Web Service, with or without WSE 3.0
I need to make more specific constraints/restrictions to it.
Or is it normal to just leave the WSDL file with the standard auto generated types and then validate against a more strict schema when the request is recieved
From this:
- <s:complexType name="Supplier">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="SupplierNo" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="SupplierName" type="s:string" />
</s:sequence>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="SupplierNo" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="SupplierName" type="s:string" />
</s:sequence>
</s:complexType>
To this:
<s:complexType name="Supplier">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="SupplierNo" type="s:SupplierNumber" />
<s:element minOccurs="1" maxOccurs="1" name="SupplierName" type="s:string" />
</s:sequence>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="SupplierNo" type="s:SupplierNumber" />
<s:element minOccurs="1" maxOccurs="1" name="SupplierName" type="s:string" />
</s:sequence>
</s:complexType>
<s:simpleType name="SupplierNumber">
<s:restriction base="xs:integer">
<s:pattern value="\d{8}"/>
</s:restriction>
</xs:simpleType>
<s:restriction base="xs:integer">
<s:pattern value="\d{8}"/>
</s:restriction>
</xs:simpleType>

Replace xml schema in WSDL file
Kamii47
For anybody interrested in this, i found the article i needed...Read it
!Important if you are using .NET Web Services
http://msdn.microsoft.com/msdnmag/issues/03/07/xmlschemavalidation/default.aspx