Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dynamic Proxy Client

843834Aug 26 2002 — edited Aug 27 2002
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2002
Added on Aug 26 2002
3 comments
94 views