hello
I am getting this exception
Exception in thread "main" org.apache.axis2.AxisFault:
System.Web.Services.Protocols.SoapException: Server was unable to process
request. ---> System.NullReferenceException: Object reference not set to an
instance of an object.
This is my code
objExecute is the method Name
public class DynamicBigTree {
public static OMElement createPayLoad() {
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs = fac.createOMNamespace(
"http://ws.apache.org/axis2/xsd", "q0");
OMElement method = fac.createOMElement("objExecute", omNs);
OMElement value = fac.createOMElement("strAppCode", omNs);
value.setText("IVR");
method.addChild(value);
value = fac.createOMElement("strVenueCode", omNs);
value.setText("TSTC");
method.addChild(value);
return method;
}
public static void main(String[] args) throws AxisFault,
MalformedURLException {
ServiceClient serviceClient = new ServiceClient(
null,
new URL("http://XXX?wsdl"),
null,
null);
OMElement res = serviceClient.sendReceive(new QName("
http://ws.apache.org/axis2","wmTrans") ,createPayLoad());
System.out.println(res);
}
}
I want to create a WebService Client Dynamically DII
pls help
sumit