Using the WCF Namespace

Good - a direct and simple question (part 2) - the search for a simple answer.

In a WCF service contract, you can provide a namespace in your contract ...

The question is: First - why (for real ... you need solid details here) is the http: // model selected for the contract naming convention

The second - as soon as I establish, how should I use ... right? this is in my host -

    <endpoint ... contract="http://helloworld.com/example"></endpoint>
+3
source share
1 answer

The absolute namespace does not have to be the URL http: //, it should only be a valid URN. This is just a unique name. Check out this great article about the differences between URIs, URNs, URLs if you are not familiar.

WCF, . WSDL. , , () , . .

WCF contract, .NET, , . , "replica", ServiceContract, ( , Add Service Reference/svcutil).

+6

All Articles