Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Webtools incubator » javax.xml.rpc.JAXRPCException ????(Number of parameters passed in (0) doesn't match the number of IN/INOUT parameters (1) from the addParameter() calls)
javax.xml.rpc.JAXRPCException ???? [message #532196] Fri, 07 May 2010 13:45
asadfx  is currently offline asadfx Friend
Messages: 2
Registered: May 2010
Junior Member
I have deployed a simple web service using Apache Tomcat 6.0 and Axis 1.4 in Windows XP.

Now the server is very simple:
import java.util.*;

This is our web service
public class HelloWorld
public String getHelloWorld(String id)
String retName="";

			File indexFile = new File("index.txt");
		catch(Exception e)
	return retName;

Now if the client doesn't send any parameters then everything works well (I am using

Eclipse to run the client). But as sson as I try to send a parameter to the server, I

get the following error:

"javax.xml.rpc.JAXRPCException: Number of parameters passed in (0) doesn't match the

number of IN/INOUT parameters (1) from the addParameter() calls"

Why is this happening??? My client is also very simple:
package dummyC;
import java.util.*;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import org.apache.axis.utils.Options;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.*;

public class DummyC {

	 * @param args
	public static void main(String[] args) 
		Service service = new Service();
		Call call = (Call)service.createCall();
		String endpoint ="http://localhost:8081/axis/HelloWorld.jws";
		call.setOperationName(new QName("getHelloWorld"));

		call.addParameter("param1",XMLType.XSD_STRING, ParameterMode.IN);
		String output = (String)call.invoke(new Object[]{});
		System.out.println("Got result : " + output);
		catch(Exception e)
			System.out.print("sssss: "+e.toString());


Please guys, I need to solve this problem with in the next couple of days.


Previous Topic:is the current version CXF Web Services included in eclipse 3.6 M7 WTP 3.2 ?
Next Topic:javax.xml.rpc.JAXRPCException ????
Goto Forum:

Current Time: Sat Jul 04 19:54:31 GMT 2020

Powered by FUDForum. Page generated in 0.01754 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top