wsdoallreceiver:安全处理失败

ifmq2ha2  于 2021-08-20  发布在  Java
关注(0)|答案(0)|浏览(120)

谁能帮帮我!我的问题是

try {
                ConfigurationContext ctx = UsagiWebClientConfig.getInstance();
                String endPoint = UsagiWebClientUtils.getEndPoint(
                    UsagiWebClientUtils.APPLICATION_EPR);
                applicationServiceStub = new ApplicationServiceStub(ctx, endPoint);
                Options options = applicationServiceStub._getServiceClient().getOptions();
                options.setProperty(HTTPConstants.SO_TIMEOUT, TIMEOUT);
                options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, TIMEOUT);
                options.setTimeOutInMilliSeconds(TIMEOUT);
            } catch (Exception e) {
                throw new AxisFault(e.getMessage());
            }

成功使用xml进行服务器查询

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://xxxxxxxxxxxxxxxxxxxxx">
    <soapenv:Body>
        <ns2:AccountQuery xmlns:ns2="http://xxxxxxxxxxxxxx" ns2:IssueInstant="2021-07-08T08:31:12Z" ns2:Version="1.0" ns2:ProviderName="AOS-WEB">
            <ns2:Condition>
                <ns2:RetireDiv>2</ns2:RetireDiv>
                <ns2:FreeKeyword ns2:Option="and">金川</ns2:FreeKeyword>
            </ns2:Condition>
        </ns2:AccountQuery>
    </soapenv:Body>
</soapenv:Envelope>

返回真值

<ns1:Surname>金川</ns1:Surname>

使用xml进行服务器查询失败

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://xxxxxxxxxxxxxxxxxxxxx">
    <soapenv:Body>
        <ns2:AccountQuery xmlns:ns2="http://xxxxxxxxxxxxxx" ns2:IssueInstant="2021-07-08T08:31:12Z" ns2:Version="1.0" ns2:ProviderName="AOS-WEB">
            <ns2:Condition>
                <ns2:RetireDiv>2</ns2:RetireDiv>
                <ns2:FreeKeyword ns2:Option="and">藤田</ns2:FreeKeyword>
            </ns2:Condition>
        </ns2:AccountQuery>
    </soapenv:Body>
</soapenv:Envelope>

返回错误

<soapenv:Value>soapenv:Receiver</soapenv:Value>
<soapenv:Text xml:lang="en-US">WSDoAllReceiver: security processing failed</soapenv:Text>

我检查了服务器上的数据“都存在”金川 及藤田" 如果你有什么办法,请告诉我谢谢!

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题