I could use some help with an AXIS 1.3 client class.

The web service I am using appears to use an INOUT parameter (the same
parameter [part] listed in the input message and the output message).

In setting up a simple AXIS client class in java, I am successfully
getting to the web service, but I am not getting that INOUT parameter
updated. Using ethereal I can see the whole HTTP response that does
include the full text I expect to see in the "domains" String below.

The parameter is a String. I have tried using a StringHolder, but get
the "no serializer" exception message.

I'm not sure where to go from here.


---


package jayz.net;

import java.util.Map;

import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.holders.StringHolder;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;


public class WebmailWebserviceClient
{

        /**
         * @param args
         */
        public static void main( String[] args )
        {

                try
                {
                        String user = "[somestring]";
                        String pass = "[someotherstring]";
                        String domains = "";
                        
                        String url = 
"http://admin.webmail.us/excedentsoap/excedentsoap.wsdl";;
                        String method = "GetSubaccounts";
                        
                        QName servQN = new QName(
"http://admin.excedent.com/excedentsoap/wsdl/";, "excedentsoap" );
                        QName portQN = new QName(
"http://admin.excedent.com/excedentsoap/wsdl/";, "UtilsSoapPort" );
                        
                        Service service = new Service( new java.net.URL( url ), 
servQN );

                        Call call = (Call)service.createCall( portQN, method );
        
                        
                        Object result = call.invoke( new Object[] { user, pass, 
domains } );
                        
                        System.out.println( "result = " + 
((Short)result).shortValue() );
                        System.out.println( "domains = " + domains );

                        
                        

                }
                catch( Exception e )
                {
                        System.out.println( "Zoiks! " + e.toString() );
                }

                
                
        }

}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to