I'm having similar issues. Where do I make changes in my code.
----------------------------------
My classpath is as follows:
C:\Java\JBoss-4.0.1\server\default\deploy\jboss-ws4ee.sar\axis-ws4ee.jar;C:\Java\JBoss-4.0.1\server\default\deploy\jboss-ws4ee.sar\commons-discovery.jar;C:\Java\JBoss-4.0.1\server\default\deploy\jboss-ws4ee.sar\commons-logging.jar;C:\Java\JBoss-4.0.1\server\default\deploy\jboss-ws4ee.sar\jboss-ws4ee.jar;C:\Java\JBoss-4.0.1\server\default\deploy\jboss-ws4ee.sar\wsdl4j.jar;C:\Java\JBoss-4.0.1\client\jboss-jaxrpc.jar;C:\MyTutorials\j2ee14jboss\examples\bank\src;C:\Java\JarFiles\jax-qname.jar
-----------------------------------
My client code is as follows (from the JBoss tutorial):
package com.jboss.ebank;
import javax.xml.rpc.Call;
import javax.xml.rpc.Service;
import javax.xml.rpc.JAXRPCException;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.ParameterMode;
import javax.xml.namespace.QName;
import java.util.ArrayList;
import java.net.URL;
public class WSClient {
public static void main(String[] args)
throws Exception
{
URL url =
new URL("http://localhost:8080/ws4ee/services/TellerService?wsdl");
QName qname = new QName("http://ebank.jboss.com",
"TellerService");
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(url, qname);
TellerEndpoint endpoint = (TellerEndpoint)
service.getPort(TellerEndpoint.class);
String customer = "200";
String[] ids = endpoint.getAccountsOfCustomer(customer);
System.out.println("Customer: " + customer);
for (int i=0; i<ids.length; i++) {
System.out.println("account[" + ids + "] " +
endpoint.getAccountBalance(ids));
}
}
}
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864732#3864732
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864732
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user