Before we publish a Webservice in J2SE platform using Endpoint.publish API, can we put the details of the service(port,service name, input/output messages etc.) in Endpoint ? Is there an API available for that?