![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Can I expose the same interface with two different binding without changing code? I have a working WCF service with wsHttpBinding. I want to .Net Framework 1.1 clients to see it at ASMX and therefore need basicHttpBinding. It is pretty easy to expose a service as ASMX: <service name="MyName" behaviorConfiguration="AsxmBehavior"> <endpoint address="" binding="basicHttpBinding" contract="IMyService" /> </service> <behavior name="AsxmBehavior"> <serviceMetadata httpGetEnabled="True"/> <serviceDebug includeExceptionDetailInFaults="False" /> </behavior> However, I would like both WCF and ASMX services running at the same time without changing any code (addding new classes or interfaces) Is it possible? -Stan |
| | #2 (permalink) |
| Guest | Re: Can I expose the same interface with two different binding without changing code? Yes. You should be able to do it by simply adding another endpoint. Of course the address URL should reflect the protocol you want to use. net.tcp:// or net.msmq:// etc. Cheers, -- Naraendirakumar R.R Software Architect ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "StanB" <stan@community.nospam.com> wrote in message news:%23sZa54CuHHA.768@TK2MSFTNGP04.phx.gbl... >I have a working WCF service with wsHttpBinding. I want to .Net Framework >1.1 clients to see it at ASMX and therefore need basicHttpBinding. > > It is pretty easy to expose a service as ASMX: > > <service name="MyName" behaviorConfiguration="AsxmBehavior"> > <endpoint address="" > binding="basicHttpBinding" > contract="IMyService" /> > </service> > > <behavior name="AsxmBehavior"> > <serviceMetadata httpGetEnabled="True"/> > <serviceDebug includeExceptionDetailInFaults="False" /> > </behavior> > > However, I would like both WCF and ASMX services running at the same time > without changing any code (addding new classes or interfaces) > > Is it possible? > > -Stan > > |
| | #3 (permalink) |
| Guest | Re: Can I expose the same interface with two different binding without changing code? I know I should be able just to add an endpoint - in theory. Do you have a working example of configuration? "Naraendirakumar R.R." <nospam@nospam.com> wrote in message news:eyIP$DcvHHA.4736@TK2MSFTNGP05.phx.gbl... > Yes. > > You should be able to do it by simply adding another endpoint. Of > course the address URL should reflect the protocol you want to use. > net.tcp:// or net.msmq:// etc. > > Cheers, > -- > Naraendirakumar R.R > Software Architect > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > "StanB" <stan@community.nospam.com> wrote in message > news:%23sZa54CuHHA.768@TK2MSFTNGP04.phx.gbl... >>I have a working WCF service with wsHttpBinding. I want to .Net Framework >>1.1 clients to see it at ASMX and therefore need basicHttpBinding. >> >> It is pretty easy to expose a service as ASMX: >> >> <service name="MyName" behaviorConfiguration="AsxmBehavior"> >> <endpoint address="" >> binding="basicHttpBinding" >> contract="IMyService" /> >> </service> >> >> <behavior name="AsxmBehavior"> >> <serviceMetadata httpGetEnabled="True"/> >> <serviceDebug includeExceptionDetailInFaults="False" /> >> </behavior> >> >> However, I would like both WCF and ASMX services running at the same time >> without changing any code (addding new classes or interfaces) >> >> Is it possible? >> >> -Stan >> >> > > |
| |
| |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Expose a .NET interface to COM as an interface | pierre.k | .NET General | 3 | 06-19-2008 06:45 AM |
| Re: changing colors on Gallery interface | Lauren Rossi | Live Photo Gallery | 1 | 12-08-2007 07:44 PM |
| Viasta sound interface breaks legacy code | Gilbert Baron | Vista General | 0 | 08-04-2007 09:14 PM |
| changing interface language | capesawa | Vista General | 7 | 05-11-2007 04:49 PM |
| Changing the drawing style of a button from code ( c++ or c# ) | John Dunn | Avalon | 2 | 10-23-2006 12:08 PM |