If you looking to see logging on the wire, you can edit
$GLOBUS_LOCATION/container-log4j.properties and uncomment the line that has
"MessageLoggingHandler".

If you want to serialize the data type and write to file, you can use
org.globus.wsrf.encoding.ObjectSerializer; For example, this code snippet
uses it to serialize EndpointReferenceTypes:

private static final QName NAME =
        new QName("http://counter.com";, "CounterReference"); (this can be
anything, does not make a difference)
ObjectSerializer.toString(epr, NAME)

To read it back, use ObjectDeserializer from the same package. For example,

(EndpointReferenceType)ObjectDeserializer.deserialize(
                    new InputSource(in),
                    EndpointReferenceType.class);
 
Hope this helps,
Rachana

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Schulz, Henrik
> Sent: Monday, June 18, 2007 2:32 AM
> To: [email protected]
> Subject: [gt-user] Serialization
> 
> Dear all,
> 
> I have written a simple web service with a structered data 
> type. I am using a client program to create entities of such 
> structered data. 
> 
> Is there a simple way to get access to the xml data which is 
> transported between client and service? Or is there a method 
> to serialize the resource properties into an xml instance file?
> 
> Thanks for any help!
> Henrik
> 
> 
> 
> 

Reply via email to