久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <small id='3uwNW'></small><noframes id='3uwNW'>

    <i id='3uwNW'><tr id='3uwNW'><dt id='3uwNW'><q id='3uwNW'><span id='3uwNW'><b id='3uwNW'><form id='3uwNW'><ins id='3uwNW'></ins><ul id='3uwNW'></ul><sub id='3uwNW'></sub></form><legend id='3uwNW'></legend><bdo id='3uwNW'><pre id='3uwNW'><center id='3uwNW'></center></pre></bdo></b><th id='3uwNW'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3uwNW'><tfoot id='3uwNW'></tfoot><dl id='3uwNW'><fieldset id='3uwNW'></fieldset></dl></div>
      <bdo id='3uwNW'></bdo><ul id='3uwNW'></ul>
    <legend id='3uwNW'><style id='3uwNW'><dir id='3uwNW'><q id='3uwNW'></q></dir></style></legend>
    <tfoot id='3uwNW'></tfoot>

    1. 如何使 dotnet webservice 設置 minOccurs=“1";在字

      How to make a dotnet webservice set minOccurs=quot;1quot; on a string value(如何使 dotnet webservice 設置 minOccurs=“1;在字符串值上)
        <tbody id='lFA80'></tbody>

      • <bdo id='lFA80'></bdo><ul id='lFA80'></ul>
        <i id='lFA80'><tr id='lFA80'><dt id='lFA80'><q id='lFA80'><span id='lFA80'><b id='lFA80'><form id='lFA80'><ins id='lFA80'></ins><ul id='lFA80'></ul><sub id='lFA80'></sub></form><legend id='lFA80'></legend><bdo id='lFA80'><pre id='lFA80'><center id='lFA80'></center></pre></bdo></b><th id='lFA80'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='lFA80'><tfoot id='lFA80'></tfoot><dl id='lFA80'><fieldset id='lFA80'></fieldset></dl></div>

          <legend id='lFA80'><style id='lFA80'><dir id='lFA80'><q id='lFA80'></q></dir></style></legend>

          <tfoot id='lFA80'></tfoot>
            • <small id='lFA80'></small><noframes id='lFA80'>

              1. 本文介紹了如何使 dotnet webservice 設置 minOccurs=“1";在字符串值上的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我有一個 XSD:

                <?xml version="1.0" encoding="UTF-8"?>
                <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
                     xmlns="http://a.com/a.xsd"
                     targetNamespace="http://a.com/a.xsd"
                     elementFormDefault="qualified"
                     attributeFormDefault="unqualified">
                    <xs:element name="A">
                        <xs:complexType>
                            <xs:sequence>
                                <xs:element name="Item"  minOccurs="1" maxOccurs="1">
                                    <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                            <xs:minLength value="1"/>                                       
                                            <xs:whiteSpace value="collapse"/>
                                        </xs:restriction>
                                    </xs:simpleType>
                                </xs:element>
                            </xs:sequence>
                        </xs:complexType>
                    </xs:element>
                </xs:schema>
                

                我使用 XSD.exe v2.0.50727.3615 將其轉換為 C# 類,生成代碼如下

                Which I have converted into a C# class using XSD.exe v2.0.50727.3615 which generates code as follows

                namespace A {
                    using System.Xml.Serialization;
                    /// <remarks/>
                    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
                    [System.SerializableAttribute()]
                    [System.Diagnostics.DebuggerStepThroughAttribute()]
                    [System.ComponentModel.DesignerCategoryAttribute("code")]
                    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://a.com/a.xsd")]
                    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://a.com/a.xsd", IsNullable=false)]
                    public partial class A {
                        private string itemField;
                        /// <remarks/>
                        public string Item {
                            get {
                                return this.itemField;
                            }
                            set {
                                this.itemField = value;
                            }
                        }
                    }
                }
                

                我在我的網絡服務中返回了一個 A.A 對象,它在服務描述中生成了這個片段

                I am returning an A.A object in my webservice, which produces this snippet in the service description

                <s:schema elementFormDefault="qualified" targetNamespace="http://a.com/a.xsd"> 
                  <s:element name="Test2Result"> 
                    <s:complexType> 
                      <s:sequence> 
                        <s:element minOccurs="0" maxOccurs="1" name="Item" type="s:string" /> 
                      </s:sequence> 
                    </s:complexType> 
                  </s:element> 
                </s:schema> 
                

                從 XSD 中的 minOccrus="1" 到自動生成的 WSDL 中的 minOccurs="0" 的變化正在給系統另一端的機器帶來麻煩.

                The change from minOccrus="1" in the XSD to minOccurs="0" on the auto-generated WSDL is causing grief to the machine on the other end of the system.

                我當然可以提供手動編輯的 WSDL 供他們使用,但我希望自動生成的 WSDL 能夠滿足他們的需求.

                I could of course provide a hand edited WSDL for them to use, but I would like the auto-generated one to suit their needs.

                關于如何說服 dotnet 在其自動生成的 WSDL 中為字符串類型輸出 minOccurs="1" 而不添加 nillable="true" 的任何建議?

                Any suggestions on how to convince dotnet to output minOccurs="1" for a string type in its autogenerated WSDLs without also adding nillable="true"?

                推薦答案

                我注意到下面一行:

                對于將 XML Schema 復雜類型與非 XML 特定的類綁定,.NET Framework 不提供等效于 minOccurs 或 maxOccurs 屬性的直接編程語言.

                For binding XML Schema complex types with non-XML-specific classes, the .NET Framework does not provide a direct programming language equivalent to the minOccurs or maxOccurs attribute.

                從這里:http://msdn.microsoft.com/en-us/library/zds0b35c(v=vs.85).aspx

                這篇關于如何使 dotnet webservice 設置 minOccurs=“1";在字符串值上的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                Calling A Button OnClick from a function(從函數調用按鈕 OnClick)
                ASP.net C# Gridview ButtonField onclick event(ASP.net C# Gridview ButtonField onclick 事件)
                Adding OnClick event to ASP.NET control(將 OnClick 事件添加到 ASP.NET 控件)
                Multiple submit Button click problem?(多個提交按鈕點擊問題?)

                    <tbody id='4Ie0n'></tbody>
                  <tfoot id='4Ie0n'></tfoot>
                  <legend id='4Ie0n'><style id='4Ie0n'><dir id='4Ie0n'><q id='4Ie0n'></q></dir></style></legend>
                  • <small id='4Ie0n'></small><noframes id='4Ie0n'>

                          <bdo id='4Ie0n'></bdo><ul id='4Ie0n'></ul>

                        • <i id='4Ie0n'><tr id='4Ie0n'><dt id='4Ie0n'><q id='4Ie0n'><span id='4Ie0n'><b id='4Ie0n'><form id='4Ie0n'><ins id='4Ie0n'></ins><ul id='4Ie0n'></ul><sub id='4Ie0n'></sub></form><legend id='4Ie0n'></legend><bdo id='4Ie0n'><pre id='4Ie0n'><center id='4Ie0n'></center></pre></bdo></b><th id='4Ie0n'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4Ie0n'><tfoot id='4Ie0n'></tfoot><dl id='4Ie0n'><fieldset id='4Ie0n'></fieldset></dl></div>

                          主站蜘蛛池模板: 国产一区二区在线免费视频 | 久久久久久久一区二区三区 | 一区二区三区在线免费观看视频 | 99久久精品国产毛片 | 在线观看免费av网 | 91久久精品国产91久久 | 欧美成人免费在线视频 | 黄色永久免费 | 国产精品日日摸夜夜添夜夜av | 免费一区二区三区 | 亚洲综合婷婷 | 日韩一区二区三区在线视频 | 亚洲视频一区 | 久久久.com | 日韩中文一区二区三区 | 伊人av在线播放 | 欧美激情在线精品一区二区三区 | 久久亚洲一区二区 | 91精品国产乱码麻豆白嫩 | m豆传媒在线链接观看 | 久久夜视频 | 亚洲欧美日韩国产综合 | 亚洲巨乳自拍在线视频 | 91高清视频在线观看 | 99热这里都是精品 | 日本视频一区二区三区 | 少妇午夜一级艳片欧美精品 | 日韩视频在线播放 | 国产亚洲精品美女久久久久久久久久 | 日韩精品久久一区二区三区 | 午夜综合| 国产四虎| 国产精品久久久久久久久久尿 | 欧美日韩国产免费 | 欧美一级视频免费看 | 成人性生交大片免费看r链接 | 日日干夜夜干 | 亚洲精品久久视频 | 91久久精品一区二区三区 | 欧美日韩国产一区二区 | 视频一区二区在线观看 |