Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

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

 
 
Thread Tools Display Modes
Old 06-26-2007   #1 (permalink)
StanB
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


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



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

>
>



Old 07-19-2007   #4 (permalink)
evgshapiro@gmail.com
Guest


 

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.

 

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








Vistax64.com 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 2005-2008

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 47 48 49 50