The following is an example of the code I am trying to execute using the JBoss-4.2.3
libraries. This is a simple main program and interface:
Client
| public class Test {
|
| private static Logger mLogger = Logger.getLogger(Test.class);
|
| public void registerService() {
| final String METHOD_NAME = "registerService";
| mLogger.debug(METHOD_NAME + " - ENTRY");
| boolean result = false;
| try {
| // Running the getCurrent function
| Service service = Service.create(
| new
URL("http://ssdr_server:8080/ssdi-ssdr/ssdi-ssdr?wsdl"),
| new
QName("http://ssdr.webservices.com/",
"SsdrRegistryService"));
| ISsdr servicePort = service.getPort(ISsdr.class);
|
| String registerRDF = "payload";
|
| // Registering the ssdr via the SSDR Web Service
| result = servicePort.registerService(registerRDF);
| mLogger.info("Register results are:" + result);
|
| } catch (Exception e) {
| mLogger.error(METHOD_NAME + " : Exception: ", e);
| }
| mLogger.debug(METHOD_NAME + " - EXIT");
| }
|
| public static void main(String[] args) {
| Test test = new Test();
| test.registerService();
| }
| }
|
Interface
| @WebService
| @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL,
| parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
| public interface ISsdr {
| @WebMethod
| public boolean registerService(@WebParam(name = "serviceRDF") String
serviceRDF);
|
| @WebMethod
| public boolean unregisterService(@WebParam(name = "serviceRDF") String
serviceRDF);
|
| @WebMethod
| public ArrayList<String>
serviceLookup(@WebParam(name="serviceRequestRDF")
| String serviceRequestRDF);
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173344#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...