uCosminexus Service Platform, Basic Development Guide
In order to invoke the method of the synchronous reception (Web Services), use the stubs created in (1) to generate objects.
Use the following two classes of stubs to generate objects:
Table 8-2 CSCMsgSyncServiceDeliveryWSImplServiceLocator.java class methods
Method name | Function explanation |
---|---|
getCSCMsgSyncServiceDeliveryWSImplAddress() | Returns the connection destination information to the service component.
|
getCSCMsgSyncServiceDeliveryWSImpl() | Returns the object pointer of the interface class to the service class.
|
getCSCMsgSyncServiceDeliveryWSImpl(java.net.URL portAddress) | Uses the specified connection destination information to the service component to return the object pointer to the service class.
|
To generate an object for invoking a synchronous reception (Web Services) method:
CSCMsgSyncServiceDeliveryWSImplServiceLocator locator = new CSCMsgSyncServiceDeliveryWSImplServiceLocator(); |
CSCMsgSyncServiceDeliveryWSImpl ws = null; try { ws = locator.getCSCMsgSyncServiceDeliveryWSImpl(); }catch (ServiceException e) { e.printStackTrace(); return; } |
String url = locator.getCSCMsgSyncServiceDeliveryWSImplAddress(); |
java.net.URL endpoint = new java.net.URL("http://hostname:80/context-root /services/CSCMsgSyncServiceDeliveryWSImpl"); CSCMsgSyncServiceDeliveryWSImpl locator = locator.getCSCMsgSyncServiceDeliveryWSImpl(endpoint); |
String result = ws.invokeXML( // method invocation serviceName, // service name clientID, // client correlation ID requestFormatID, // request format ID responseFormatID, // response format ID operationName, // operation name userData); // user message |
byte[] resultBinary = ws.invokeBinary( // method invocation serviceName, // service name clientID, // client correlation ID requestFormatID, // request format ID responseFormatID, // response format ID operationName, // operation name userDataBinary.length, // user message length userDataBinary); // user message |
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.