locked
Changeing ASP.NET Web Service Generated WSDL RRS feed

  • Question

  • User-775697465 posted

    I create asp.net web service (dotnetframework 3.5)  that recieve ID and return object of class person

    Person class contains

    FirsdtName ,MiddleName,Fmaily, Sex as string

    IDNo as Integer

    when run web service gives me the follwong in WSDL generated file

    - <s:element name="IsIDValid">
    - <s:complexType>
    - <s:sequence>
      <s:element minOccurs="1" maxOccurs="1" name="ID" type="s:int" /> 
      <s:element minOccurs="0" maxOccurs="1" name="FirstName" type="s:string" /> 
      <s:element minOccurs="0" maxOccurs="1" name="MiddleName" type="s:string" /> 
      <s:element minOccurs="0" maxOccurs="1" name="FatherName" type="s:string" /> 
      <s:element minOccurs="0" maxOccurs="1" name="FamilyName" type="s:string" /> 
      <s:element minOccurs="0" maxOccurs="1" name="Sex" type="s:string" /> 
      </s:sequence>
      </s:complexType>
      </s:element>
    

    But hwo to get that all attributes required "

    minOccurs="1" maxOccurs="1"

    Is any way to change the generated schema

    or can create schema by hand?

    Many thanks for your help :)

    Wednesday, November 20, 2013 3:47 AM

All replies