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.