8.4. Interfaces in Different Namespaces

Here's an interesting twist on the above scenario: What if we placed the bindings in different namespaces, for example, IQuoteMgmt in a namespace called http://LearnXmlWS.com/QuoteMgmt and IOrderMgmt in another namespace called http://LearnXmlWS.com/OrderMgmt? Listing 8.11 shows the code for SupplierIface3 that has two bindings, each in its own namespace.

Listing 8.11. A Web service with two bindings in two different namespaces (VBWSBook\Chapter8\Supplier3.asmx.vb)
 <WebServiceBinding( _ Name:="IOrderMgmt", _ [Namespace]:="http://LearnXmlWS.com/OrderMgmt"), _ WebServiceBinding( _ Name:="IQuoteMgmt", _ [Namespace]:="http://LearnXmlWS.com/QuoteMgmt"), _ WebService([Namespace]:="http://LearnXmlWS.com/Supplier")> ...

Get Real World XML Web Services: For VB and VB .NET Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.