You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by adrian rutle <ad...@rutle.no> on 2006/11/14 20:26:22 UTC

implemetation examples that does not match with ...

If you look at 
http://ws.apache.org/axis2/1_1/src/Axis2SampleDocLitServiceCode.html and 
the implementations given there, you see that the codes don't match, any 
one wh oknows how to  fix this?

package org.apache.axis2.userguide;
import org.apache.axis2.userguide.*;
import org.apache.axis2.userguide.axis2sampledoclit.*;
import org.apache.axis2.userguide.axis2sampledoclit.impl.*;
import org.apache.axis2.userguide.xsd.*;
import org.apache.axis2.userguide.xsd.impl.*;

public class TestClient
{
    public static void main(String []args){
        System.out.println("\t=== Main: TestClient");
        try
        {
            org.apache.axis2.userguide.Axis2SampleDocLitServiceStub stub
                = new 
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub(null,
               
 "http://localhost:8080/axis2/services/Axis2SampleDocLitService");
            //Create the request document to be sent.
            org.apache.axis2.userguide.xsd.EchoStringParamDocument reqDoc =
               
 org.apache.axis2.userguide.xsd.EchoStringParamDocument.Factory.newInstance();
            reqDoc.setEchoStringParam("Axis2 Echo");
            //invokes the Web service.
            org.apache.axis2.userguide.xsd.EchoStringReturnDocument 
resDoc =
                stub.echoString(reqDoc);
            System.out.println(resDoc.getEchoStringReturn());
        }
        catch (java.rmi.RemoteException e)
        {
            e.printStackTrace();
        }
}



SKELETON:


    /**
     * Axis2SampleDocLitServiceSkeleton.java
     *
     * This file was auto-generated from WSDL
     * by the Apache Axis2 version: 1.1 Nov 13, 2006 (07:31:44 LKT)
     */
    package org.apache.axis2.userguide;
    /**
     *  Axis2SampleDocLitServiceSkeleton java skeleton for the axisService
     */
    public class Axis2SampleDocLitServiceSkeleton{
    
        
        /**
         * Auto generated method signature
        
          * @param param0
        
         */
        public  
org.apache.axis2.userguide.axis2sampledoclit.EchoStringArrayResponseDocument 
echoStringArray
                  (
          
org.apache.axis2.userguide.axis2sampledoclit.EchoStringArrayDocument param0
          )
        
           {
                //Todo fill this with the necessary business logic
                throw new  
java.lang.UnsupportedOperationException("Please implement " + 
this.getClass().getName() + "#echoStringArray");
        }
    
        
        /**
         * Auto generated method signature
        
          * @param param2
        
         */
        public  
org.apache.axis2.userguide.axis2sampledoclit.EchoStructResponseDocument 
echoStruct
                  (
          
org.apache.axis2.userguide.axis2sampledoclit.EchoStructDocument param2
          )
        
           {
                //Todo fill this with the necessary business logic
                throw new  
java.lang.UnsupportedOperationException("Please implement " + 
this.getClass().getName() + "#echoStruct");
        }
    
        
        /**
         * Auto generated method signature
        
          * @param param4
        
         */
        public  
org.apache.axis2.userguide.axis2sampledoclit.EchoStringResponseDocument 
echoString
                  (
          
org.apache.axis2.userguide.axis2sampledoclit.EchoStringDocument param4
          )
        
           {
                //Todo fill this with the necessary business logic
                throw new  
java.lang.UnsupportedOperationException("Please implement " + 
this.getClass().getName() + "#echoString");
        }
    
    }
   

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org