Binding

Up until this point in the chapter you have been dealing with elements that, in UML terms, would be called unrealizable. In other words, you can't actually realize the port type by itself. The port type is like an interface. After you actually have an instance of a port type object, you have all the information you need to use it, but you can't take the port type and instantiate it directly. This is the same situation that prevents you from instantiating a new interface; you can only instantiate an Object that implements the interface. So you can't write the following:

 public interface SomeInterface(){ public submitPurchase(Address billTo, Address sendTo); } public class SomeClass{ public void myMethod(){ //This is illegal SomeInterface ...

Get Java™ Web Services Unleashed 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.