I
I
Ivan2015-04-09 16:49:25
SOAP
Ivan, 2015-04-09 16:49:25

How is an enumeration formed in a WSDL file?

Good afternoon!
There is a web service code, in the code there is an enum with languages ​​of the form:

<System.Runtime.Serialization.EnumMemberAttribute()> _
    Hebrew = 73

    <System.Runtime.Serialization.EnumMemberAttribute()> _
    Hiri_Motu = 75

    <System.Runtime.Serialization.EnumMemberAttribute()> _
    Croatian = 76

    <System.Runtime.Serialization.EnumMemberAttribute()> _
    Haitian = 77

When I open a link like "myservice.com/myservice.svc?singleWsdl" in the browser,
I get the following file:
<xs:enumeration value="Hebrew">
<xs:annotation>
<xs:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">73</EnumerationValue>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Hiri_Motu"/>
<xs:enumeration value="Croatian"/>
<xs:enumeration value="Haitian"/>
<xs:enumeration value="Hungarian"/>
<xs:enumeration value="Armenian"/>
<xs:enumeration value="Herero"/>
<xs:enumeration value="Interlingua"/>
<xs:enumeration value="Indonesian"/>
<xs:enumeration value="Interlingue"/>
<xs:enumeration value="Igbo"/>
<xs:enumeration value="Sichuan_Yi"/>
<xs:enumeration value="Inupiaq"/>
<xs:enumeration value="Ilocano"/>
<xs:enumeration value="Ido"/>
<xs:enumeration value="Icelandic"/>
<xs:enumeration value="Inuktitut"/>
<xs:enumeration value="Javanese"/>
<xs:enumeration value="Georgian"/>
<xs:enumeration value="Kongo"/>
<xs:enumeration value="Kikuyu"/>
<xs:enumeration value="Kuanyama"/>
<xs:enumeration value="Kazakh"/>
<xs:enumeration value="Kalaallisut"/>
<xs:enumeration value="Central_Khmer"/>
<xs:enumeration value="NA"/>
<xs:enumeration value="Kannada"/>
<xs:enumeration value="Kanuri"/>
<xs:enumeration value="Kashmiri"/>
<xs:enumeration value="Kurdish"/>
<xs:enumeration value="Komi"/>
<xs:enumeration value="Cornish"/>
<xs:enumeration value="Kirghiz"/>
<xs:enumeration value="Lao"/>
<xs:enumeration value="Latin"/>
<xs:enumeration value="Luxembourgish"/>
<xs:enumeration value="Ganda"/>
<xs:enumeration value="Limburgan"/>
<xs:enumeration value="Lingala"/>
<xs:enumeration value="Luba_Katanga">
<xs:annotation>
<xs:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">114</EnumerationValue>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>

How does it happen that nodes like "114"
with numerical values ​​fall into the part of values?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question