一些SOAP相关

来源:互联网 发布:socket网络编程 编辑:程序博客网 时间:2024/05/11 01:31

<xs:any> 设置

用途

注释

<xs:any processContents="strict"/>

允许任何命名空间中的任何元素,并对其执行严格验证。

您必须导入可能显示为元素的各种架构。 如果不导入,则验证将失败,原因是该元素没有被声明。

<xs:any processContent="lax"/>

允许任何命名空间中的任何元素,并对其执行松散验证。

将验证属于已导入的架构的元素,而跳过所有其他元素。 如果忘记导入架构,则验证将成功。

<xs:any processContent="skip"/>

允许任何命名空间中的任何元素,并跳过所有验证。

对所有元素的验证都将被跳过。

 

 

Error: Schema item 'element' named 'SiteConfigInfo' from namespace 'http://microsoft.com/webservices/OfficeServer/QueryService'. The type attribute cannot be present with either simpleType or complexType.

  - The type attribute cannot be present with either simpleType or complexType.

      <s:element name="SiteConfigInfo">

        <s:complexType>

          <s:sequence>

            <s:element name="Name" type="s:string"/>

            <s:element name="Id" type="t:GUIDType"/>

            <s:element name="Scopes">

              <s:complexType>

                <s:sequence>

                  <s:element name="Scope" type="s:string" minOccurs="0" maxOccurs="unbounded">

                    <s:complexType>

                      <s:sequence>

                        <s:element name="Name" type="s:string"/>

                      </s:sequence>

                    </s:complexType>

                  </s:element>

                </s:sequence>

              </s:complexType>

            </s:element>

 

 

因为 scope这个element已经定义了typestirng,但却继续定义complex type