Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Additional component to web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Goodmannewz - 24 Mar 2006 13:13 GMT
I post here is because there is no one answer my question(10 days ago) in
"web service" news group.

I am going to implement a program on the web service side. The program will
work with the web services so that it can do some check on the data before
invoking any web method. The program will do some general checks, and does
not know exactly what kinds of web methods behind.

I think I could write a dll, then let the web services to call this dll
first before the web methods are invoked. But I do not how to do exactly.

Is there any way to integrate the program into the web services? Please
give me a guide in details.

Thanks.
Rich Brown - 24 Mar 2006 17:45 GMT
You can use any dll or .net assembly so long as it is installed on the
iis server:

Open a new web service project > Right click references > Add
reference.

If it's a .net assembly select it from the list or browse to it's
location.

If it's a dll do the same in the COM tab.

You can then make calls against your component.
Rich Brown - 24 Mar 2006 17:45 GMT
You can use any dll or .net assembly so long as it is installed on the
iis server:

Open a new web service project > Right click references > Add
reference.

If it's a .net assembly select it from the list or browse to it's
location.

If it's a dll do the same in the COM tab.

You can then make calls against your component.
Dave - 29 Mar 2006 12:31 GMT
Hi,
I'm not 100% sure on exactly what you are trying to achieve. You want a
client to call your webservice, but validate the data they send to you before
a web method is called? Do you want this to be done:
a) On the client before calling your webservice
b) In the Webservice, but prior to the request being dispatched to a WebMethod
c) In the WebService, but you just want to validate the data in the web
method?

If you want b), this article details how to perform XSD validation prior to
your WebMethod being called, which even if you don't want XSD validation,
shows how to achieve validation:
http://msdn.microsoft.com/msdnmag/issues/02/11/XMLFiles/

If you want c), you can simply write an assembly which is referenced by your
webservice and you call the validation in each webmethod.

Let me know if that helps and if you need any more details
Thanks,
Dave

> I post here is because there is no one answer my question(10 days ago) in
> "web service" news group.
[quoted text clipped - 11 lines]
>
> Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.