Problem Calling ASP.NET Web Service from SAP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AndrewK
    New Member
    • Dec 2008
    • 16

    Problem Calling ASP.NET Web Service from SAP

    I've developed a fairly simple web service which receives an xml string, validates it and passes it on to our internal database.
    This has been written to enable one of our clients to send us idocs from their SAP system.
    The trouble is that, although the web service works fine from a .net program, over the internet, the client's SAP system can't access it. They either get just an http 200 back (rather than the status code that the web service should supply) or they get http 500 'Internal Server Error'.
    I was wondering if anyone else has had issue's with ASP.NET web services from non asp.net applications, or whether anyone can give me any advice on debugging http 500 errors.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    500 errors are a pain to fix.

    I recommend that you start by reviewing the Windows Event Logs on the server to see if you can find any entries that might give you a clue as to what's going wrong.

    Comment

    • AndrewK
      New Member
      • Dec 2008
      • 16

      #3
      Originally posted by Frinavale
      500 errors are a pain to fix.

      I recommend that you start by reviewing the Windows Event Logs on the server to see if you can find any entries that might give you a clue as to what's going wrong.
      Thanks for your reply Frinavale. I've been looking at the event logs but haven't really got anywhere. However, earlier today I think we may have discovered the problem. Passing XML in one of the string parameters seems to cause a problem. It works okay from a .net application but I presume that it's already a string when sent from .net. However, from SAP, the XML appears to affect the soap message somehow. The client has wrapped the XML in CDATA which appears to have fixed the problem.

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        :) I'm glad you solved your problem :)
        I'm not great with XML stuff but if you are still encountering errors I could help you determine what they mean (if I can)

        Comment

        • AndrewK
          New Member
          • Dec 2008
          • 16

          #5
          Thank you.

          Comment

          Working...