Hello\!

Im trying out webservice calls (SOAP) to a fedora server. Right now  I'm trying to get a certain Datastream through a method that looks like this:

public Datastream getDatastream(String pid, String dataStreamId, String asOfDateTime) {
        Datastream result = null;
        try { // Call Web Service Operation
            result = port.getDatastream(pid, dataStreamId, asOfDateTime);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return result;
    }

This returns a Datastream object... however I don't know what do do with it next... For example, this is a piece of XML. How can I print it as a String?

thanks\!