catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Other Support Queries

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 06-09-2008, 11:07 AM   #1 (permalink)
Junior Member
 
Join Date: Mar 2003
Location: Essex, UK
Posts: 21
Windows Communication Foundation (WCF)

Hi Guys,

Do you support this?
__________________
Regards,
Tim
Timbo is offline   Reply With Quote
Old 06-09-2008, 12:21 PM   #2 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
In theory we do. It's part of the .net 3.5 fx which fully supported however I've not tested it, so assuming it doesn't need any extra permissions setting up it should just work.

If it doesn't work, please let me know and I'll see what I can sort out.

Jas
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 08-09-2008, 08:13 PM   #3 (permalink)
Junior Member
 
Join Date: Mar 2003
Location: Essex, UK
Posts: 21
That's good. What bindings are supported:-

BasicHttpBinding
WSHttpBinding
NetNamedPipeBinding
NetTcpBinding
__________________
Regards,
Tim
Timbo is offline   Reply With Quote
Old 08-09-2008, 10:33 PM   #4 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
Timbo,

I'm away until Thursday but will try and remeber to review this thread upon my return (If you've not heard from me by early next week please bug me!)

Else Paul might be able to help you with your query

Sorry I can't be of more instant help

Jas
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 09-09-2008, 01:11 PM   #5 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Tim,

I dont think this will work in medium trust, as essentially you are trying to bind a port or endpoint which wouldnt be allowed I am afraid.

You would be able to so this using a VPS, which will be rolled out soon
paulredpath is offline   Reply With Quote
Old 10-09-2008, 11:16 PM   #6 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
I need to do more research into this I think but I would have thought the HTTP stuff should still work, especially the WS binding as that just an updated version of the old web services is it not?
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 11-09-2008, 08:07 AM   #7 (permalink)
Junior Member
 
Join Date: Mar 2003
Location: Essex, UK
Posts: 21
I'm struggling to understand how I would host a site using WCF without running the service as a windows service or console device. I'm trying to find a small demo which I can upload to my domain for testing.

Here's my understanding of the various bindings.

BasicHttpBinding
Basic web service communication with no security by default
WSHttpBinding
Web services with WS-* standards; supports transactions
WSDualHttpBinding
Web services with duplex contract and transaction support
WSFederationHttpBinding
Web services with federated security with transaction support
MsmqIntegrationBinding
Direct communication with MSMQ; supports transaction
NetMsmqBinding
Communication between WCF applications using queuing with transaction support
NetNamedPipeBinding
Communication between WCF applications on same computer with duplex contracts support and transaction support
NetPeerTcpBinding
Communication between computers across peer-to-peer services with duplex contracts support
NetTcpBinding
Communication between WCF applications across computers supports duplex contracts and transactions
__________________
Regards,
Tim
Timbo is offline   Reply With Quote
Old 12-09-2008, 10:31 AM   #8 (permalink)
Junior Member
 
Join Date: Mar 2003
Location: Essex, UK
Posts: 21
OK, got a very basic service working
__________________
Regards,
Tim
Timbo is offline   Reply With Quote
Old 12-09-2008, 10:52 AM   #9 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Ah, glad to hear you got it working, was this with an http binding?
paulredpath is offline   Reply With Quote
Old 12-09-2008, 01:26 PM   #10 (permalink)
Junior Member
 
Join Date: Mar 2003
Location: Essex, UK
Posts: 21
Yes, here's the extract from the web.config

Code:
<system.serviceModel>
	<serviceHostingEnvironment>
		<baseAddressPrefixFilters>
			<add prefix="http://domain.co.uk" />
		</baseAddressPrefixFilters>
	</serviceHostingEnvironment>
	<behaviors>
		<serviceBehaviors>
			<behavior name="WebApplication1.Service1Behavior">
				<serviceMetadata httpGetEnabled="true" />
                <serviceDebug includeExceptionDetailInFaults="false" />
			</behavior>
		</serviceBehaviors>
	</behaviors>
    <services>
		<service behaviorConfiguration="WebApplication1.Service1Behavior" name="WebApplication1.Service1">
			<endpoint address="http://domain.co.uk" binding="basicHttpBinding" contract="WebApplication1.IService1"></endpoint>
			<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
		</service>
	</services>
</system.serviceModel>
__________________
Regards,
Tim
Timbo is offline   Reply With Quote
Old 12-09-2008, 01:52 PM   #11 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Cool, thanks
paulredpath is offline   Reply With Quote
Old 12-09-2008, 03:58 PM   #12 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
Told you it'd work
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 12-09-2008, 04:22 PM   #13 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Quote:
Originally Posted by WhiskyFudge View Post
Told you it'd work
*goes to sulk in corner*
paulredpath is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 07:51 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.