if (url == null)
{
throw new SOAPException(Constants.FAULT_CODE_CLIENT,
"A URL must be specified via " +
"Hello_PortTypeProxy.setEndPoint(URL).");
}
call.setMethodName("sayHello");
Vector params = new Vector();
Parameter firstNameParam = new Parameter("firstName",
java.lang.String.class, firstName, null);
params.addElement(firstNameParam);
call.setParams(params);
Response resp = call.invoke(url, SOAPActionURI);
// Check the response.
if (resp.generatedFault())
{
Fault fault = resp.getFault();
throw new SOAPException(fault.getFaultCode(), fault.getFaultString());
}
else
{
Parameter retValue = resp.getReturnValue();
return (java.lang.String)retValue.getValue();
}