外部 Web サービスとの通信に問題がある場合、「Web service callout failed: Unexpected element. Parser was expecting element 'http://schemas.xmlsoap.org/soap/envelope/:Envelope' but found ':HTML'. (Web サービスコールアウトに失敗しました: 予期しない要素です。パーサーは要素「http://schemas.xmlsoap.org/soap/envelope/:Envelope」を予期していましたが、「:HTML」が見つかりました。)」というエラーが発生します。エラーを解決するために確認できることをいくつか挙げます。
1.外部 Web サービスが実際に利用可能で動作しているかどうかを確認します。
2.外部 Web サービスが配置されているネットワークのファイアウォールで、Salesforce の IP アドレスが許可リストに含まれているかどうかを確認します。
3.Web サービスのエンドポイントアドレスを検証します。
4.エンドポイントのサーバーが Salesforce でリモートサイトとして有効になっているかどうかを確認します。
5.Web サービスは、インターネットから有効なパブリック IP アドレスにアクセスできる必要があります。
追加ドキュメント:
Invoking Callouts Using Apex (Apex を使用したコールアウトの呼び出し)
フォーラムディスカッションの回答
000385914

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.