Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
GeneralRe: ICON Pin
MasterSharp3-Oct-07 13:01
MasterSharp3-Oct-07 13:01 
GeneralRe: ICON Pin
MasterSharp3-Oct-07 13:10
MasterSharp3-Oct-07 13:10 
GeneralRe: ICON Pin
PIEBALDconsult3-Oct-07 14:40
mvePIEBALDconsult3-Oct-07 14:40 
GeneralRe: ICON Pin
MasterSharp3-Oct-07 15:07
MasterSharp3-Oct-07 15:07 
GeneralRe: ICON Pin
PIEBALDconsult3-Oct-07 15:39
mvePIEBALDconsult3-Oct-07 15:39 
QuestionMSI Launch Directory Pin
Polymorpher3-Oct-07 10:40
Polymorpher3-Oct-07 10:40 
AnswerRe: MSI Launch Directory Pin
Dave Kreskowiak9-Oct-09 12:25
mveDave Kreskowiak9-Oct-09 12:25 
QuestionWSDL Namespaces Pin
pdalbe013-Oct-07 10:39
pdalbe013-Oct-07 10:39 
I'm working on a WCF application and I'm not clear on industry standards regarding the namespaces and URLs. I know that there are 4 places in the managed code to set the WSDL namespaces (ServiceBehavior, DataContract, ServiceContract and binding).

So say we have something like this:

namespace Widget.Services.Contracts.Foo
{
[ServiceContract(Namespace = "<servicecontract>", Name="FooInterface")]
public interface IFoo
{
[OperationContract]
List GetByFooId(foo2 foo);
}

[DataContract(Namespace="<datacontract>", Name="Foo")]
public class Foo
{
[DataMember]
int FooId;
[DataMember]
string FooDesc;
//some other fields
}
}

namespace Widget.Services.Foo
{
[ServiceBehavior(Namespace = "<servicebehavior>", Name="FooService")]
public interface FooService
{
List GetByFooId(Foo foo)
{
//do some work and return foo
}
}
}

<service behaviorconfiguration="FooBehavior" name="Widget.Services.Foo">
<endpoint address="" binding="wsHttpBinding" bindingconfiguration="wsHttpServiceBinding" name="FooService" contract="Widget.Services.Contracts.Foo.IFoo" bindingnamespace="<bindingNamespace>">
<host>
<baseaddresses>
<add baseaddress="http://localhost:8010/Widget/FooService">




1) Do all 4 places commonly get the same WSDL namespace? Or is there typically a mapping/translation of CLR namespaces to WSDL namespaces (because of how we have namespaced our classes)?

2) What are the industry standards/common practice for the namespaces? I know that people recommond adding year and month to the namespace for versioning, but does that mean the base address for the endpoint should have that info too? I've read http://www.pluralsight.com/blogs/kirillg/archive/2006/06/18/28380.aspx and while it's very useful, it doesn't describe what the ideal namespaces should be.

3) Would the namespace for the WSDLs (Because svcutil will generate a few WSDLs in this scenario) be the same as the URL for the WSDLs (which depends on the baseAddress)?

I guess, in general, my overall question is:

4) What would the common practice/industry standard dictate as the namespace for <bindingnamespace>, <contractnamespace>, <servicebehavior> and <servicecontract> in my example?



Any information about this would be much appreciated. Thanks!
QuestionChange Registry Key Name [modified] Pin
Dino2Dino3-Oct-07 10:07
Dino2Dino3-Oct-07 10:07 
AnswerRe: Change Registry Key Name Pin
ChrisKo3-Oct-07 13:31
ChrisKo3-Oct-07 13:31 
GeneralRe: Change Registry Key Name Pin
ChrisKo3-Oct-07 13:59
ChrisKo3-Oct-07 13:59 
GeneralRe: Change Registry Key Name Pin
Dino2Dino4-Oct-07 10:04
Dino2Dino4-Oct-07 10:04 
GeneralRe: Change Registry Key Name Pin
ChrisKo4-Oct-07 10:23
ChrisKo4-Oct-07 10:23 
QuestionRe: Change Registry Key value/Type/Data fields. Pin
Dino2Dino8-Oct-07 11:30
Dino2Dino8-Oct-07 11:30 
QuestionProperty Grid Help Position Pin
greba3-Oct-07 9:53
greba3-Oct-07 9:53 
AnswerRe: Property Grid Help Position Pin
TJoe3-Oct-07 10:33
TJoe3-Oct-07 10:33 
Questiondropdownlist initial value Pin
anuradha.rrao3-Oct-07 9:16
anuradha.rrao3-Oct-07 9:16 
AnswerRe: dropdownlist initial value Pin
Pete O'Hanlon3-Oct-07 9:23
mvePete O'Hanlon3-Oct-07 9:23 
GeneralRe: dropdownlist initial value Pin
anuradha.rrao3-Oct-07 9:27
anuradha.rrao3-Oct-07 9:27 
GeneralRe: dropdownlist initial value Pin
Pete O'Hanlon3-Oct-07 9:35
mvePete O'Hanlon3-Oct-07 9:35 
GeneralRe: dropdownlist Pin
anuradha.rrao3-Oct-07 9:56
anuradha.rrao3-Oct-07 9:56 
GeneralRe: dropdownlist Pin
pmarfleet3-Oct-07 10:53
pmarfleet3-Oct-07 10:53 
GeneralRe: dropdownlist Pin
anuradha.rrao3-Oct-07 22:44
anuradha.rrao3-Oct-07 22:44 
GeneralRe: dropdownlist Pin
pmarfleet3-Oct-07 22:53
pmarfleet3-Oct-07 22:53 
GeneralRe: dropdownlist Pin
Pete O'Hanlon3-Oct-07 22:24
mvePete O'Hanlon3-Oct-07 22:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.