You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-dev@ws.apache.org by Shahzad Younas <sh...@bananacomputers.com> on 2005/03/22 13:19:58 UTC
extracting the resource ID
Hi,
I am trying to (on the client side) extract the resource ID from a soap body
of an incoming message.
byte[] tmp = senv.getBody().getFirstChild().toString().getBytes();
ByteArrayInputStream byteInput = new ByteArrayInputStream (tmp);
CreateShibbolethBrowserSessionResponseDocument responseDoc =
CreateShibbolethBrowserSessionResponseDocument.Factory.parse(byteInput);
log.info("ID:" +
responseDoc.getCreateShibbolethBrowserSessionResponse().getShibbolethBrowser
SessionReference().getReferenceProperties());
However, this prints out:
ID:<xml-fragment
xmlns:shib="http://ShibbolethBrowserSession/ShibbolethBrowserSession.xsd"
xmlns:add="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:shib1="http://ShibbolethBrowserSession/ShibbolethBrowserSession.wsdl">
<shib1:ResourceID>ShibbolethBrowserSessionResource1</shib1:ResourceID>
</xml-fragment>
How can I JUST extract the "ResourceID" ? I cant seem to see any "get"
methods for going this.
Thank you
Shahzad