Soap Extension Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pepcag

    #1

    Soap Extension Problem

    I used
    http://msdn.microsoft.com/library/de...extensions.asp
    as a template to create a very simple web method with soap extension.

    The code like this:
    [WebMethod]
    [TraceExtensionA ttribute]
    public string HelloWorld()
    {
    return "Hello World.";
    }

    And the Soap Extension and Attribute are the same as the code from MSDN.

    When I call the web method in a windows application, I get the following
    error message:

    'DefaultDomain' : Loaded
    'c:\windows\mic rosoft.net\fram ework\v1.1.4322 \mscorlib.dll', No symbols
    loaded.
    'SoapClient': Loaded 'D:\Test\SoapCl ient\bin\Debug\ SoapClient.exe' , Symbols
    loaded.
    'SoapClient.exe ': Loaded
    'c:\windows\ass embly\gac\syste m.windows.forms \1.0.5000.0__b7 7a5c561934e089\ system.windows. forms.dll', No symbols loaded.
    'SoapClient.exe ': Loaded
    'c:\windows\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll', No
    symbols loaded.
    'SoapClient.exe ': Loaded
    'c:\windows\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .drawing.dll', No symbols loaded.
    'SoapClient.exe ': Loaded
    'c:\windows\ass embly\gac\syste m.web.services\ 1.0.5000.0__b03 f5f7f11d50a3a\s ystem.web.servi ces.dll', No symbols loaded.
    'SoapClient.exe ': Loaded
    'c:\windows\ass embly\gac\syste m.xml\1.0.5000. 0__b77a5c561934 e089\system.xml .dll', No symbols loaded.
    'SoapClient.exe ': Loaded
    'c:\windows\ass embly\gac\syste m.web\1.0.5000. 0__b03f5f7f11d5 0a3a\system.web .dll', No symbols loaded.
    'SoapClient.exe ': Loaded '7xi98smm', No symbols loaded.
    An unhandled exception of type 'System.Invalid OperationExcept ion' occurred
    in system.web.serv ices.dll

    Additional information: Client found response content type of '', but
    expected 'text/xml'.


    The program '[2436] SoapClient.exe' has exited with code 0 (0x0).

    Any one could help me?
  • Dan Rogers

    #2
    RE: Soap Extension Problem

    Hi,

    It sounds like the soap extension is not implemented properly. Try
    commenting out the TraceExceptionA ttribute line, recompile and see if the
    problem persists. If not, then you know that the code in the extension is
    not properly passing the streams between input and output in both
    directions.

    I hope this helps

    Dan Rogers
    Microsoft Corporation
    --------------------
    Thread-Topic: Soap Extension Problem
    thread-index: AcTHXDwQlHAbIGj KSMymafhCuTGsWA ==
    X-WBNR-Posting-Host: 216.191.75.102
    From: =?Utf-8?B?cGVwY2Fn?= <pepcag@discuss ions.microsoft. com>
    Subject: Soap Extension Problem
    Date: Wed, 10 Nov 2004 11:34:03 -0800
    Lines: 46
    Message-ID: <AF2F3E69-6008-4903-9BF0-960C86F3371E@mi crosoft.com>
    MIME-Version: 1.0
    Content-Type: text/plain;
    charset="Utf-8"
    Content-Transfer-Encoding: 7bit
    X-Newsreader: Microsoft CDO for Windows 2000
    Content-Class: urn:content-classes:message
    Importance: normal
    Priority: normal
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
    Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
    NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
    Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
    Xref: cpmsftngxa10.ph x.gbl
    microsoft.publi c.dotnet.framew ork.webservices :7352
    X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

    I used
    http://msdn.microsoft.com/library/de...us/cpguide/htm
    l/cpconalteringso apmessageusings oapextensions.a sp
    as a template to create a very simple web method with soap extension.

    The code like this:
    [WebMethod]
    [TraceExtensionA ttribute]
    public string HelloWorld()
    {
    return "Hello World.";
    }

    And the Soap Extension and Attribute are the same as the code from MSDN.

    When I call the web method in a windows application, I get the following
    error message:

    'DefaultDomain' : Loaded
    'c:\windows\mic rosoft.net\fram ework\v1.1.4322 \mscorlib.dll', No symbols
    loaded.
    'SoapClient': Loaded 'D:\Test\SoapCl ient\bin\Debug\ SoapClient.exe' , Symbols
    loaded.
    'SoapClient.exe ': Loaded
    'c:\windows\ass embly\gac\syste m.windows.forms \1.0.5000.0__b7 7a5c561934e089\ s
    ystem.windows.f orms.dll', No symbols loaded.
    'SoapClient.exe ': Loaded
    'c:\windows\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll',
    No
    symbols loaded.
    'SoapClient.exe ': Loaded
    'c:\windows\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .
    drawing.dll', No symbols loaded.
    'SoapClient.exe ': Loaded
    'c:\windows\ass embly\gac\syste m.web.services\ 1.0.5000.0__b03 f5f7f11d50a3a\s y
    stem.web.servic es.dll', No symbols loaded.
    'SoapClient.exe ': Loaded
    'c:\windows\ass embly\gac\syste m.xml\1.0.5000. 0__b77a5c561934 e089\system.xml .
    dll', No symbols loaded.
    'SoapClient.exe ': Loaded
    'c:\windows\ass embly\gac\syste m.web\1.0.5000. 0__b03f5f7f11d5 0a3a\system.web .
    dll', No symbols loaded.
    'SoapClient.exe ': Loaded '7xi98smm', No symbols loaded.
    An unhandled exception of type 'System.Invalid OperationExcept ion' occurred
    in system.web.serv ices.dll

    Additional information: Client found response content type of '', but
    expected 'text/xml'.


    The program '[2436] SoapClient.exe' has exited with code 0 (0x0).

    Any one could help me?

    Comment

    • pepcag

      #3
      RE: Soap Extension Problem

      Acutally, I test this program in Visual Stuido 2005 beta, and it works.

      "Dan Rogers" wrote:
      [color=blue]
      > Hi,
      >
      > It sounds like the soap extension is not implemented properly. Try
      > commenting out the TraceExceptionA ttribute line, recompile and see if the
      > problem persists. If not, then you know that the code in the extension is
      > not properly passing the streams between input and output in both
      > directions.
      >
      > I hope this helps
      >
      > Dan Rogers
      > Microsoft Corporation
      > --------------------
      > Thread-Topic: Soap Extension Problem
      > thread-index: AcTHXDwQlHAbIGj KSMymafhCuTGsWA ==
      > X-WBNR-Posting-Host: 216.191.75.102
      > From: =?Utf-8?B?cGVwY2Fn?= <pepcag@discuss ions.microsoft. com>
      > Subject: Soap Extension Problem
      > Date: Wed, 10 Nov 2004 11:34:03 -0800
      > Lines: 46
      > Message-ID: <AF2F3E69-6008-4903-9BF0-960C86F3371E@mi crosoft.com>
      > MIME-Version: 1.0
      > Content-Type: text/plain;
      > charset="Utf-8"
      > Content-Transfer-Encoding: 7bit
      > X-Newsreader: Microsoft CDO for Windows 2000
      > Content-Class: urn:content-classes:message
      > Importance: normal
      > Priority: normal
      > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
      > Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
      > NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
      > Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
      > Xref: cpmsftngxa10.ph x.gbl
      > microsoft.publi c.dotnet.framew ork.webservices :7352
      > X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
      >
      > I used
      > http://msdn.microsoft.com/library/de...us/cpguide/htm
      > l/cpconalteringso apmessageusings oapextensions.a sp
      > as a template to create a very simple web method with soap extension.
      >
      > The code like this:
      > [WebMethod]
      > [TraceExtensionA ttribute]
      > public string HelloWorld()
      > {
      > return "Hello World.";
      > }
      >
      > And the Soap Extension and Attribute are the same as the code from MSDN.
      >
      > When I call the web method in a windows application, I get the following
      > error message:
      >
      > 'DefaultDomain' : Loaded
      > 'c:\windows\mic rosoft.net\fram ework\v1.1.4322 \mscorlib.dll', No symbols
      > loaded.
      > 'SoapClient': Loaded 'D:\Test\SoapCl ient\bin\Debug\ SoapClient.exe' , Symbols
      > loaded.
      > 'SoapClient.exe ': Loaded
      > 'c:\windows\ass embly\gac\syste m.windows.forms \1.0.5000.0__b7 7a5c561934e089\ s
      > ystem.windows.f orms.dll', No symbols loaded.
      > 'SoapClient.exe ': Loaded
      > 'c:\windows\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll',
      > No
      > symbols loaded.
      > 'SoapClient.exe ': Loaded
      > 'c:\windows\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .
      > drawing.dll', No symbols loaded.
      > 'SoapClient.exe ': Loaded
      > 'c:\windows\ass embly\gac\syste m.web.services\ 1.0.5000.0__b03 f5f7f11d50a3a\s y
      > stem.web.servic es.dll', No symbols loaded.
      > 'SoapClient.exe ': Loaded
      > 'c:\windows\ass embly\gac\syste m.xml\1.0.5000. 0__b77a5c561934 e089\system.xml .
      > dll', No symbols loaded.
      > 'SoapClient.exe ': Loaded
      > 'c:\windows\ass embly\gac\syste m.web\1.0.5000. 0__b03f5f7f11d5 0a3a\system.web .
      > dll', No symbols loaded.
      > 'SoapClient.exe ': Loaded '7xi98smm', No symbols loaded.
      > An unhandled exception of type 'System.Invalid OperationExcept ion' occurred
      > in system.web.serv ices.dll
      >
      > Additional information: Client found response content type of '', but
      > expected 'text/xml'.
      >
      >
      > The program '[2436] SoapClient.exe' has exited with code 0 (0x0).
      >
      > Any one could help me?
      >[/color]

      Comment

      • pepcag

        #4
        RE: Soap Extension Problem


        I commnet out the TraceExtensiion Attribute line. It still reports same
        error. Is there something wron with soap message?

        "Dan Rogers" wrote:
        [color=blue]
        > Hi,
        >
        > It sounds like the soap extension is not implemented properly. Try
        > commenting out the TraceExceptionA ttribute line, recompile and see if the
        > problem persists. If not, then you know that the code in the extension is
        > not properly passing the streams between input and output in both
        > directions.
        >
        > I hope this helps
        >
        > Dan Rogers
        > Microsoft Corporation
        > --------------------
        > Thread-Topic: Soap Extension Problem
        > thread-index: AcTHXDwQlHAbIGj KSMymafhCuTGsWA ==
        > X-WBNR-Posting-Host: 216.191.75.102
        > From: =?Utf-8?B?cGVwY2Fn?= <pepcag@discuss ions.microsoft. com>
        > Subject: Soap Extension Problem
        > Date: Wed, 10 Nov 2004 11:34:03 -0800
        > Lines: 46
        > Message-ID: <AF2F3E69-6008-4903-9BF0-960C86F3371E@mi crosoft.com>
        > MIME-Version: 1.0
        > Content-Type: text/plain;
        > charset="Utf-8"
        > Content-Transfer-Encoding: 7bit
        > X-Newsreader: Microsoft CDO for Windows 2000
        > Content-Class: urn:content-classes:message
        > Importance: normal
        > Priority: normal
        > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
        > Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
        > NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
        > Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
        > Xref: cpmsftngxa10.ph x.gbl
        > microsoft.publi c.dotnet.framew ork.webservices :7352
        > X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
        >
        > I used
        > http://msdn.microsoft.com/library/de...us/cpguide/htm
        > l/cpconalteringso apmessageusings oapextensions.a sp
        > as a template to create a very simple web method with soap extension.
        >
        > The code like this:
        > [WebMethod]
        > [TraceExtensionA ttribute]
        > public string HelloWorld()
        > {
        > return "Hello World.";
        > }
        >
        > And the Soap Extension and Attribute are the same as the code from MSDN.
        >
        > When I call the web method in a windows application, I get the following
        > error message:
        >
        > 'DefaultDomain' : Loaded
        > 'c:\windows\mic rosoft.net\fram ework\v1.1.4322 \mscorlib.dll', No symbols
        > loaded.
        > 'SoapClient': Loaded 'D:\Test\SoapCl ient\bin\Debug\ SoapClient.exe' , Symbols
        > loaded.
        > 'SoapClient.exe ': Loaded
        > 'c:\windows\ass embly\gac\syste m.windows.forms \1.0.5000.0__b7 7a5c561934e089\ s
        > ystem.windows.f orms.dll', No symbols loaded.
        > 'SoapClient.exe ': Loaded
        > 'c:\windows\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll',
        > No
        > symbols loaded.
        > 'SoapClient.exe ': Loaded
        > 'c:\windows\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .
        > drawing.dll', No symbols loaded.
        > 'SoapClient.exe ': Loaded
        > 'c:\windows\ass embly\gac\syste m.web.services\ 1.0.5000.0__b03 f5f7f11d50a3a\s y
        > stem.web.servic es.dll', No symbols loaded.
        > 'SoapClient.exe ': Loaded
        > 'c:\windows\ass embly\gac\syste m.xml\1.0.5000. 0__b77a5c561934 e089\system.xml .
        > dll', No symbols loaded.
        > 'SoapClient.exe ': Loaded
        > 'c:\windows\ass embly\gac\syste m.web\1.0.5000. 0__b03f5f7f11d5 0a3a\system.web .
        > dll', No symbols loaded.
        > 'SoapClient.exe ': Loaded '7xi98smm', No symbols loaded.
        > An unhandled exception of type 'System.Invalid OperationExcept ion' occurred
        > in system.web.serv ices.dll
        >
        > Additional information: Client found response content type of '', but
        > expected 'text/xml'.
        >
        >
        > The program '[2436] SoapClient.exe' has exited with code 0 (0x0).
        >
        > Any one could help me?
        >[/color]

        Comment

        • Dan Rogers

          #5
          RE: Soap Extension Problem

          Hi

          If commenting out the soap extension (e.g. deactivating it) still gives you
          an exception, it is very likely that the call itself is not properly
          formed. How are you creating the call?

          Another thing to check is to make sure you didn't also install the
          extension via a config entry. If so, disable it there as well. If you
          have taken the extension out of play, it is not the source of your problem
          if the calls still fail with an exception. In that case it is almost
          definitely the request coming in being malformed XML.

          Are you sure the exception isn't being generated in the calling program?
          if IIS is throwing an HTML error and not launching your application (e.g.
          an HTTP encoded 500 response) then the proxy client will choke on the
          returned HTML page. When deploying web services on IIS, you should
          manually reconfigure the errors such as 404 not found and 500 server error
          from the friendly page defaults to a valid SOAP fault response.

          Hope this helps

          Dan Rogers
          Microsoft Corporation
          --------------------
          Thread-Topic: Soap Extension Problem
          thread-index: AcTyesrU0BbbTOh JQy+gNDFrIR9X8Q ==
          X-WBNR-Posting-Host: 216.191.75.102
          From: =?Utf-8?B?cGVwY2Fn?= <pepcag@discuss ions.microsoft. com>
          References: <AF2F3E69-6008-4903-9BF0-960C86F3371E@mi crosoft.com>
          <E6RWoLO2EHA.39 56@cpmsftngxa10 .phx.gbl>
          Subject: RE: Soap Extension Problem
          Date: Tue, 4 Jan 2005 08:31:07 -0800
          Lines: 97
          Message-ID: <696FF687-4180-421B-BBE2-6218131C0961@mi crosoft.com>
          MIME-Version: 1.0
          Content-Type: text/plain;
          charset="Utf-8"
          Content-Transfer-Encoding: 7bit
          X-Newsreader: Microsoft CDO for Windows 2000
          Content-Class: urn:content-classes:message
          Importance: normal
          Priority: normal
          X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
          Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
          NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
          Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
          Xref: cpmsftngxa10.ph x.gbl
          microsoft.publi c.dotnet.framew ork.webservices :8394
          X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices


          I commnet out the TraceExtensiion Attribute line. It still reports same
          error. Is there something wron with soap message?

          "Dan Rogers" wrote:
          [color=blue]
          > Hi,
          >
          > It sounds like the soap extension is not implemented properly. Try
          > commenting out the TraceExceptionA ttribute line, recompile and see if the
          > problem persists. If not, then you know that the code in the extension[/color]
          is[color=blue]
          > not properly passing the streams between input and output in both
          > directions.
          >
          > I hope this helps
          >
          > Dan Rogers
          > Microsoft Corporation
          > --------------------
          > Thread-Topic: Soap Extension Problem
          > thread-index: AcTHXDwQlHAbIGj KSMymafhCuTGsWA ==
          > X-WBNR-Posting-Host: 216.191.75.102
          > From: =?Utf-8?B?cGVwY2Fn?= <pepcag@discuss ions.microsoft. com>
          > Subject: Soap Extension Problem
          > Date: Wed, 10 Nov 2004 11:34:03 -0800
          > Lines: 46
          > Message-ID: <AF2F3E69-6008-4903-9BF0-960C86F3371E@mi crosoft.com>
          > MIME-Version: 1.0
          > Content-Type: text/plain;
          > charset="Utf-8"
          > Content-Transfer-Encoding: 7bit
          > X-Newsreader: Microsoft CDO for Windows 2000
          > Content-Class: urn:content-classes:message
          > Importance: normal
          > Priority: normal
          > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
          > Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
          > NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
          > Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
          > Xref: cpmsftngxa10.ph x.gbl
          > microsoft.publi c.dotnet.framew ork.webservices :7352
          > X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
          >
          > I used
          >[/color]
          http://msdn.microsoft.com/library/de...us/cpguide/htm[color=blue]
          > l/cpconalteringso apmessageusings oapextensions.a sp
          > as a template to create a very simple web method with soap extension.
          >
          > The code like this:
          > [WebMethod]
          > [TraceExtensionA ttribute]
          > public string HelloWorld()
          > {
          > return "Hello World.";
          > }
          >
          > And the Soap Extension and Attribute are the same as the code from MSDN.
          >
          > When I call the web method in a windows application, I get the following
          > error message:
          >
          > 'DefaultDomain' : Loaded
          > 'c:\windows\mic rosoft.net\fram ework\v1.1.4322 \mscorlib.dll', No symbols
          > loaded.
          > 'SoapClient': Loaded 'D:\Test\SoapCl ient\bin\Debug\ SoapClient.exe' ,[/color]
          Symbols[color=blue]
          > loaded.
          > 'SoapClient.exe ': Loaded
          >[/color]
          'c:\windows\ass embly\gac\syste m.windows.forms \1.0.5000.0__b7 7a5c561934e089\ s[color=blue]
          > ystem.windows.f orms.dll', No symbols loaded.
          > 'SoapClient.exe ': Loaded
          > 'c:\windows\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll',
          > No
          > symbols loaded.
          > 'SoapClient.exe ': Loaded
          >[/color]
          'c:\windows\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .[color=blue]
          > drawing.dll', No symbols loaded.
          > 'SoapClient.exe ': Loaded
          >[/color]
          'c:\windows\ass embly\gac\syste m.web.services\ 1.0.5000.0__b03 f5f7f11d50a3a\s y[color=blue]
          > stem.web.servic es.dll', No symbols loaded.
          > 'SoapClient.exe ': Loaded
          >[/color]
          'c:\windows\ass embly\gac\syste m.xml\1.0.5000. 0__b77a5c561934 e089\system.xml .[color=blue]
          > dll', No symbols loaded.
          > 'SoapClient.exe ': Loaded
          >[/color]
          'c:\windows\ass embly\gac\syste m.web\1.0.5000. 0__b03f5f7f11d5 0a3a\system.web .[color=blue]
          > dll', No symbols loaded.
          > 'SoapClient.exe ': Loaded '7xi98smm', No symbols loaded.
          > An unhandled exception of type 'System.Invalid OperationExcept ion'[/color]
          occurred[color=blue]
          > in system.web.serv ices.dll
          >
          > Additional information: Client found response content type of '', but
          > expected 'text/xml'.
          >
          >
          > The program '[2436] SoapClient.exe' has exited with code 0 (0x0).
          >
          > Any one could help me?
          >[/color]

          Comment

          Working...