Help needed in Web service

R

Raghu Raman

Hi,

I have made a webservice which has a class file in it.
The web service gets the dataset from the class and it is coded to just
return the dataset to the web page.It was working nice when i run it in
the webservice itself.

* The web service accepts the i/p parameters as below
-----------------------------------
<webmethod>

public filldata(byval db as string,byval server as string,byval qry as
string) as dataset
filldata=obj.getrows(db,server,qry)

and worked nice.

-----------------------------------
After that i closed that web service and opened a new web form . I
added the web reference for that web service.It also worked nice and
showing the same result in that ref.. screen.
-----------------------------------
IF i link in my webpage it tells the ERROR AS

HTTP// STATUS ;401 ACCESS DENIED & shows some dim statement
-----------------------------------
which i never used(all are public)
My code in the web page is
-----------------------------------
Imports obj as localhost.service1
PUBLIC Dset AS NEW DATASET
private bt1_clicked event
dset=obj.filldata(db,server,qrr)
-----------------------------------
db,server,qrrr are assigned their values

comment
-------
Since it shows the result in the web reference screen ,why it does not
whows the rows in my web page.

Please clear my doubts and tell what the mistake i made.


Thanks in advance
Raghuraman


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
R

Rick Spiewak

Is this really your line of code:
Imports obj as localhost.service1

If it is, it should read:

Dim obj as new localhost.service1
 
R

Raghu Raman

Hai
Rick Spiewak.Thanks for u r reply.The problem was i did'not
connected the name of the dll to that code and i solved that.

Raghu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top