Jun Qian (钱骏) 's Weblog |
|
Friday May 04, 2007
Anatomy of Composite Application in NetBeans 6.0 SOA Pack (Part 4)
Connection Auto-Generation
You already know that an endpoint is uniquely identified by its
fully qualified endpoint name. This name has nothing to do with whether
two endpoints are connectable or not. The endpoint connectability
depends on the interface of the endpoint. The endpoint interface name is actually a QName. If a Consume endpoint and a Provide endpoint have the same interface QName, they are connectable. The same is true for a Consume endpoint and a WSDL Port pair, or a Provide endpoint and a WSDL Port pair. The following shows what you get (in CASA Editor) after this composite application gets built: Note that for endpoints with identical interface QName, it's perfectly fine to connect multiple Consume endpoints to one Provide endpoint. However, it's not OK for one Consume endpoint to connect to more than one Provide endpoint. Neither the Composite Application Project System nor the CASA Editor allows this to happen. Think about it. If a Consumer is allowed to connect to multiple Providers at design time, which Provider will actually provide the service at runtime? ![]() At build time, if there are multiple Provide endpoints matching the same Consume endpoint, since the project system does not know which Provide endpoint is the desired one, no connection will be generated. The project system simply displays a warning message in this case and the decision is left to the user. The user can use the CASA Editor to choose the preferred Provide endpoint and make the desired connection. Posted at 01:28AM May 04, 2007 by Jun Qian in NetBeans | Comments[2] |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Hi Jun Qian
According to your example, what is the "netbeans"-way of invoking the portclient consuming-port of such a buiness application on the glassfish esb?
There isn't a wsdl file generated for creating a new WS client, is there?
And just sending a raw soap message isn't the best way - the jax-ws should provide this somehow, right?
thanks for any food for thought!
Posted by Linard on January 23, 2009 at 03:34 AM PST #
.. using a http binding does the job. Netbeans generates a wsdl File in the src/jbiasa folder. Great plattform!
Posted by Linard on January 23, 2009 at 04:22 AM PST #