I am trying to set up a streaming WCF service using basicHttpBinding. The service is organized in an IIS7 process.
The contract contains a simple stream of gasstream () operation.
When I connect to a service customer service using a service reference, I get the following results from the server.
P> Content type multipart / related; Type = "app / xop + xml"; Start = ""; Border = "UUID: 9520d099-4241-43f3-824d-5a3d197f62ed + id = 1"; The initial information = "text / xml" service was not supported by the client and the service binding might be mismatched.
This client has a binding configuration. The binding section is an exact copy called "Streaming_IstreamingTest Service" on the server is Ctrl + X.
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Configuration & gt; & Lt; System.serviceModel & gt; & Lt; Binding & gt; & Lt; BasicHttpBinding & gt; & Lt; Binding name = "streaming_IStreamingTestService" closeTimeout = "00:01:00" openTimeout = "00:01:00" receiveTimeout = "00:10:00" sendTimeout = "00:01:00" AllowCookies = "false" bypassProxyOnLocal = " false "hostNameComparisonMode =" StrongWildcard "maxBufferSize =" 655,360 "maxBufferPoolSize =" 655,360 "maxReceivedMessageSize =" 655,360 "messageEncoding =" MTOM "transferMode =" stream "useDefaultWebProxy =" true "& gt; & Lt; readerQuotas maxDepth = "32" maxStringContentLength = "8192" Makarere lang = "16384" Maksbaitspiyr Reed = "4096" maximum-Namteblkarn = "16384" / & gt; & Lt; Safety Mode = "None" & gt; & Lt; Transport Customer Credential Type = "None" Proxy Credential Type = "None" realm = "" /> & Lt; Message client credentials type = "user name" algorithm site = "default" /> & Lt; / Safety & gt; & Lt; / Binding & gt; & Lt; / BasicHttpBinding & gt; & Lt; / Binding & gt; & Lt; Customers & gt; & Lt; endpoint address = "http: // localhost: 8000 / StreamingTest.svc" binding = "basicHttpBinding" bindingConfiguration = "streaming_IStreamingTestService" contract = "Services.StreamingTest.IStreamingTestService" name = "streaming_IStreamingTestService" / & gt; & Lt; / Customer & gt; & Lt; /system.serviceModel> & Lt; / Configuration & gt;
Part of the error which is relevant "may be the client and service bindings
Since you're using "Strymed" on Tronsformod server and "buffer" is the default, it is possibly mismatch.
Comments
Post a Comment