RE: Web Service call API

From: Dan Rogers (danro_at_microsoft.com)
Date: 11/23/04


Date: Tue, 23 Nov 2004 21:56:49 GMT

Hi Kory,

Sounds like there may be a namespace issue involved on the wire - but need
to understand your topology. Are you saying that you took a third party
application and wrote a managed code web service wrapper for some of the
methods it exposed? Or are you saying that the application already
provided web service interfaces? Or, by web service, do you mean that the
application uses a browser do display data?

Assuming it IS a web service, how did you build the caller-side proxy?

Regards

Dan Rogers
Microsoft Corporation
--------------------
>From: kskistad@hotmail.com (Kory Skistad)
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
>Subject: Web Service call API
>Date: 22 Nov 2004 17:29:09 -0800
>Organization: http://groups.google.com
>Lines: 32
>Message-ID: <c27ce0e1.0411221729.7b0d0606@posting.google.com>
>NNTP-Posting-Host: 209.180.28.6
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1101173349 13995 127.0.0.1 (23 Nov 2004
01:29:09 GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: Tue, 23 Nov 2004 01:29:09 +0000 (UTC)
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwi
x.com!newsfeed.cwix.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news
.glorb.com!postnews.google.com!not-for-mail
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:26761
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
>We have an API library provided by a vendor. When I run this as a
>Windows App under .NET, it works correctly. However, when I converted
>it to a web service, it returns 0 values but doesn't cause an error to
>occur.
>
>What is strange is when I try to change the code to cause an error to
>occur, such as passing invalid arguments into the function, etc.
>still no errors occur and values are returned from the function but
>they are always zero.
>
>Another strange thing- I wanted to see if it was even finding the DLL
>on the server, so I renamed the file in the Declare statement as
>"Analysis.dlx" and it did report an error... so I changed the file
>itself to "Analysis.dlx" and the error disappeared. I took this to
>mean the it was indeed trying to use that particular file. BUT...
>Then I changed the Delcare back to "Analysis.DLL" and the function
>still worked! I didn't rename the file back from "Analysis.DLX", so I
>don't think it would be using that file, and I did a complete search
>of the harddrive and found no "Analysis.dll" anywhere (btw, I am using
>my PC as the web server so all development is happening on one PC). I
>did try closing VS and restarting to see if it was caching the DLL
>someplace but that didn't change the behavior. (I didn't try rebooting
>between changes though... that seemed too drastic)
>
>I am stumpped by this one. I've tried using DLLImports too to see if
>that would make a difference, and that didn't help. In summary, it
>appears the function is being called, but correct data is not
>returning and sending invalid arguements to the function that would
>cause it to error in a windows app is not causing any errors in a web
>service app.
>
>Anyone? Anyone?
>



Relevant Pages

  • Re: Calling web service from ASP
    ... >I've a requirement to call a web service from an ASP page. ... >service and I thought I can call that component very easily from ASP. ... >have the code to place these permissions dynamically at client place, ... >Some people are saying that using VB.NET as the language, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Basic Authentication - Windows Server 2003
    ... works, and when you hit W2k3, it doesnt? ... Or are you saying that the backend server is the same, ... > The first web service request is authenticated correctly using basic ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: SinisterFlames
    ... One fuckwit would make both posts, or 2 seperate people posting ... pass it through an NNTP server, so anyone using that web service for posting ... assume after saying the place doesn't exist that they'll now drop by), ...
    (rec.motorcycles.harley)
  • WEB Services and .NET Remoting...
    ... A WEB Service and a .NET Remoting application (if I am saying that ... Service and a .NET Remoting application but a NON .NET application ... .NET Web Service but CAN use a .NET Remoting application? ... can a NON .NET like a MFC application use .NET Remoting to ...
    (microsoft.public.dotnet.framework.remoting)
  • WEB Services and .NET Remoting...
    ... A WEB Service and a .NET Remoting application (if I am saying that ... Service and a .NET Remoting application but a NON .NET application ... .NET Web Service but CAN use a .NET Remoting application? ... can a NON .NET like a MFC application use .NET Remoting to ...
    (microsoft.public.dotnet.distributed_apps)