◎筱米加步枪◎.Blog

Happy coding

XFire客户端调用Tuscany发布的WebService服务端接收不到参数解决方法

筱米加步枪 posted @ 2012年2月14日 18:33 in [ 开源框架 ] with tags XFire WebService , 4364 阅读

为了验证不同实现的客户端调用WebService都能成功,证明WebService平台无关性,

场景如下:

服务端WebService由Tuscany进行发布,客户端用XFire(插件生成XFire客户端代码)进行调用。

结果:

服务端接收不到参数,接收的参数为null,但是XFire客户端却能够接收到服务端返回的参数。

解决方法:

在XFire生成的接口中指定名字空间。

1.接收上指定@WebService指定名字空间targetNamespace="http://com.xxx.web.client.gen/"

2.在接口参数上@WebParam指定名字空间targetNamespace="http://com.xxx.web.client.gen/"

注:com.xxx.web.client.gen为此接口类所在的包名。

NCERT Computer Quest 说:
2022年9月29日 00:29

The 10th class candidates who have wish to know the new exam scheme or question pattern for SA1, SA2, FA1, FA2, FA3, FA4 and Assignment exams can download NCERT STD-10 Computer Science Sample Paper 2023 for revised question paper style to Term-1 & Term-2 of the course. Subject experts of the country have suggested the NCERT 10th Class Computer Question Bank 2023 for all Secondary level students for Self Practicing. NCERT Computer Question Paper Class 10 The 10th class candidates who have wish to know the new exam scheme or question pattern for SA1, SA2, FA1, FA2, FA3, FA4 and Assignment exams can download NCERT STD-10 Computer Science Sample Paper 2023.

civaget 说:
2024年1月11日 04:13

I haven’t checked in here for some time as I thought it was getting boring, but the last few posts are great quality so I guess I’ll add you back to my daily bloglist. You deserve it friend how to make my google docs dark mode

seo service london 说:
2024年1月16日 01:49

Excellent blog here! Also your site a lot up fast! What web host are you the usage of? Can I get your affiliate link in your host? I wish my site loaded up as quickly as yours lo


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter