我正在尝试调用https的出站外部Web服务。它在我当地的MuleStudion环境中正常工作。但是当我部署测试时。我得到了一个例外
Message : Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=https://xxx.com/yyy, connector=HttpsConnector
{
name=connector.https.mule.default
lifecycle=start
this=4670c992
numberOfConcurrentTransactedReceivers=4
createMultipleTransactedReceivers=true
connected=true
supportedProtocols=[https]
serviceOverrides=<none>
}
, name='endpoint.https.xxx.comy.yyy', mep=REQUEST_RESPONSE, properties={http.method=POST, Content-Type=text/xml}, transactionConfig=Transaction{factory=null, action=INDIFFERENT, timeout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8, disableTransportTransformer=false}. Message payload is of type: PostMethod
Code : MULE_ERROR-42999
--------------------------------------------------------------------------------
异常堆栈是:
代码段调用
<set-payload value="<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mcs="http://www.cybershift.com/wfm3/mcs10/" xmlns:ns="http://www.cybershift.com/wfm3/5/3/"><soapenv:Header><mcs:UsernameToken><mcs:clientName>HHMI</mcs:clientName><mcs:user>xxx</mcs:user><mcs:password>yyy5</mcs:password></mcs:UsernameToken></soapenv:Header><soapenv:Body><mcs:RetrieveData><mcs:businessObjectName>SCHEDULE</mcs:businessObjectName><mcs:queryValueObject action="ADD" startDate="#[flowVars['payStartDate']]" endDate="#[flowVars['payEndDate']]"><ns:StringAttribute name="pqr"><ns:string>#[empIDS.get(flowVars['eid']-1).text]</ns:string></ns:StringAttribute></mcs:queryValueObject></mcs:RetrieveData></soapenv:Body></soapenv:Envelope>" doc:name="Set Payload"/>
<logger message="SOAP Request to ST #[message.payload]" level="INFO" doc:name="Logger"/>
<https:outbound-endpoint exchange-pattern="request-response" method="POST" doc:name="ST" contentType="text/xml" address="https://xxx.com/yyy"/>
我是否需要设置https连接器。如果是这样我需要什么。非常感谢。
答案 0 :(得分:0)
通常这意味着由于os.Check中的访问权限,找不到您指定的信任库,或者无法打开该信任库,该服务可以访问密钥库。