Web Service call API

From: Kory Skistad (kskistad_at_hotmail.com)
Date: 11/23/04


Date: 22 Nov 2004 17:29:09 -0800

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: Send Mail on local machine
    ... Can send from Windows App but not from aspx.cs. ... It works on my web server, ... >> to relay for myhandle@lu.com ... >> Sub SendMail() ...
    (microsoft.public.dotnet.framework.aspnet)
  • Custom classes with web services
    ... I also have a Windows app that will reference a couple of web services. ... Each web service references the .dll to get the user class. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Keeping objects between requests within the same session
    ... I tried using that, but when working with my Windows App accessing the DLL, ... to initialize it, so to speak (I imagine this is explicitly doing what, in a ... > the current page request. ...
    (microsoft.public.dotnet.framework.aspnet)
  • TCP Address Question
    ... I have an ASP.net page that uses a dll to send a request via TCP ... The Windows app receives (TCPListener / TCPClient / XMLDeserialiser) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Sharing common code
    ... > I have two apps (one is a service and one is a windows app) that share some ... > common classes. ... > I've thought about making a DLL out the common class but 1) Don't know how ...
    (microsoft.public.dotnet.languages.vb)