When to use the page method or create a web service?

Our team is trying to figure out some guidelines for using pagemethods against creating the actual asmx web service. It seems to me that pagemethods are primarily intended for calls of the same type, which are specific to the page where asmx are intended, designed for more reusable set of operations and services. Does this sound right?

+5
source share
2 answers

Yes. If you intend to use something that will be used by several applications, it is advisable to create it as a separate service, so you will not repeat the code between applications, as well as if you need to change your change in one place.

, , , 2 , - . , -, /​​ , . , , -, , -, , , , , , , , , , Windows.

...

+4

, , , , - . , . , - , . - , , .

: ArmedMonkey , .

+1

All Articles