我自己发布的axis2,访问wsdl看到如下,参数被自动命名为args0...:
<xs:element name="args0" type="xs:string" nillable="true" minOccurs="0"/>
<xs:element name="args1" type="xs:string" nillable="true" minOccurs="0"/>
<xs:element name="args2" type="xs:string" nillable="true" minOccurs="0"/>
别人的机器发布的看到的正常:
<xs:element name="towerX" type="xs:string" nillable="true" minOccurs="0"/>
<xs:element name="towerY" type="xs:string" nillable="true" minOccurs="0"/>
<xs:element name="towerID" type="xs:string" nillable="true" minOccurs="0"/>这是为什么,请赐教?环境:myeclipse 9,tomcat 6(*64),windows 7(*64),axis2
<xs:element name="args0" type="xs:string" nillable="true" minOccurs="0"/>
<xs:element name="args1" type="xs:string" nillable="true" minOccurs="0"/>
<xs:element name="args2" type="xs:string" nillable="true" minOccurs="0"/>
别人的机器发布的看到的正常:
<xs:element name="towerX" type="xs:string" nillable="true" minOccurs="0"/>
<xs:element name="towerY" type="xs:string" nillable="true" minOccurs="0"/>
<xs:element name="towerID" type="xs:string" nillable="true" minOccurs="0"/>这是为什么,请赐教?环境:myeclipse 9,tomcat 6(*64),windows 7(*64),axis2
解决方案 »
- 项目日志……
- javax.servlet.UnavailableException: org/springframework/core/NestedExceptionUtil
- 关于对文件加密~~~求教~~
- struts的action问题
- 关于Java正则表达式的疑问
- 求My Eclipse连接sql server 更方便简介的东西
- 如何让JSP页面自动刷新
- 网上美容系统,JSP怎么设计?
- 在线人数统计?就象聊天室??
- 求助,在Servlet中的ServletException如何在JSP页面显示出来,而不是500 ERROR?急!
- 求助。。为什么我的action不执行。。急
- 求助!如何实现在浏览器上打印的思路 itext如何实现
/**
* 接口说明
*
* @param imei
* @return
*/
public short pdaExit(String imei);发布用的是Axis2 Service Archiver。axis2的war包是1.61版本
要使wsdl文件中的方法参数显示为webservice接口中的实际的参数名称,
需要对webservice接口中的方法参数用@WebPara(name="参数名称")进行注解;
(提示: 是对接口定义的方法参数进行注解, 而不是对实现类的方法参数进行注解);
例如:webservice的认证接口定义:
public interface AuthService
{
public UserToken auth(@WebParam(name="userName") String userName, @WebParam(name="password") String password) throws ServiceException;
}