Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Can I expose the same interface with two different binding without changing code?

 
 
Old 06-26-2007   #1 (permalink)
StanB


 
 

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 SpecsSystem Spec
Old 07-03-2007   #2 (permalink)
Naraendirakumar R.R.


 
 

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 SpecsSystem Spec
Old 07-10-2007   #3 (permalink)
StanB


 
 

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 SpecsSystem Spec
Old 07-19-2007   #4 (permalink)
evgshapiro@gmail.com


 
 

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 SpecsSystem Spec
 

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46