简体   繁体   English

具有“ http://www.w3.org/2001/XMLSchema”名称空间的性能影响

[英]Performance impact of having “http://www.w3.org/2001/XMLSchema” namespace

Is there any performance impact caused by the fact that all WCF SOAP based web-services in my organization has the namespace xmlns:xs="http://www.w3.org/2001/XMLSchema" definition as follows: 我的组织中所有基于WCF SOAP的Web服务都具有名称空间xmlns:xs =“ http://www.w3.org/2001/XMLSchema”的定义,是否会对性能造成任何影响,如下所示:

<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="List">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Request">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Branch" type="xs:string" />
              <xs:element name="CIF" type="xs:string" />
              <xs:element name="QueryType" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

I'm asking this question due to the fact that: 我问这个问题是由于以下事实:

  1. It is hosted on a remote host. 它托管在远程主机上。
  2. Occasionally, MS-SCOM indicates an extremely slow Deserialization of XML objects received (more than 1 minute!). 有时,MS-SCOM表示接收到的XML对象的反序列化速度非常慢(超过1分钟!)。

RESTFul web-services around the organization do not have the same issue at all, although we are Deserilizing the JSON string into the Object Map quite similar to the XML-Deserialization carried out. 尽管我们正在将JSON字符串反序列化到对象映射中,这与进行的XML反序列化非常相似,但是组织中的RESTFul Web服务根本没有相同的问题。

Technology: C# .NET, IIS 7.5, WCF, RESTFul, 技术:C#.NET,IIS 7.5,WCF,RESTFul,

如果您担心包含名称空间声明xmlns:xs="http://www.w3.org/2001/XMLSchema"会导致从W3C网站上获取数据,请不要担心:名称空间声明永远不会被删除-以这种方式引用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从名称空间&#39;http://www.w3.org/2001/XMLSchema-instance&#39;期望元素&#39;CustomerLeads&#39; - Expecting element 'CustomerLeads' from namespace 'http://www.w3.org/2001/XMLSchema-instance' 避免在.Net DataContractSerializer中使用“http://www.w3.org/2001/XMLSchema-instance”命名空间 - Avoiding using the “http://www.w3.org/2001/XMLSchema-instance” namespace with .Net DataContractSerializer 使用 DataContractSerializer 时删除 xmlns:i=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; - remove xmlns:i=“http://www.w3.org/2001/XMLSchema-instance” when using DataContractSerializer 元素http://www.w3.org/2001/XMLSchema:complexType在此上下文中无效 - Element http://www.w3.org/2001/XMLSchema:complexType is invalid in this context C#中的XML反序列化错误-InvalidOperationException: <element xmlns='http://www.w3.org/2001/XMLSchema'> 没想到 - XML Deserialization Error in C# - InvalidOperationException: <element xmlns='http://www.w3.org/2001/XMLSchema'> was not expected 删除 p2:type="&lt;<type> &gt;" xmlns:p2="http://www.w3.org/2001/XMLSchema-instance" 来自 xml</type> - Remove p2:type="<<type>>" xmlns:p2="http://www.w3.org/2001/XMLSchema-instance" from xml “'http://www.w3.org/XML/1998/namespace:lang' 属性未声明。” - “The 'http://www.w3.org/XML/1998/namespace:lang' attribute is not declared.” JWT Header 算法:“hs256”与“http://www.w3.org/2001/04/xmldsig-more#hmac-sha256”相同 - JWT Header algorithm: is "hs256" the same as "http://www.w3.org/2001/04/xmldsig-more#hmac-sha256" DNX Core 5.0 JwtSecurityTokenHandler“ IDX10640:不支持算法:&#39;http://www.w3.org/2001/04/xmldsig-more#hmac-sha256&#39;” - DNX Core 5.0 JwtSecurityTokenHandler “IDX10640: Algorithm is not supported: 'http://www.w3.org/2001/04/xmldsig-more#hmac-sha256'” SignedXml CanonicalizationMethod - http://www.w3.org/2006/12/xml-c14n11 - SignedXml CanonicalizationMethod - http://www.w3.org/2006/12/xml-c14n11
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM