SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 239 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"

com/esb/
jsrpojo";
private static String localPart = "PojoBindService";
Chapter 9
[ 173 ]
protected void executeClient(String[] args)throws Exception
{
PojoBindService pojoBindService = null;
HelloServicePortType helloServicePortType = null;
if(args.length == 3)
{
pojoBindService = new PojoBindServiceLocator(args[0],
new QName(args[1], args[2]));
}
else
{
pojoBindService = new PojoBindServiceLocator(wsdlUrl,
new QName(namespaceURI, localPart));
}
helloServicePortType = pojoBindService.getPojoBindService();
log("Response From Server : " + helloServicePortType.
hello("Binil"));
}
public static void main(String[] args)throws Exception
{
Client client = new Client();
client.executeClient(args);
}
}
To build the entire Axis client codebase, assuming that ServiceMix is up and
running, change directory to ch09\Jsr181PojoAccessBus\04_AxisClient, which
contains a top-level build.xml file. Execute ant as follows:
cd ch09\ Jsr181PojoAccessBus
ant
This will generate the required Axis client-side stubs and compile the client classes.
Now to run the client, execute the following command:
ant run
Accessing JBI Bus Sample
In the previous sample, we have seen how to bind a POJO to JBI and access the
service again using the standard web service access mechanisms.


Pages:
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6