Jul 15, 2009 at 3:34 PM
Edited Jul 15, 2009 at 3:36 PM
Thanks to latenightcoder I'm now successfully retreiving the endpoint schemas from the MSE Repository for schema validation however I've run into a new issue and was looking for some help. When you import the Webservice Metadata to add the operation
to the MSE Admin Tool the custom base types defined on the service schema are not automatically imported into the MSE Repository.
An example of the custom base types utilized in the origional service xsd would be as follows:
<xs:element minOccurs="1" maxOccurs="1" name="FirstName" type="String50" />
<xs:maxLength value="50" />
So, in the original schema validation within the service itself, a schema validation error would have been thrown if someone submitted a request with a FirstName element value of greater than 50 characters.
However, when the service operation is imported into MSE the custom type "Contact" now looks like this in the Repository:
<xs:element minOccurs="1" maxOccurs="1" name="FirstName" type="xs:String" />
Notice the maximum length rule is lost...
I would like to know if there is anyway I can import the operation and keep those custom types that define maximum lengths? Or, after the service operation has been imported is there a way to import a schema into MSE and use the full imported schema
and all of its custom base types for the operation instead of what was imported along with the service operation?