Problem AXL +C#  .net visual studio 2008

Version 1
    This document was generated from CDN thread

    Created by: de witte renier on 24-10-2008 09:01:30 AM
    I'm making a tool in visual studio 2008 using C# for call manger using the axl webservice

    i have downloaded the 2 files from the callmanger and created the class using wsdl.exe

    after that i followed the instructions readme.txt
    then i created an object from that class.
    and ask a simpel thing like

    ListUserByNameRes res = axl.listUserByName(req);
    here is when i get an error and the object res is null
    the error that VS gives me is
    Object reference not set to an instance of an object

    wen i tracert the axl service in real time monitor i see this.
    {color kiss 000000}2008-10-25 04:34:24,629 INFO [http-8443-Processor16] axl.AXLRouter - Received request 1224730975334 from admin at IP
    2008-10-25 04:34:24,630 INFO [http-8443-Processor16] axl.AXLRouter - <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="" xmlns:xsi="" xmlns:xsd=""><soap:Body><listUserByName xmlns=""><firstname xmlns="">*</firstname><lastname xmlns="">renier</lastname><searchLimit xmlns="">0</searchLimit></listUserByName></soap:Body></soap:Envelope>
    2008-10-25 04:34:24,661 INFO [http-8443-Processor16] axl6_0.Handler - Handler initializing
    2008-10-25 04:34:24,666 INFO [http-8443-Processor16] axl.AXLRouter - <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="" SOAP-ENV:encodingStyle=""><SOAP-ENV:Header/><SOAP-ENV:Body><axl:listUserByNameResponse xmlns:axl="" xmlns:xsi=""><return><user userid="renier"><firstname>renier</firstname><lastname>renier</lastname></user></return></axl:listUserByNameResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
    2008-10-25 04:34:24,667 INFO [http-8443-Processor16] axl.AXLRouter - Request 1224730975334 was process in 82ms{color}

    has someone any idee why i don't recieve that in visual studio?
    and my object is null?


    Subject: Re: Problem AXL +C#  .net visual studio 2008
    Replied by: David Staudt on 24-10-2008 12:59:26 PM
    Some older versions (4.x and earlier) of AXL returned the incorrect namespace in their SOAP response messages. As of CM5.x, a service parameter was added to the DBL Layer Monitor service (under Advanced) that controls whether AXL continues to return the incorrect namespace (for backward compatibility) or returns the correct namespace.

    I can see in your AXL log snippet that AXL is providing


    instead of


    This likely causes .NET to consider the SOAP message non-relevant and ignore it, returning a null.

    You would need to change the service parameter so that AXL returns the matching namespace. Note, this could cause a conflict with other AXL applications which have been hard-coded to work with the old/incorrect namespace.

    Subject: Re: Problem AXL +C#  .net visual studio 2008
    Replied by: de witte renier on 24-10-2008 01:46:31 PM
    thanks, now it is working i based myself on this post. because i am just learning about it an it is kinda new for me

    thank you make my weekend is good

    Edited by: de witte renier on 24-okt-2008 9:48