インターネットにアクセスできない内部ネットワーク上でEWSサービスを呼び出しています。インターネットに接続できないため、EWS要求が失敗する
ブラウザでEWSのURLを開き、実行中であることを確認できます。 しかし、私はSOAPリクエストを送信しようとします。
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:RequestServerVersion Version="Exchange2007_SP1" />
</soap:Header>
<soap:Body>
<m:GetFolder>
<m:FolderShape>
<t:BaseShape>IdOnly</t:BaseShape>
</m:FolderShape>
<m:FolderIds>
<t:DistinguishedFolderId Id="calendar" />
</m:FolderIds>
</m:GetFolder>
</soap:Body>
</soap:Envelope>
エラーENOTFOUDで失敗します。私はそれがスキーマ定義のSOAP xmlの指定されたアドレスに接続できないと仮定しています。
のxmlns:XSI = "http://www.w3.org/2001/XMLSchema-instance" のxmlns:M = "http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t = "http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap = "http://schemas.xmlsoap.org/soap/envelope/"
インターネットに接続していないときにこれを処理します。
lather.jsライブラリを使用してmeteor.jsアプリからリクエストを送信しています。
私はちょうどこれを読んでいます。接続は問題ではないことを縫い目としています。http://stackoverflow.com/questions/8863233/how-do-xml-namespaces-workありがとう。 – eomeroff