I've pasted only the basic code which is mentioned there to run the client.
Please see below.
public class DesktopManagementClient
{
public static final String SERVICE_NAME = "DesktopManagementAPI";
public static final String TARGET_NAMESPACE =
"http://www.me.com/cms/desktopmanagement";
public static final String TARGET_ENDPOINT_ADDRESS =
"http://localhost:8080/DesktopManagementAPI/DesktopManagementAPIImpl?wsdl";
/**
* @param args
*/
public static void main (String[] args)
throws Exception
{
DesktopManagementClient client = new DesktopManagementClient();
// client.testJNDI();
// client.testRPC();
// client.testDynamicInvocation();
// client.testDynamicInvocationWithWSDL();
client.testNonJ2EE();
}
public void testNonJ2EE ()
throws MalformedURLException, ServiceException, RemoteException
{
URL url = new URL(TARGET_ENDPOINT_ADDRESS);
QName qname = new QName(TARGET_NAMESPACE, SERVICE_NAME);
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(url, qname);
DesktopManagementAPIEndpoint port = (DesktopManagementAPIEndpoint)
service.getPort(DesktopManagementAPIEndpoint.class);
String name = port.getName();
System.out.println("Name: " + name);
for (int i = 0; i < 100; i++)
{
port.setName(name + "." + i);
System.out.println("New name: " + port.getName());
}
}
}
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946448#3946448
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946448
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user