java web service wsdl: Getting data out of a responce variable -


very new web services (as can tell q) pretty sure basic question.

i sending request of server

executesqlqueryreq sqlparams = new executesqlqueryreq(); sqlparams.setsql(sqlstate.getnodevindp("liv_phones_dp")); 

and getting response expect:

executesqlqueryres getsqlresult = axlport.executesqlquery(sqlparams); 

i can see data there in object eclipse debugging enter image description here

but object "getsqlresult" dont know how pull data out. response in following format: enter image description here

any great

thanks alexis

edit: screen shot of "executesqlqueryres". methods see return list of objects, , screenshot of variables in eclipse mention. next step .... how generic object data out..

enter image description here

from type signatures, i'd invoke service so:

list<object> rows = axlport.executesqlquery(sqlparams)                            .getreturn()                            .getrow(); for(object row : rows) {     element rowelement = (element) row;     // utilize dom api } 

as far can tell information posted you're getting list of elements. in xml:

<row>?</row> <row>?</row> <row>?</row> 

since row anytype nothing specific can inferred structure. in specific case, first entry looks assuming single child (text) node:

<row>339</row> 

you can use java dom apis access data.

from name onwards, service looks exposes underlying database implementation. consider adhering stricter soa principles if have influence on service design.


Comments