xsi:nil="true" in parameter definition?

Discussion in 'ASP .Net Web Services' started by Jaime Stuardo, Oct 6, 2005.

  1. Hi everybody,

    I have this structure definitions in a webservice:

    public struct ReembType
    {
    public double porcentaje;
    public double monto;
    }

    public struct prestacion
    {
    public string codigo;
    public double copago;
    public ReembType reembolso;
    };

    public struct PersonType
    {
    public long rut;
    public char dv;
    };

    public struct TransType
    {
    public DateTime fecha;
    public long numero_bono;
    public string codigo_isapre;
    public string error;
    };

    public struct QueryType
    {
    public PersonType titular;
    public PersonType beneficiario;
    public TransType transaccion;
    public prestacion[] prestaciones;
    };

    One of the input parameters of a web method is of QueryType type.

    When I see the SOAP protocol definition, I get this:

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <Consulta xmlns="http://security.cl/">
    <datos>
    <titular>
    <rut>long</rut>
    <dv>char</dv>
    </titular>
    <beneficiario>
    <rut>long</rut>
    <dv>char</dv>
    </beneficiario>
    <transaccion>
    <fecha>dateTime</fecha>
    <numero_bono>long</numero_bono>
    <codigo_isapre>string</codigo_isapre>
    <error>string</error>
    </transaccion>
    <prestaciones>
    <prestacion>
    <codigo>string</codigo>
    <copago>double</copago>
    <reembolso xsi:nil="true" />
    </prestacion>
    <prestacion>
    <codigo>string</codigo>
    <copago>double</copago>
    <reembolso xsi:nil="true" />
    </prestacion>
    </prestaciones>
    </datos>
    </Consulta>
    </soap:Body>
    </soap:Envelope>

    Why does reembolso parameter is shown as xsi:nil="true"? what does it mean?
    how can I make it to be shown he same way as, for example, titular type?

    Thanks in advance
    Jaime
     
    Jaime Stuardo, Oct 6, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stefan Prange
    Replies:
    0
    Views:
    7,411
    Stefan Prange
    Mar 16, 2005
  2. bdb112
    Replies:
    45
    Views:
    1,965
    jazbees
    Apr 29, 2009
  3. Stan Yamane

    Problems using services which return data using xsi:nil

    Stan Yamane, Jul 14, 2003, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    308
    Stan Yamane
    Jul 15, 2003
  4. xsi nil=true

    , Apr 25, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    379
  5. emil

    soap xsi:nil="true" problem for multi level objects

    emil, Oct 31, 2006, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    455
  6. Brian Candler

    puts nil generates "nil\n"

    Brian Candler, Nov 6, 2004, in forum: Ruby
    Replies:
    1
    Views:
    211
  7. Christoffer Sawicki
    Replies:
    5
    Views:
    517
    Christoffer Sawicki
    Sep 2, 2006
  8. Arie Kusuma Atmaja
    Replies:
    6
    Views:
    317
    Arie Kusuma Atmaja
    Apr 11, 2008
Loading...