8.2.3 Creating Stubs

Create a stub from the acquired WSDL. To create a stub, you use the WSDL2Java command provided by Cosminexus as a development support command.

A command input example (when the WSDL style is rpc-literal) follows.

WSDL2Java cscmsg_ws.wsdl

If the WSDL style is document-literal, replace cscmsg_ws.wsdl in the above example with cscmsg_ws_doc.wsdl.

For details about the options in the WSDL2Java command, see the manual Cosminexus Application Server SOAP Application Development Guide.

Executing this command creates the following directory and files:

/current-directory
jp
  co
    Hitachi
      soft
        csc
          msg
            message
              reception
                ejb
                  CSCMsgSyncServiceDeliveryWSImpl.java#1
                  CSCMsgSyncServiceDeliveryWSImplService.java#2
                  CSCMsgSyncServiceDeliveryWSImplServiceLocator.java#3
                  CSCMsgSyncServiceDeliveryWSImplSoapBindingStub.java#4
                  CSCMsgServerFaultException.java#4

#1
This is a user-defined data class (a service requester's interface class).
#2
This is a service component's interface class.
#3
This is a service class (a service component's interface class). Holds the connection information to the service component.
#4
This is a stub class.