Hi again
The code is now much nicer and works very well. Thanks again.
Arthur
MyDocType queryDoc = new MyDocType();
QueryParams queryParams = new QueryParams();
// Get a nice XML representation
MyServiceService_ServiceLocator service
= new MyService_ServiceLocator();
service.setEPCglobalEPCISServiceEndpointAddress(
accessURI); // Wherever your service is accessible.
MyServicePortType MyService
= new MyServiceBindingImpl();
javax.xml.namespace.QName queryDocXMLType =
MyDocType.getTypeDesc().getXmlType();
OutputStreamWriter oWriter = new OutputStreamWriter(Out);
SerializationContext serContext
= new SerializationContext(oWriter);
serContext.setWriteXMLType(queryDocXMLType);
queryDoc = myService.poll(pollParams);
serContext.serialize(
queryDocXMLType,
new NullAttributes(),
queryDoc,
queryDocXMLType,
MyDocType.class, false, true);
--
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]