Bugfix and continued implementation of soap client
This commit is contained in:
parent
a64464593a
commit
7bbec55626
6 changed files with 112 additions and 18 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue