VB.NET accessing SAP Webservice RRS feed

  • Question

  • Hi experts, I need some help.

    This is my scenario.

    I have had a webservice from SAP ECC (written from a function module).

    It's working OK in other platforms (e.g. being consumed from iPhone/iPad applications).

    However, I can't get it working from ASP.Net (using Visual studio 2010).


    I have included the webservice using the following URL convention:



    and it has generated the correct code-behind files and web.config file from Visual studio.


    I have passed the user id & password with sap_all authentication.

    However, when I run the webservice, I had the following error:

    "System.Xml.XmlException: The data at the root level is invalid. Line 1, position 1."


    When I checked from fiddler, the webservice actually runs and returns the correct result in textview & webview, but XML tab remains empty.

    What went wrong? Did I call the webservice incorrectly? Or is there anything to do with the SOAP protocols?


    Pls advise

    Thks in advance.



    Wednesday, June 18, 2014 4:01 AM


  •  I had the following error:

    "System.Xml.XmlException: The data at the root level is invalid. Line 1, position 1."

    It's telling you above what is wrong, and you need to find out what about that XML is invaild.

    You need to take this xml if possible and try to load it into a xml.doc object to see if it can be loaded into the object.

    I had XML come from a 3rd party vendor Web service that had invalid characters in the XML. I had to fix the XML on the fly so that the XML could be used in the .NET solution. So you may need to do something simliar.

    But first, you need to find out what is invalid about the XML that is causing a XML exception to be thrown.

    Wednesday, June 18, 2014 8:54 PM