Groups | Blog | Home
all groups > asp.net webservices > june 2008 >

asp.net webservices : default.aspx returns instead of the service ? Help please...



Patrice
6/2/2008 2:38:43 PM
Not sure what you meant by "searching for the web service". It looks like it
works when you "put the full url". What is wrong with this ? AFAIK when
calling a service you want to specify the full path ???

Also at which step are you ? Is this when you create the proxy DLL or at
runtime ? lese double check your service doesn't have something particular
such as testing for the user agent....

--
Patrice

"con" <Con@nospam.nospam> a écrit dans le message de groupe de discussion :
OMdWHxKxIHA.5620@TK2MSFTNGP04.phx.gbl...
[quoted text, click to view]
con
6/2/2008 10:29:14 PM
I am making a call to a asp.net web site that has a web services in a
subdirectory of the main site ie:
www.mainweb.com/webservice/dosomethingservice.asmx ( Using vs2005 to locate
the service via add web service )

Call originates in vb.net on the same server, each attempt to connect to
the web service it results in the default.aspx page being processed, this
occurs when searching for the web service except when I put the full url in
and it finds it right away.

I have a default.aspx which is configured in the web site.

what am I missing ?

Running IIS v6, .net 2.0 framework, vs2005 projects & web site.

Thanks in Advance
con
6/3/2008 7:31:55 AM

Sorry I did not explain it properly, when I call the web service it returns
the html of default.aspx, instead of the web service.


[quoted text, click to view]
Patrice
6/3/2008 10:29:00 AM
First of all do you call the correct url ? I'm confused when you say that it
works when you provide the corect address which is what you should do anyway
???

Else this is because the service redirects you to the main page (my first
thought would be an authentication issue). What if you try to call a dummy
service at the root of your web site ?

--
Patrice

"con" <Con@nospam.nospam> a écrit dans le message de groupe de discussion :
e2mjZgPxIHA.5288@TK2MSFTNGP06.phx.gbl...
[quoted text, click to view]
con
6/3/2008 8:53:20 PM
I am unsure on how to do the dummy call, authentication is setup via
windows.

When I provide the address within VS it connects to the service without
issue,
when it attempts to connect when run from the command prompt it returns the
default.aspx html.

I hope this clarifies it.

[quoted text, click to view]
AddThis Social Bookmark Button