Bugfix and continued implementation of soap client

This commit is contained in:
Ziver Koc 2013-02-06 17:44:56 +00:00
parent a64464593a
commit 7bbec55626
6 changed files with 112 additions and 18 deletions

View file

@ -283,11 +283,15 @@ public class SOAPHttpPage implements HttpPage{
response.addNamespace("m", m.getNamespace() );
response.setName("m:"+m.getName()+"Response");
// TODO: problem does not work for other returns than WSReturnObject
Field[] f = ret.getClass().getFields();
for(int i=0; i<m.getOutputCount() ;i++){
WSParameterDef param = m.getOutput( i );
generateReturnXML(response,((WSReturnObject)ret).getValue(f[i]) , param.getName());
if( ret instanceof WSReturnObject ){
Field[] f = ret.getClass().getFields();
for(int i=0; i<m.getOutputCount() ;i++){
WSParameterDef param = m.getOutput( i );
generateReturnXML(response,((WSReturnObject)ret).getValue(f[i]) , param.getName());
}
}
else{
generateReturnXML(response, ret, m.getOutput(0).getName());
}
}
}