被政策拒绝

Din*_*108 3 java axis soap

我正在使用 SOAPUI 和本地 Java 编写客户端将 SOAP Envelope 发送到第三方 SOAP 服务。作为回应,我正在关注执行,

肥皂信封:

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Body>
      <env:Fault>
         <faultcode>env:Client</faultcode>
         <faultstring>Rejected by policy. (from client)</faultstring>
      </env:Fault>
   </env:Body>
</env:Envelope>
Run Code Online (Sandbox Code Playgroud)

例外:

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
 faultSubcode: 
 faultString: Rejected by policy. (from client)
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace:Rejected by policy. (from client)
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
Run Code Online (Sandbox Code Playgroud)

异常是否发生在客户端?

有人能帮我找出这个异常的原因吗?我认为该异常发生在客户端。

Phi*_*ego 6

这是 Datapower(这是您的呼叫和服务之间的旧 IBM 安全产品)错误。根据我的经验,这意味着两件事之一。

  1. 您不是访问服务所需的 Active Directory 组的成员。
  2. Datapower 找不到您的用户名,因为用于查找您的用户名的 LDAP 查询是在不同的域下或不是全局目录下查找。

此错误可能还有其他原因,但我确定这些是我收到此错误时的问题。