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 |
CSCMsgSyncServiceDeliveryWSImpl ws = null; |
String url = locator.getCSCMsgSyncServiceDeliveryWSImplAddress(); |
java.net.URL endpoint |
String result = ws.invokeXML( // method invocation |
byte[] resultBinary = ws.invokeBinary( // method invocation |