Glad you got it solved On Jun 27, 2012, at 5:47 AM, Matthew Tolliday wrote:
> One of the posts to SO appeared to fix the problem, it was suggested to use > TransferMode.StreamedResponse instead of streamed, and to include a default > constructor for the message contract return message. > > Quite why the first helped I do not know! > > On Tuesday, 26 June 2012 16:35:59 UTC+1, Matthew Tolliday wrote: > Hi Craig, > > Thanks for replying, I would be eternally grateful if you were to have a > look, I will try and get you a cut-down version of the codebase I am > currently working on asap. > > Kind regards, > > Matt > > On Tuesday, 26 June 2012 13:55:19 UTC+1, Craig Neuwirt wrote: > Any chance of sending me a test or program which I can run to help you out. > > -craig > > On Jun 26, 2012, at 4:33 AM, Matthew Tolliday wrote: > >> Hi all, >> >> Hopefully someone can point me in the right direction with this. >> >> As per: >> http://stackoverflow.com/questions/11138460/another-the-remote-server-returned-an-unexpected-response-400-bad-request >> >> >> I am attempting to configure the endpoints for a WCF service using Windsor >> 3.0 but am unable to do so. >> >> Since posting this question on SO, I have discovered that streaming over WCF >> is not as straightforward as first thought, and have altered the contracts >> to reflect this. >> The solution now uses Message Contracts to encapsulate the return >> information in the MessageHeader and returns only the Stream in the body. >> >> However, the configuration for the endpoints results in a Bad Request (400) >> message, I am unsure where the configuration for the service is being taken, >> from the code I am attempting to configure the binding with, or from the >> web.config file, or somewhere else? This is primarily due to my inexperience >> with WCF. >> >> Debugging the client code shows the injected service using the Streaming >> binding I specifiy, however I am unable to do the same for the service side. >> Changing just the Transport type to Buffered allows the service to be hit >> using these settings, however the requirement neccesitates a streamed >> binding for large file transfer. >> >> Can anyone help? >> >> Thanks in advance, Matt >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Castle Project Users" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/castle-project-users/-/dWclkuqCKDUJ. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/castle-project-users?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/castle-project-users/-/f9fyXHPncKMJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
