Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Web services and SoapExceptions

Web services and SoapExceptions

Scheduled Pinned Locked Moved ASP.NET
wcfxmlquestionhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    M H 1 2 3
    wrote on last edited by
    #1

    I have a webservice method that throws a soapexception if it has any errors, but when I test the service via the services.asmx?op=webserviceMethod page and an exception is thrown the web page shows a 500 error. I expected it to show some xml with the error message I created, but maybe I'm missing something. Question: Is there a way to view the soap error message (xml) thats part of the SoapException instead of the 500 error?

    A M 2 Replies Last reply
    0
    • M M H 1 2 3

      I have a webservice method that throws a soapexception if it has any errors, but when I test the service via the services.asmx?op=webserviceMethod page and an exception is thrown the web page shows a 500 error. I expected it to show some xml with the error message I created, but maybe I'm missing something. Question: Is there a way to view the soap error message (xml) thats part of the SoapException instead of the 500 error?

      A Offline
      A Offline
      Atif Ali Bhatti
      wrote on last edited by
      #2

      hi, whenever i have an error which i can't understand after all my personal efforts i copy tht error message and paste in Google Search bar n get useful help. hope it also works for u. Regards, Atif

      1 Reply Last reply
      0
      • M M H 1 2 3

        I have a webservice method that throws a soapexception if it has any errors, but when I test the service via the services.asmx?op=webserviceMethod page and an exception is thrown the web page shows a 500 error. I expected it to show some xml with the error message I created, but maybe I'm missing something. Question: Is there a way to view the soap error message (xml) thats part of the SoapException instead of the 500 error?

        M Offline
        M Offline
        M H 1 2 3
        wrote on last edited by
        #3

        If you modify the auto generated class that wraps the web service you can get the raw xml. I was more or less just curious about whether or not the detail I added to my soap exception was being sent to the consumer correctly. See OmegaMans article http://www.codeproject.com/cs/webservices/SerializationFun.asp

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups