gpt4 book ai didi

java - 警告 : Input Action on WSDL operation and @Action on its associated Web Method did not match and will cause problems in dispatching the requests

转载 作者:行者123 更新时间:2023-12-04 18:40:18 33 4
gpt4 key购买 nike

尽管 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>

然后我有一个客户端 SEI(由 wsimport 生成)。

/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.1.7-b01-
* Generated source version: 2.1
*
*/
@WebService(name = "billPayeeServicePortType", targetNamespace = "http://emf.abc.com/emb/ws")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface BillPayeeServicePortType {
@WebMethod(action = "http://services.abc.com/InquirePayeeService/Services/InquirePayeeService/#CustPayeeInqRequest")
@WebResult(name = "CustPayee50InqResponse", targetNamespace = "http://emf.abc.com/emb/ws", partName = "custPayee50InqResponse")
public CustPayee50InqResponseType inquirePayees(
@WebParam(name = "CustPayee50InqRequest", targetNamespace = "http://emf.abc.com/emb/ws", partName = "custPayee50InqRequest")
CustPayee50InqRequestType custPayee50InqRequest);
}

知道这有什么问题以及为什么我会看到这个警告吗?有没有办法抑制这个警告?

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

非常感谢任何帮助。

最佳答案

您的 wsimport 版本和参数是什么?

    /**
* 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")

或您的网络服务方法中的类似内容。参见 Oracle documentation

关于java - 警告 : Input Action on WSDL operation and @Action on its associated Web Method did not match and will cause problems in dispatching the requests,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42585772/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com