magja/magja — Issue #27: 27 - SoapCallFactory: allow call argument to be null 
Author: ceefour
Created: 2011-11-02 11:33:30+00:00
State: open

Some (self written) modules may not require/allow a "arg" parameter, but the SoapCallFactory throws a NullPointerException if arg is null.

Just add the following lines (marked with ">") to the "createCall" method:

method.addChild(resourcePath);
...
>	if (arg != null)
>	{
OMElement paramArgs;
if (arg instanceof List) {
...
}
method.addChild(paramArgs);
>	}

return method;

Original link: http://code.google.com/p/magja/issues/detail?id=27