You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "huangzhen (Jira)" <ji...@apache.org> on 2019/10/30 10:02:00 UTC

[jira] [Commented] (CXF-8141) Weblogic12+版本后,@WebResult@WebParam注解失效了

    [ https://issues.apache.org/jira/browse/CXF-8141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16962880#comment-16962880 ] 

huangzhen commented on CXF-8141:
--------------------------------

代码:

import com.jfinal.ext.cxf.KGWebService;import com.jfinal.ext.cxf.KGWebService;
@WebService(name = "TestService" , serviceName = "TestService")

public interface TestService extends KGWebService \{ @WebMethod @WebResult(name = "testResult") public String test(@WebParam(name = "testParam" ) String test); }

tomcat下的WSDL:

  !image-2019-10-30-17-58-24-463.png!

 

weblogic12 下的WSDL:

 

!image-2019-10-30-17-59-39-653.png!

 

所有的输入参数都默认arg0,arg1,arg2.......等等

所有的输出参数都是result。

必须要去掉注解@WebResult@WebParam注解,才可以正常接收参数。

请问下这个是什么原因?有没有其他解决方案。

 

 

> Weblogic12+版本后,@WebResult@WebParam注解失效了
> ---------------------------------------
>
>                 Key: CXF-8141
>                 URL: https://issues.apache.org/jira/browse/CXF-8141
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>    Affects Versions: 2.1.10
>            Reporter: huangzhen
>            Priority: Major
>             Fix For: Invalid
>
>         Attachments: image-2019-10-30-17-54-33-283.png, image-2019-10-30-17-58-24-463.png, image-2019-10-30-17-59-39-653.png
>
>
> 我有个项目,使用了webservices来部署服务,部署在tomcat或者weblogic10版本里都是ok的。但是升级到weblogic12以上版本后,webservices接口里设置的参数@WebResult@WebParam注解失效了。



--
This message was sent by Atlassian Jira
(v8.3.4#803005)