开发者

WCF service method

开发者 https://www.devze.com 2023-03-06 13:46 出处:网络
I am creating a wcf service in .net. In the service I have added function named XYZ as: public int XYZ(int a){

I am creating a wcf service in .net. In the service I have added function named XYZ as:

public int XYZ(int a){
return a+a;
}

When i added the web reference of web service in my web application and accessed the function XYZ, here it requires two parameters one is of int type and second is of bool type.

But originally i had added single parameter in XYZ function in wcf service.

If someone has idea then please let me know that how to handle this. Because my wcf service will be called f开发者_如何学运维rom flash code.


If you are adding a Web Reference to your project instead of Service Reference then you'll get "extra" parameters as described here. You should be adding a Service Reference to create a proxy for your service that matches the WCF ServiceContract description of your service. Also, the "extra" parameters only show up for ASMX-based clients. They won't be required for the Flash client to call the WCF Service.

0

精彩评论

暂无评论...
验证码 换一张
取 消