in src/com/vmware/vim25/ws/WSClient.java [110:129]
public Object invoke(String methodName, Argument[] paras, String returnType) throws RemoteException
{
String soapMsg = XmlGen.toXML(methodName, paras, this.vimNameSpace);
InputStream is = null;
try
{
is = post(soapMsg);
return xmlGen.fromXML(returnType, is);
}
catch (Exception e1)
{
throw new RemoteException("VI SDK invoke exception:" + e1);
}
finally
{
if(is!=null)
try { is.close(); } catch(IOException ioe) {}
}
}