Java 警告:WSDL操作上的输入操作与其关联的Web方法上的@Action不匹配,这将导致调度请求时出现问题

Java 警告:WSDL操作上的输入操作与其关联的Web方法上的@Action不匹配,这将导致调度请求时出现问题,java,web-services,soap,wsdl,Java,Web Services,Soap,Wsdl,尽管SEI WebMethod上的action属性值与WSDL操作的SoapAction匹配,但在尝试从java代码调用服务方法时,我一直收到以下警告 com.sun.xml.internal.ws.model.JavaMethodImpl freeze WARNING: Input Action on WSDL operation inquirePayees and @Action on its associated Web Method inquirePayees did not match

尽管SEI WebMethod上的action属性值与WSDL操作的SoapAction匹配,但在尝试从java代码调用服务方法时,我一直收到以下警告

com.sun.xml.internal.ws.model.JavaMethodImpl freeze
WARNING: Input Action on WSDL operation inquirePayees and @Action on its associated Web Method inquirePayees did not match and will cause problems in dispatching the requests
下面是WSDL片段

  <s0:portType name="billPayeeServicePortType">
    <s0:operation name="inquirePayees">
      <s0:input message="s1:custPayee50InqRequest" s2:Action="http://services.abc.com/billPayee50Service/Services/billPayeeService/#CustPayee50InqRequest"/>
      <s0:output message="s1:custPayee50InqResponse" s2:Action="http://services.abc.com/billPayee50Service/Services/billPayeeService/#CustPayee50InqResponse"/>
    </s0:operation>
  </s0:portType>
  <s0:binding name="billPayeeServiceSOAP" type="s1:billPayeeServicePortType">
    <s3:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>    
    <s0:operation name="inquirePayees">
      <s3:operation soapAction="http://services.abc.com/InquirePayeeService/Services/InquirePayeeService/#CustPayeeInqRequest" style="document"/>
      <s0:input>
        <s3:body parts="custPayee50InqRequest" use="literal"/>
      </s0:input>
      <s0:output>
        <s3:body parts="custPayee50InqResponse" use="literal"/>
      </s0:output>
    </s0:operation>    
  </s0:binding>
你知道这是怎么回事吗?为什么我会看到这个警告?是否有方法抑制此警告

我尝试删除上面WSDL中输入和输出元素的Action属性,因为输入元素Action与InquirePayes操作的soapAction不匹配。那没用


非常感谢您的帮助。

您的wsimport版本和参数是什么

    /**
     * This class was generated by the JAX-WS RI.
     * JAX-WS RI 2.2.9-b14002
     * Generated source version: 2.2
     * 
     */
试一试

或者您的webservice方法中类似的东西。看

    /**
     * This class was generated by the JAX-WS RI.
     * JAX-WS RI 2.2.9-b14002
     * Generated source version: 2.2
     * 
     */
    @Action(input = "http://emf.abc.com/emb/ws/BillPayeeServicePortType/custPayee50InqRequest")