RE: package javax.xml.rpc.Stub does not exist

From: Rajeswari <>
Date: Tue, 4 Jul 2006 02:11:56 -0700 (PDT)

package sstub;

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

         // 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) {

   private static Stub createProxy() {
      // Create a stub object
      // Note that MyFirstService_Impl, generated by wscompile, is
      return (Stub) (new MyFirstService_Impl().getMathFacePort());
eventhough the same error is coming..

View this message in context:
Sent from the JAX-RPC - User forum at