Web Reference not creating correct soap envelope concerning booleans RRS feed

  • Question

  • Hi all,

    I'm pretty new concerning C# programming and web references. However come pretty far. 

    I'm able to consume the web reference correctly. But now i've a problem submitting data to the web reference. 

    I've simplified my code for testing this problem. The problem is when I submit a boolean to a property from the web reference this boolean does not get created in the soap evenlope. I hope i'm doing something wrong here. The property is a boolean type.

    .NET Code

                SNCiWin.ServiceNow_cmdb_ci_win_server proxyCiWin = new SNCiWin.ServiceNow_cmdb_ci_win_server();
                System.Net.ICredentials cred = new System.Net.NetworkCredential("xxx", "xxxx");
                proxyCiWin.Credentials = cred;
                SNCiWin.insert insert = new SNCiWin.insert();
                SNCiWin.insertResponse response = new SNCiWin.insertResponse();
                insert.asset_tag = "WSVTestvanuitthusi";
                insert.u_type = "Logische WIN server";
                insert.u_backup = true;
                response = proxyCiWin.insert(insert);

    The envelope created looks like this (thnx to fiddler):

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="" xmlns:xsi="" xmlns:xsd="">
    <insert xmlns="">
    <u_type>Logische WIN server</u_type>

    Hope anybody can help me.


    Greets, Luc

    Thursday, August 8, 2013 7:34 PM