私の同僚が私にSOAP UI用のモックサービスプロジェクトのコピーを渡しました。私は開いて、私のマシン上でこのモックサービスを正常に実行することができます。 それはアドレスで実行されている:http://localhost:8088/mockShipmentInformationServiceWCFを使用してSOAP UIモックサービスを呼び出す:「指定されたURIスキーム「https」は無効です; 'http'が必要です。」
WSDLは、アドレス上に設けられている。http://localhost:8088/mockShipmentInformationService_SOAPBinding?WSDL
提供WSDLを使用して、私はアプリケーションプロジェクトにサービス参照を追加しました。サービスを呼び出すメソッドをテストするために、ユニットテストプロジェクトにサービス参照を追加しました。両方のプロジェクトのために
は、次のようにはapp.configに追加されます:あなたが見ることができるように
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="ShipmentInformationService_SOAPBinding" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:8088/mockShipmentInformationService_SOAPBinding"
binding="basicHttpBinding" bindingConfiguration="ShipmentInformationService_SOAPBinding"
contract="ShipmentInformationService.ShipmentInformationService"
name="ShipmentInformationServicePort" />
</client>
</system.serviceModel>
すると、URLは、HTTPSを通常のHTTPプロトコルを使用していませんさ。また、私のセキュリティモードは "none"に設定されています。しかし、サービスメソッドを呼び出そうとすると、次のエラーメッセージが表示され続けます。
何が得られますか?どこかに定義されたいくつかのURLが混乱を引き起こしているかもしれませんか?どこを見ますか?