Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
GeneralRe: ICON Pin
MasterSharp3-Oct-07 11:54
MasterSharp3-Oct-07 11:54 
QuestionRe: ICON Pin
Kenny McKee3-Oct-07 11:57
Kenny McKee3-Oct-07 11:57 
AnswerRe: ICON Pin
MasterSharp3-Oct-07 11:59
MasterSharp3-Oct-07 11:59 
QuestionRe: ICON Pin
Kenny McKee3-Oct-07 12:02
Kenny McKee3-Oct-07 12:02 
AnswerRe: ICON Pin
MasterSharp3-Oct-07 12:03
MasterSharp3-Oct-07 12:03 
GeneralRe: ICON Pin
Kenny McKee3-Oct-07 12:11
Kenny McKee3-Oct-07 12:11 
GeneralRe: ICON Pin
MasterSharp3-Oct-07 12:14
MasterSharp3-Oct-07 12:14 
GeneralRe: ICON Pin
Christian Graus3-Oct-07 12:31
protectorChristian Graus3-Oct-07 12:31 
GeneralRe: ICON Pin
MasterSharp3-Oct-07 12:33
MasterSharp3-Oct-07 12:33 
GeneralRe: ICON Pin
Christian Graus3-Oct-07 12:46
protectorChristian Graus3-Oct-07 12:46 
GeneralRe: ICON Pin
Anthony Mushrow3-Oct-07 12:47
professionalAnthony Mushrow3-Oct-07 12:47 
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 

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.