Dynamic Proxy Client
843834Aug 26 2002 — edited Aug 27 2002Hi all,
iam trying to use the dynamic proxy client with the following lines
String UrlString =
"http://localhost:8080/ProxyHelloWorld.wsdl";
String nameSpaceUri = "http://proxy.org/wsdl";
String serviceName = "HelloWorld";
String portName = "HelloIFPort";
URL helloWsdlUrl = new URL(UrlString);
ServiceFactory serviceFactory =
ServiceFactory.newInstance();
Service helloService =
serviceFactory.createService(helloWsdlUrl,
new QName(nameSpaceUri, serviceName));
//HelloIF myProxy = (HelloIF) helloService.getPort(
//new QName(nameSpaceUri, portName),
//proxy.HelloIF.class);
when i try to do this i get the following exception
Exception in thread "main" java.lang.NoSuchMethodError
at com.sun.xml.rpc.wsdl.parser.Util.verifyTagNSRootElement(Util.java:59)
at com.sun.xml.rpc.wsdl.parser.WSDLParser.parseDefinitionsNoImport(WSDLP
arser.java:191)
at com.sun.xml.rpc.wsdl.parser.WSDLParser.parseDefinitionsNoImport(WSDLP
arser.java:165)
at com.sun.xml.rpc.wsdl.parser.WSDLParser.parseDefinitions(WSDLParser.ja
va:96)
at com.sun.xml.rpc.wsdl.parser.WSDLParser.parse(WSDLParser.java:91)
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLMod
eler.java:85)
at com.sun.xml.rpc.processor.config.ModelInfo.buildModel(ModelInfo.java:
77)
at com.sun.xml.rpc.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBui
lder.java:96)
at com.sun.xml.rpc.client.dii.ServiceInfoBuilder.buildServiceInfo(Servic
eInfoBuilder.java:59)
at com.sun.xml.rpc.client.dii.ConfiguredService.<init>(ConfiguredService
.java:44)
at com.sun.xml.rpc.client.ServiceFactoryImpl.createService(ServiceFactor
yImpl.java:32)
at JAXRPCClient.main(JAXRPCClient.java:38)
what am i doing wrong
suresh