package sstub;
Hi,
This is my client code.
import javax.xml.rpc.Stub;
public class MathClient {
private String endpointAddress;
public static void main(String argv[]) {
try {
// Invoke createProxy() to create a stub object
Stub stub = createProxy();
// Set the endpoint address the stub uses to access the service
stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,
"
http://localhost:8070/math-service/math");
// Cast the stub to the service endpoint interface (MathFace)
MathFace math = (MathFace) stub;
// Invoke the add method
System.out.println(math.add(12, 24));
} catch (Exception ex) {
ex.printStackTrace();
}
}
private static Stub createProxy() {
// Create a stub object
// Note that MyFirstService_Impl, generated by wscompile, is
implementation-specific
return (Stub) (new MyFirstService_Impl().getMathFacePort());
}
}
My
classpath:/usr/local/SUNWappserver/lib/jaxrpc.jar:/usr/local/SUNWappserver/lib:/usr/local/SUNWappserver/lib/jaxr-api.jar:usr/local/SUNWappserver/lib/jaxr-impl.jar
eventhough the same error is coming..
Thanks,
Rajeswari
--
View this message in context: http://www.nabble.com/RE%3A-package-javax.xml.rpc.Stub-does-not-exist-tf1888611.html#a5164292
Sent from the JAX-RPC - User forum at Nabble.com.