java.rmi.RemoteException: Server did not recognize the value of HTTP Header SOAPAction

From: Onur Sencer <>
Date: Mon, 20 Sep 2004 10:49:27 +0300

Hi, I implemented client part of the hello-world example on web services tutorial for another try on web service

On build.xml I changed the endpoint and server.url part as The client code is below

Thank you for your support.
Onur Sencer

package hello;
import javax.xml.rpc.Call;
import javax.xml.rpc.Service;
import javax.xml.rpc.JAXRPCException;
import javax.xml.namespace.QName;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.ParameterMode;

public class HelloClient {

    private static String qnameService = "Calculator";
    private static String qnamePort = "CalculatorSoap";

    private static String BODY_NAMESPACE_VALUE =
    private static String ENCODING_STYLE_PROPERTY =
    private static String NS_XSD =
    private static String URI_ENCODING =

    public static void main(String[] args) {

        System.out.println("Endpoint address = " + args[0]);

        try {
            ServiceFactory factory =
            Service service =
                new QName(qnameService));
            QName port = new QName(qnamePort);
            Call call = service.createCall(port);
                new Boolean(true));
            QName QNAME_TYPE_INTEGER =
                        new QName(NS_XSD, "integer");

                new QName(BODY_NAMESPACE_VALUE,"Add"));
            call.addParameter("Integer_1", QNAME_TYPE_INTEGER,
            call.addParameter("Integer_2", QNAME_TYPE_INTEGER,
            Integer[] params = { new Integer(1),new Integer(2) };

            Integer result = (Integer)call.invoke(params);

        } catch (Exception ex) {

To unsubscribe, e-mail:
For additional commands, e-mail: