将额外参数传递给asmx

将额外参数传递给asmx

本文介绍了将额外参数传递给asmx webservice的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个已经存在的webservice,从应用程序中调用了100个函数。



我需要在应用程序到webservice上再添加一个参数(UserId)每次通话。



我必须手动编辑所有功能和来自应用程序的电话的签名来实现它。



是否有更好/替代的方式在每次通话时将我的用户ID发送到网络服务?

解决方案



I have an already existing webservice having 100s of functions being called from the application.

I need to add one more parameter (UserId) from application to webservice on each call.

I'll have to manually edit signatures of all the functions and calls from application to achieve it.

Is there a better / alternative way of sending my User Id to webservice on each call?

解决方案




这篇关于将额外参数传递给asmx webservice的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 19:22