Mail Archive Home | celtix List | July 2006 Index
|<-- Date Index -->||<-- Thread Index -->|
We were all up beat about this response yesterday until we discovered that getPayload is not implemented. Any suggestions on how easy it will be to implement this function. A very quick look has confused me because the getPayload(JaxbContext jCtxt) doesn't actually use the jCtxt. Richard Shaw ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ Richard Shaw Technical Design Authority - Information Solutions Consultancy Intelligent Transport Systems Atkins Highways and Transportation Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW Tel: +44 (0) 1372 756407 Fax: +44 (0) 1372 740055 Mob: 07740 817586 E-mail: richard.shaw@xxxxxxxxxxxxxxxx www.atkinsglobal.com/its -----Original Message----- From: Alan Conway [mailto:alan.conway@xxxxxxxx] Sent: 14 July 2006 19:18 To: celtix@xxxxxxxxxxxxx Subject: Re: [celtix] Generic data input Hi Richard, Look at javax.xml.ws.LogicalMessage, it provides exactly what you want: javax.xml.transform.Source getPayload() Gets the message payload as an XML source, may be called multiple times on the same LogicalMessage instance, always returns a new Source that may be used to retrieve the entire message payload. This payload is not the raw SOAP message or whatever the binding specifies. It's the XML form of the binding-independent JAXB message in the form of a transform Source. You immediately have the binding specifics taken care of for you, there hasn't been any unnecessary unmarshalling yet (assuming an intelligent binding implementation) and the payload is in just the form you need to apply an XSLT transform. You can get access to this message in a javax.xml.ws.handler.LogicalHandler. Cheers, Alan. On Tue, 2006-07-11 at 11:52 +0100, Shaw, Richard A wrote: > I have the following use case and was wondering what people thought > about my idea to use Celtix for it - > > I need to load data from multiple sources into a data warehouse. There > are an unlimited number of external sources with as yet unknown data > formats and transport technologies. I need to request the data, > convert it into a canononical format and pass into the system for > storage (using soap over HTTP). > > What I am thinking about creating is a generic data fetch component > using Celtix which does the following - > > When deployed it is given a a WSDL file, an operation name, a > transform and a poll time as configuration data. > When the poll timer goes off it will use the operation as defined in > the WSDL to request the data, pass it through the transform and send > the result into the system. > > I want to avoid unmarshalling the data if I can, so if I get data in > an XML format I want to pass it through an XSL transform and send the > result into the system. > > I'm thinking about looking at how the router works to achieve this. > What I'm still struggling with is what to do if the binding is not in > an XML format (i.e. not pure XML or soap wrapped XML). I'm thinking I > might have to unmarshal it and then re-marshal to XML before the > transform. > > I would do this with a BPMS system if only it would use Celtix to > support the custom transports and bindings which I will need to create > to handle the undefined data formats and bindings. > > What do people think ? Does it make sense ? Will this be hard to > achieve ? > > > Richard Shaw > > ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ > > Richard Shaw > Technical Design Authority - Information Solutions Consultancy > Intelligent Transport Systems > > Atkins Highways and Transportation > Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW > > Tel: +44 (0) 1372 756407 > Fax: +44 (0) 1372 740055 > Mob: 07740 817586 > E-mail: richard.shaw@xxxxxxxxxxxxxxxx > > www.atkinsglobal.com/its > > > > This email and any attached files are confidential and copyright > protected. If you are not the addressee, any dissemination of this > communication is strictly prohibited. Unless otherwise expressly > agreed in writing, nothing stated in this communication shall be > legally binding. > > plain text document attachment (message-footer.txt) > -- > You receive this message as a subscriber of the celtix@xxxxxxxxxxxxx > mailing list. > To unsubscribe: mailto:celtix-unsubscribe@xxxxxxxxxxxxx > For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help > ObjectWeb mailing lists service home page: > http://www.objectweb.org/wws This message has been scanned for viruses by MailControl - (see http://bluepages.wsatkins.co.uk/?4318150)
|<-- Date Index -->||<-- Thread Index -->|
Powered by MHonArc.Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.