Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Configuring WCF Service Endpoints with the WCFacility for Streaming of Files

Received: by 10.42.95.210 with SMTP id g18mr12209856icn.0.1340797927870;
        Wed, 27 Jun 2012 04:52:07 -0700 (PDT)
X-BeenThere: castle-project-users@googlegroups.com
Received: by 10.50.178.73 with SMTP id cw9ls4425098igc.4.canary; Wed, 27 Jun
 2012 04:52:05 -0700 (PDT)
Received: by 10.42.147.195 with SMTP id o3mr12209034icv.4.1340797925719;
        Wed, 27 Jun 2012 04:52:05 -0700 (PDT)
Received: by 10.42.147.195 with SMTP id o3mr12209033icv.4.1340797925694;
        Wed, 27 Jun 2012 04:52:05 -0700 (PDT)
Return-Path: <cneuw...@gmail.com>
Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182])
        by gmr-mx.google.com with ESMTPS id s10si1645305igs.0.2012.06.27.04.52.05
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 27 Jun 2012 04:52:05 -0700 (PDT)
Received-SPF: pass (google.com: domain of cneuw...@gmail.com designates 209.85.214.182 as permitted sender) client-ip=209.85.214.182;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cneuw...@gmail.com designates 209.85.214.182 as permitted sender) smtp.mail=cneuw...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-ob0-f182.google.com with SMTP id un3so2515839obb.27
        for <castle-project-users@googlegroups.com>; Wed, 27 Jun 2012 04:52:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=from:mime-version:content-type:subject:date:in-reply-to:to
         :references:message-id:x-mailer;
        bh=4u7Clbwepki/wVriZU49qPjZ8jKQsTvAbfRjar5DA6k=;
        b=weCU4FnBW2R6j1e3djS+5E7IFK+x0mRf8GTdIYjQJTYs3I8/i880yZcRrnllidmRM5
         9g/pyhLu5+bjxAuhBxrAyq8vQ4y+UzwFvU7EtbD5h/ttaz+4E+MOXxEEWN+KD7vHND2q
         pDXFiu6ib9u2EoCwPM6Tib/gcehuUuCbnz82dRVnARgnCLoZDBWQIATxoJf8v/MrS5ja
         cGPN9A5MMqYT/wO0YnGJdVv4oRardqWsqDbw7XNUdFiYTokBv6an8SGZZiI2jyETkbAr
         lOSVplIQQ2Fuuib4ms7lrRcMyXojbvbuPaYyFtCWawDtp/fpF6vRMKviBWpJAisq0EIx
         8NVg==
Received: by 10.182.197.73 with SMTP id is9mr19902577obc.32.1340797925334;
        Wed, 27 Jun 2012 04:52:05 -0700 (PDT)
Return-Path: <cneuw...@gmail.com>
Received: from murray.oz.local ([12.70.229.178])
        by mx.google.com with ESMTPS id n10sm29564606oeb.6.2012.06.27.04.52.03
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 27 Jun 2012 04:52:04 -0700 (PDT)
From: Craig Neuwirt <cneuw...@gmail.com>
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: multipart/alternative; boundary="Apple-Mail=_F38AD0FD-EEF8-4601-B6E5-F991BDE8231B"
Subject: Re: Configuring WCF Service Endpoints with the WCFacility for Streaming of Files
Date: Wed, 27 Jun 2012 06:52:02 -0500
In-Reply-To: <8109fee3-cccb-4201-98d4-78ea1dddafc2@googlegroups.com>
To: castle-project-users@googlegroups.com
References: <cc02f435-403f-4334-9e92-d506fbf95e20@googlegroups.com> <9738A0CF-9953-4129-9155-ABEEF7BFB...@gmail.com> <46862884-2a18-41ba-b6c4-e0a496c1e65e@googlegroups.com> <8109fee3-cccb-4201-98d4-78ea1dddafc2@googlegroups.com>
Message-Id: <14437523-06C5-44A5-A486-CCAB99B18...@gmail.com>
X-Mailer: Apple Mail (2.1278)


--Apple-Mail=_F38AD0FD-EEF8-4601-B6E5-F991BDE8231B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

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.
>=20
> Quite why the first helped I do not know!
>=20
> On Tuesday, 26 June 2012 16:35:59 UTC+1, Matthew Tolliday wrote:
> Hi Craig,=20
>=20
> 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.
>=20
> Kind regards,
>=20
> Matt
>=20
> 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.
>=20
> -craig
>=20
> On Jun 26, 2012, at 4:33 AM, Matthew Tolliday wrote:
>=20
>> Hi all,=20
>>=20
>> Hopefully someone can point me in the right direction with this.=20
>>=20
>> As per: =
http://stackoverflow.com/questions/11138460/another-the-remote-server-retu=
rned-an-unexpected-response-400-bad-request=20
>>=20
>> I am attempting to configure the endpoints for a WCF service using =
Windsor 3.0 but am unable to do so.
>>=20
>> 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.
>>=20
>> 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.
>>=20
>> 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.
>>=20
>> Can anyone help?
>>=20
>> Thanks in advance, Matt
>>=20
>> --=20
>> 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 =
castle-project-users@googlegroups.com.
>> To unsubscribe from this group, send email to =
castle-project-users+unsubscribe@googlegroups.com.
>> For more options, visit this group at =
http://groups.google.com/group/castle-project-users?hl=3Den.
>=20
>=20
> --=20
> 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 =
castle-project-users@googlegroups.com.
> To unsubscribe from this group, send email to =
castle-project-users+unsubscribe@googlegroups.com.
> For more options, visit this group at =
http://groups.google.com/group/castle-project-users?hl=3Den.


--Apple-Mail=_F38AD0FD-EEF8-4601-B6E5-F991BDE8231B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=iso-8859-1

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Glad =
you got it solved<div><br><div><div>On Jun 27, 2012, at 5:47 AM, Matthew =
Tolliday wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite">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.<div><br></div><div>Quite why the first helped I do not =
know!<br><div><br>On Tuesday, 26 June 2012 16:35:59 UTC+1, Matthew =
Tolliday  wrote:<blockquote class=3D"gmail_quote" style=3D"margin: =
0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hi =
Craig,&nbsp;<div><br></div><div>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.</div><div><br></div><div>Kind =
regards,</div><div><br></div><div>Matt<br><br>On Tuesday, 26 June 2012 =
13:55:19 UTC+1, Craig Neuwirt  wrote:<blockquote class=3D"gmail_quote" =
style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc =
solid;padding-left:1ex"><div style=3D"word-wrap:break-word">Any chance =
of sending me a test or program which I can run to help you =
out.<div><br></div><div>-craig<br><div><br><div><div>On Jun 26, 2012, at =
4:33 AM, Matthew Tolliday wrote:</div><br><blockquote type=3D"cite">Hi =
all, <br><br>Hopefully someone can point me in the right direction with =
this. <br><br>As per: <a =
href=3D"http://stackoverflow.com/questions/11138460/another-the-remote-ser=
ver-returned-an-unexpected-response-400-bad-request" =
target=3D"_blank">http://stackoverflow.com/<wbr>questions/11138460/another=
-<wbr>the-remote-server-returned-an-<wbr>unexpected-response-400-bad-<wbr>=
request</a> <br><br>I am attempting to configure the endpoints for a WCF =
service using Windsor 3.0 but am unable to do so.<br><br>Since
 posting this question on SO, I have discovered that streaming over WCF=20=

is not as straightforward as first thought, and have altered the=20
contracts to reflect this.<br>The solution now uses Message Contracts to
 encapsulate the return information in the MessageHeader and returns=20
only the Stream in the body.<br><br>However, the configuration for the=20=

endpoints results in a Bad Request (400) message, I am unsure where the=20=

configuration for the service is being taken, from the code I am=20
attempting to configure the binding with, or from the web.config file,=20=

or somewhere else? This is primarily due to my inexperience with =
WCF.<br><br>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.=20
Changing just the Transport type to Buffered allows the service to be=20
hit using these settings, however the requirement neccesitates a=20
streamed binding for large file transfer.<br><br>Can anyone =
help?<br><br>Thanks in advance, Matt

<div><br></div>

-- <br>
You received this message because you are subscribed to the Google =
Groups "Castle Project Users" group.<br>
To view this discussion on the web visit <a =
href=3D"https://groups.google.com/d/msg/castle-project-users/-/dWclkuqCKDU=
J" =
target=3D"_blank">https://groups.google.com/d/<wbr>msg/castle-project-user=
s/-/<wbr>dWclkuqCKDUJ</a>.<br>=20
To post to this group, send email to <a =
href=3D"mailto:castle-project-users@googlegroups.com" =
target=3D"_blank">castle-project-users@<wbr>googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a =
href=3D"mailto:castle-project-users+unsubscribe@googlegroups.com" =
target=3D"_blank">castle-project-users+<wbr>unsubscribe@googlegroups.com</=
a>.<br>

For more options, visit this group at <a =
href=3D"http://groups.google.com/group/castle-project-users?hl=3Den" =
target=3D"_blank">http://groups.google.com/<wbr>group/castle-project-users=
?hl=3D<wbr>en</a>.<br>


=
</blockquote></div><br></div></div></div></blockquote></div></blockquote><=
/div></div><div><br class=3D"webkit-block-placeholder"></div>

-- <br>
You received this message because you are subscribed to the Google =
Groups "Castle Project Users" group.<br>
To view this discussion on the web visit <a =
href=3D"https://groups.google.com/d/msg/castle-project-users/-/f9fyXHPncKM=
J">https://groups.google.com/d/msg/castle-project-users/-/f9fyXHPncKMJ</a>=
.<br>=20
To post to this group, send email to <a =
href=3D"mailto:castle-project-users@googlegroups.com">castle-project-users=
@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a =
href=3D"mailto:castle-project-users+unsubscribe@googlegroups.com">castle-p=
roject-users+unsubscribe@googlegroups.com</a>.<br>

For more options, visit this group at <a =
href=3D"http://groups.google.com/group/castle-project-users?hl=3Den">http:=
//groups.google.com/group/castle-project-users?hl=3Den</a>.<br>


</blockquote></div><br></div></body></html>=

--Apple-Mail=_F38AD0FD-EEF8-4601-B6E5-F991BDE8231B--