O'Reilly logo

Real World XML Web Services: For VB and VB .NET Developers by Yasser Shohoud

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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")> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required