Forums Register Login

shirisha

+Pie Number of slices to send: Send
Hi,
Im working on webservices very firsttime.im trying to generate a small example on webservices. im able to do to right the code till client. but in the client im getting the error as MyHello_Impl() class is not identified please help me where i will found this class and which jar file i should add.

My Client class is
package hello;

import javax.xml.rpc.Stub;

public class HelloClient {
public static void main(String[] args) {
try {
Stub stub = createProxy();
HelloIF hello = (HelloIF)stub;
System.out.println(hello.sayHello("Duke!"));
} catch (Exception ex) {
ex.printStackTrace();
}
}

private static Stub createProxy() {
// Note: MyHello_Impl is implementation-specific.
return (Stub)(new MyHello_Impl().getHelloIFPort());
}
}



im trying it fromlast 2 days.

Thanks in advance
+Pie Number of slices to send: Send
 


// Note: MyHello_Impl is implementation-specific.



Doesn't this line indicate that you would need to provide that class yourself? Or are you using some kind of generator like wsdl2java that creates the class for you?
It's never done THAT before. Explain it to me tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 668 times.
Similar Threads
getPort() and QName namespace problem
Sun J2ee webservice tutorial doubt
Problems with Web Services
Sun J2ee webservice tutorial doubt
Web Services and WebSphere !!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:34:15.