Please do not email the developers of JBossWS team with questions. Use the User 
Forum.

============================================
I have two doubts, it would be great if you could clear me the doubts.

1. I am written an custom MBean service and have deployed it. Is there any way 
i can access that service as a web-service directly using soap/wsdl.

2. If the asnwer to the previous question is no. I wrote a small code which 
acts as handle on that MBean and exposes all that methods the MBean. How do i 
pass no parameters to a method via the client.

Ex: i have a method

getName(){
return "FOO";
}
CLIENT CODE

       String endpoint = "http://localhost:port/jboss-net/services/ServiceName";;
        String methodName = "getName";
        Service service = new Service();
        Call call = (Call) service.createCall();
       
        call.setTargetEndpointAddress( new java.net.URL(endpoint) );
        call.setOperationName(methodName);
       
        
call.addParameter("name",org.jboss.axis.Constants.XSD_STRING,ParameterMode.IN);
        call.setReturnType(org.jboss.axis.Constants.XSD_STRING);
       
        String ret = (String) call.invoke(new Object[]{ "" });
        System.out.println(ret);

This doesnt seem to work , so does

call.invoke(new Object[]{ null }) or call.invoke(null ) or call.invoke( "" )

Cant we at all invoke a method which doesnt accepts any parameters?
===========================================



http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWSFAQ

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3890201#3890201

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3890201


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to