This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes shirisha Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "shirisha" Watch "shirisha" New topic
Author

shirisha

shiri bandari
Greenhorn

Joined: Aug 08, 2005
Posts: 2
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
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43

// 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?


Ping & DNS - my free Android networking tools app
 
wood burning stoves
 
subject: shirisha
 
Similar Threads
Sun J2ee webservice tutorial doubt
Web Services and WebSphere !!
Sun J2ee webservice tutorial doubt
Problems with Web Services
getPort() and QName namespace problem