c# - XML Schema not working with Web Service Software Factory -


I am trying to create an XML schema to use with the Web Service Software Factory. This is a very simple schema, which is the only group of individual objects (Simplified) schema file looks like this:

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Xs: schema targetmap = "http://tempuri.org/XMLSchema.xsd" elementFormat = "qualified" xmlns = "http://tempuri.org/XMLSchema.xsd" xmlns: mstns = "http: // tempuri .org / XMLSchema.xsd "xmlns: xs =" http://www.w3.org/2001/XMLSchema "& gt; & Lt; Xs: element name = "person" type = "person type" /> & Lt; X: complex type name = "person type" & gt; & Lt; XS: Sequence & gt; & Lt; Xs: element name = "person" type = "personal type" minOccurs = "0" maxOccurs = "unbound" /> & Lt; / XS: sequence & gt; & Lt; / XS: complexType & gt; & Lt; X: complex type name = "personal typo" & gt; & Lt; XS: All & gt; & Lt; Xs: element name = "personal name" type = "x: string" /> & Lt; Xs: element name = "personality" type = "xs: integer" /> & Lt; / XS: All & gt; & Lt; / XS: complexType & gt; & Lt; / XS: Schema & gt;  

This person is a simple collection of elements called the person.

When I do my If I try to validate the service.contract file, then I do not correspond to 'filename' individuals as 'datacontact surgery'.

Does anyone know how to fix this schema so that it works with the Web Service Software Factory? And for bonus points, the next structure which I need to worry about will be a recursive list of corporations. Any suggestions regarding the recursive schema that works with WSSF will be appreciated.

Do you already try to avoid designated types?

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Xs: schema targetmap = "http://tempuri.org/XMLSchema.xsd" elementFormat = "qualified" xmlns = "http://tempuri.org/XMLSchema.xsd" xmlns: mstns = "http: // tempuri .org / XMLSchema.xsd "xmlns: xs =" http://www.w3.org/2001/XMLSchema "& gt; & Lt; Xs: element name = "person" & gt; & Lt; XS: complexType & gt; & Lt; XS: Sequence & gt; & Lt; Xs: element name = "person" minOccurs = "0" maxOccurs = "unbounded" & gt; & Lt; XS: complexType & gt; & Lt; XS: All & gt; & Lt; Xs: element name = "personal name" type = "x: string" /> & Lt; Xs: element name = "personality" type = "xs: integer" /> & Lt; / XS: All & gt; & Lt; / XS: complexType & gt; & Lt; / XS: element & gt; & Lt; / XS: sequence & gt; & Lt; / XS: complexType & gt; & Lt; / XS: element & gt;  

In addition to this you & lt; Xs: all & gt; From & lt; Sequence & gt; Your & lt; Person & gt;


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -