您的位置:首页 > 其它

xfire客户端调用cxf服务的时候 传递过去的参数,String 类型的 老是为null

2011-08-26 10:42 615 查看
在接口 定义中加入 @WebParam 写入命名空间:

例如

package com.xdja.webservices.service;

---------------------

@WebService

public interface RequestPower

--------------------

public String test(

@WebParam(name="text", targetNamespace= "http://com.xdja.webservices.service/")String text,

@WebParam(name="text2", targetNamespace= "http://com.xdja.webservices.service/")String text2);

name= "text" 和 name= "text2" 可以不要; targetNamespace 必须要;

com.xdja.webservices.service 用的 此接口类 的包路径
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐