You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Norman Franke <no...@myasd.com> on 2008/09/05 23:45:42 UTC

T4 XML Web Service

I want to create a few web services to allow importing and exporting  
of data. What's the best way to do this in a Tapestry 4.1 world? I  
could write a servlet to do this, of course. Is there a "Tapestry Way?"

Are there some good guidelines for creating an XML-based WOA (not SOAP  
as it seems too heavy and complicated) services that folks reference?  
I'll need to do some sort of authentication, either inside the XML  
file or as parameters to the POST.

I'm just trying to get a feel for what approaches work in the real  
world, and then design something that's rather simple. I'll have two  
main data types and a few simple operations, like query and insert.

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T4 XML Web Service

Posted by Igor Drobiazko <ig...@gmail.com>.
Have a look at HiveTranse Remoting. It allows you to export HiveMind
services as Web Services.
If SOAP protocol is not a requirement it might be interesting for you.

http://hivetranse.sourceforge.net/web/quickstart.html#start.remoting

On Fri, Sep 5, 2008 at 11:45 PM, Norman Franke <no...@myasd.com> wrote:

> I want to create a few web services to allow importing and exporting of
> data. What's the best way to do this in a Tapestry 4.1 world? I could write
> a servlet to do this, of course. Is there a "Tapestry Way?"
>
> Are there some good guidelines for creating an XML-based WOA (not SOAP as
> it seems too heavy and complicated) services that folks reference? I'll need
> to do some sort of authentication, either inside the XML file or as
> parameters to the POST.
>
> I'm just trying to get a feel for what approaches work in the real world,
> and then design something that's rather simple. I'll have two main data
> types and a few simple operations, like query and insert.
>
> Norman Franke
> Answering Service for Directors, Inc.
> www.myasd.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko

Re: T4 XML Web Service

Posted by Norman Franke <no...@myasd.com>.
Well, I never did really get much feedback. I ended up using the  
Jersey JAX-RS (JSR 311) implementation. This worked great, since it  
can directly marshal and unmarshal XML using JAXB. Works very well.

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com

On Sep 8, 2008, at 11:43 PM, Norman Franke wrote:

> On Sep 5, 2008, at 5:45 PM, Norman Franke wrote:
>
>> I want to create a few web services to allow importing and  
>> exporting of data. What's the best way to do this in a Tapestry 4.1  
>> world? I could write a servlet to do this, of course. Is there a  
>> "Tapestry Way?"
>>
>> Are there some good guidelines for creating an XML-based WOA (not  
>> SOAP as it seems too heavy and complicated) services that folks  
>> reference? I'll need to do some sort of authentication, either  
>> inside the XML file or as parameters to the POST.
>>
>> I'm just trying to get a feel for what approaches work in the real  
>> world, and then design something that's rather simple. I'll have  
>> two main data types and a few simple operations, like query and  
>> insert.
>
> After some research, I think JSR-311 is attractive.
>
> The next question, how can I integrate JSR-311 (JAX-RS) with  
> HiveMind? I have my Hibernate DAO's as HiveMind services, and I'd  
> like to use them from JAX-RS objects. The only thing I can think of  
> is by getting a reference to the Registry object from the servlet or  
> via a singleton (initialized at startup.) Any way to get HiveMind to  
> inject things into my object directly?
>
> Norman Franke
> Answering Service for Directors, Inc.
> www.myasd.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T4 XML Web Service

Posted by Norman Franke <no...@myasd.com>.
On Sep 5, 2008, at 5:45 PM, Norman Franke wrote:

> I want to create a few web services to allow importing and exporting  
> of data. What's the best way to do this in a Tapestry 4.1 world? I  
> could write a servlet to do this, of course. Is there a "Tapestry  
> Way?"
>
> Are there some good guidelines for creating an XML-based WOA (not  
> SOAP as it seems too heavy and complicated) services that folks  
> reference? I'll need to do some sort of authentication, either  
> inside the XML file or as parameters to the POST.
>
> I'm just trying to get a feel for what approaches work in the real  
> world, and then design something that's rather simple. I'll have two  
> main data types and a few simple operations, like query and insert.

After some research, I think JSR-311 is attractive.

The next question, how can I integrate JSR-311 (JAX-RS) with HiveMind?  
I have my Hibernate DAO's as HiveMind services, and I'd like to use  
them from JAX-RS objects. The only thing I can think of is by getting  
a reference to the Registry object from the servlet or via a singleton  
(initialized at startup.) Any way to get HiveMind to inject things  
into my object directly?

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org