在Web服务中包含多个名称空间 [英] Include more than one namespace in web service

查看:56
本文介绍了在Web服务中包含多个名称空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了一个Web服务,但是我需要做些什么才能包含多个命名空间。
例如:我的web服务soap请求就像这样


Hi,

I created a web service, but what should I need to do to include more than one namespace.
For eg: my web service soap request is like this now

 <DeliverSms xmlns="http://tempuri.org">
<DeliverSmsRequestElement>
..body...
</DeliverSmsRequestElement>
</DeliverSms>


我需要它像这样


and I need it like this

 <DeliverSms xmlns="http://tempuri.org
"  xmlns:ns2="http://something.com" xmlns:ns3="http://something.com"
>
<DeliverSmsRequestElement>
--body--
</DeliverSmsRequestElement>
</DeliverSms>


请建议

Please advice

推荐答案

您的示例不使用ns2或ns3。您是否要使用这些名称空间?
Your example is not using ns2 or ns3. Did you mean to use those namespaces?


这篇关于在Web服务中包含多个名称空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆