![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | 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 |
My System Specs![]() |
| | #2 (permalink) |
| | 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 > > |
My System Specs![]() |
| | #3 (permalink) |
| | 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 >> >> > > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Can I expose the same interface with two different binding without changing code? Yeah. All just set another address for the new endpoint. Nothing special. |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| teredo tunneling pseudo-interface) windows cannot load the drivers required (code 31) | Drivers | |||
| Expose a .NET interface to COM as an interface | .NET General | |||
| Viasta sound interface breaks legacy code | Vista General | |||
| changing interface language | Vista General | |||