有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

SOAPJava服务器SOAPFaultException

嗨,我是SOAP和JAX-WS的新手。我目前正在将一个应用程序从Java8迁移到Java11(通过创建一个新的war)。我在对某个服务进行SOAP调用时遇到以下错误:

2021-02-15T04:49:33.196-0600 level=WARN thread=http-nio-9080-exec-8 cat=EffectiveAlternativeSelector 
   msg="WSP0075: Policy assertion "{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}TransportBinding" was evaluated as "UNKNOWN"."
[APP] 2021-02-15T04:49:33.209-0600 level=WARN thread=http-nio-9080-exec-8 cat=EffectiveAlternativeSelector 
  msg="WSP0019: Suboptimal policy alternative selected on the client side with fitness "UNKNOWN"."
2021-02-15T04:49:33.209-0600 level=WARN thread=http-nio-9080-exec-8 cat=EffectiveAlternativeSelector 
  msg="WSP0019: Suboptimal policy alternative selected on the client side with fitness "UNKNOWN"."
2021-02-15T04:49:33.326-0600 level=INFO thread=http-nio-9080-exec-8 cat=ServiceName 
  msg="Calling ServiceProvider system from system with URL https://xyz/Information/Service and timeout value as 8000"
2021-02-15T04:49:33.681-0600 level=WARN thread=http-nio-9080-exec-8 cat=ExceptionHandler 
  msg="handleException message=Client received SOAP Fault from server: The message with Action 'https://xyz/Information/Service' cannot be processed at the receiver, 
  due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) 
  or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding 
  (including security requirements, e.g. Message, Transport, None). Please see the server log to find more detail regarding exact cause of the failure."
com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: The message with Action 'https://xyz/Information/Service/Request' cannot be processed at the receiver, 
  due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch 
  between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding 
  (including security requirements, e.g. Message, Transport, None). Please see the server log to find more detail regarding exact cause of the failure.
        at com.organisation.call(Unknown Source) ~[?:?]
        at com.organisation.method(ClassName.groovy:113) ~[main/:?]
        at com.organisation.method$call(Unknown Source) ~[?:?]
        at com.organisation.methodA(ClassName.groovy:76) ~[main/:?]```

Also, I don't have and cannot access the server log. I am very sure that the contract is not wrong.


共 (0) 个答案