Re: Web Service exception

From: Christoph Schittko [MVP] (INVALIDEMAIL_at_austin.rr.com)
Date: 12/29/04

  • Next message: Christoph Schittko [MVP]: "Re: User Login Webservice"
    Date: Tue, 28 Dec 2004 21:52:09 -0600
    
    

    Mike,

    Your best bet is to get to the text of the error message. Since it's
    html formatted it should be easy to read. If the returned error message
    is the html error message from ASP.NET then it means something isn't set
    up correctly at your web server.

    Have you tried putting a tracing tool like tcpTrace [0] between your
    user control and your web service? Since you mentioned that you are
    reading the URL from a config file it should be easy for you to point
    the client to the trace tool. The tool will then reveal the HTML
    response of the server and get you on your way to troubleshoot the
    problem. Note that you have to remove the trace tool once you fixed your
    problems because WSE takes offense at the URL in the HTTP header not
    matching the <To> SOAP header [1].

    HTH,
    Christoph Schittko
    MVP XML
    http://weblogs.asp.net/cschittko

    [0] http://www.pocketsoap.com/tcptrace/
    [1] http://weblogs.asp.net/cschittko/archive/2004/05/24/140906.aspx

    > -----Original Message-----
    > From: Mike Z [mailto:MikeZ@discussions.microsoft.com]
    > Posted At: Monday, December 27, 2004 4:29 PM
    > Posted To: microsoft.public.dotnet.framework.aspnet.webservices
    > Conversation: Web Service exception
    > Subject: Re: Web Service exception
    >
    > Thanks.
    >
    > I re-added the web service. No help.
    >
    > It may help to know that I am accessing the web service via a Windows
    > control hosted in IE.
    >
    > In it, I dynamically set the web service url via a public property.
    Could
    > this problem be related to a difference in the build between when I
    added
    > the
    > web service with a local reference and the build on the web service in
    our
    > test environment?
    >
    > It didn't seem to matter before this. In fact, it was working just
    fine
    > in
    > our test environment last week, but this morning crapped out with no
    known
    > changes.
    >
    > It seems possible that there's an error being hidden by the html
    response,
    > but because the client expects xml, it hides it with another error.
    >
    > Is there somewhere I need to explicitly set the response content type,
    > possibly as an attribute or a web.config entry?
    >
    >
    >
    > "Ravi Singh (UCSD)" wrote:
    >
    > > Hey Mike
    > >
    > > I would suggest you first check the namespaces in the refrences.cs,
    > > open the refrences.cs and readd the webservice. Additionally when
    you
    > > add the webservice, ensure that you are at
    > >
    > > http://localhost/SM/SM.asmx?wsdl and not
    > > http://localhost/SM/SM.asmx
    > > check this is so in the web.config file.
    > >
    > > Hope this helps
    > >
    > > -Ravi Singh
    > >
    > >


  • Next message: Christoph Schittko [MVP]: "Re: User Login Webservice"

    Relevant Pages

    • Re: Error from Ebservice method call
      ... It could be that the web service returned for example an HTML page with an ... error message. ... Can you manually browse to the web service and invoke it from ...
      (microsoft.public.dotnet.framework.aspnet.webservices)
    • Connecting to a web service thru a proxy server
      ... I have an application which calls a method of a web service ... Dim nwCred as NetworkCredential ... Dim pwd As String ... Error Message: The request failed with HTTP status 407: ...
      (microsoft.public.dotnet.framework.webservices)
    • Connecting to a web service thru a proxy server
      ... I have an application which calls a method of a web service ... Dim nwCred as NetworkCredential ... Dim pwd As String ... Error Message: The request failed with HTTP status 407: ...
      (microsoft.public.dotnet.security)
    • Connecting to a web service thru a proxy server
      ... I have an application which calls a method of a web service ... Dim nwCred as NetworkCredential ... Dim pwd As String ... Error Message: The request failed with HTTP status 407: ...
      (microsoft.public.inetserver.iis.security)
    • Re: problem with IE automation when used in webservice
      ... I am writing a class for manipulating specific html pages ... It is supposed to be used from a web service. ... ie.Navigate("myurl", ref dummy, ref dummy, ref dummy, ref dummy); ... (when the same code is used in a "normal" windows forms application, ...
      (microsoft.public.dotnet.general)

    Loading