私はWCFサービスをローカルで作成してテストしましたが、もちろんうまく動作します。私は共有ホスティングサイトに公開し、wsdlを閲覧し、正常であるように見えます。しかし、私はWP7コードでサービスを呼び出すと、無駄なエラーメッセージが表示されます。 includeExceptionDetailInFaultsとWCFトレースを有効にすると、エラーが読み込まれます。 "System.ServiceModel.ProtocolException:コンテンツタイプapplication/soap + xml; charset = utf-8がtext/xml; charset = utf-8を予期しているサービスに送信されました。クライアントとサービスのバインディングが一致していない可能性があります。ここでWP7のWCFクライアントとサービスのバインディングが一致しない可能性があります
は、web.configファイルの一部...>
<サービスbehaviorConfiguration = "SL_SeeYaThere_WCF.Web.SeeYaThereWCFBehavior" 名前=」
<behaviors>
<serviceBehaviors>
<behavior name="SL_SeeYaThere_WCF.Web.SeeYaThereWCFBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug httpHelpPageEnabled ="true" includeExceptionDetailInFaults="true" />
</behavior>
<!—- other services… -->
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<!—- there is not a binding for this service should there be? -->
<!—- other services… -->
</basicHttpBinding>
</bindings>
<サービスですSL_SeeYaThere_WCF.Web.SeeYaThereWCF ">
<エンドポイNTアドレス= "" バインディング= "basicHttpBinding" 契約= "SL_SeeYaThere_WCF.Web.ISeeYaThereWCF" />
<エンドポイントアドレス= "mexHttpBinding" 契約= "IMetadataExchange" />
< /サービス>
"=結合" MEX <! - その他のサービス... - >
</services>
^^エディタはマークアップを正しく表示しません。
これはWFCで初めての経験であり、楽しくはありません。私は間違って何をしていますか?
ありがとうございました。