Home All Groups Group Topic Archive Search About

Additional component to web service

Author
24 Mar 2006 12:13 PM
Goodmannewz
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.

Author
29 Mar 2006 11:31 AM
Dave
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

Show quote
"Goodmannewz" wrote:

> 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.

AddThis Social Bookmark Button