source for MathFace and MyFirstService_Impl ????
-----Original Message-----
From: Rajeswari [mailto:lgraji_at_yahoo.co.uk]
Sent: 04 July 2006 14:42
To: users_at_jax-rpc.dev.java.net
Subject: RE: package javax.xml.rpc.Stub does not exist
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/l
ib:/usr/local/SUNWappserver/lib/jaxr-api.jar:usr/local/SUNWappserver/lib/jax
r-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-tf1888
611.html#a5164292
Sent from the JAX-RPC - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
________________________________________________________________________
This e-mail has been scanned for all viruses by MessageLabs.
________________________________________________________________________
________________________________________________________________________
This e-mail has been scanned for all viruses by MessageLabs.
________________________________________________________________________