axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Perko" <javajoe...@gmail.com>
Subject Re: REST and POX
Date Tue, 22 Jan 2008 18:21:19 GMT
I've tried several things including pulling out the spring but to no
avail.  I've written my own receiver that does what I need.  If there
is a better way please let me know!


On Jan 21, 2008 11:46 PM, Ralph Perko <javajoe220@gmail.com> wrote:
> Hi, thanks for the response.
>
>
> Yes, it is a POJO and I am using RPCMessageReceiver.  It is a Spring
> based deployment.  Spring is deployed within the aar.
>
> service.xml:
>     <service name="restService" class=".....spring.SpringInit">
>
>      <messageReceivers>
>         <messageReceiver  mep="http://www.w3.org/2004/08/wsdl/in-only"
> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
>         <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>     </messageReceivers>
>
>         <!-- Spring / Axis2 config stuff -->
>         <parameter name="ServiceTCCL">composite</parameter>
>         <parameter
> name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier</parameter>
>         <parameter name="SpringBeanName">searchService</parameter>
>
>
>         <operation name="RestfulService"/>
>
>     </service>
>
> The service interface is defined as follows:
>
> public String RestfulService(Integer startIndex, Integer
> resultsPerPage, String profile, String keywords);
>
> Thanks!
>
>
>
> On Jan 21, 2008 9:47 PM, keith chapman <keithgchapman@gmail.com> wrote:
> > Hi,
> >
> > Is your service a POJO? Are you using RPCMessageReceiver?
> >
> > Thanks,
> > Keith.
> >
> >
> > On Jan 22, 2008 1:01 AM, Ralph Perko <javajoe220@gmail.com> wrote:
> > > Hi,
> > >
> > > Is there any way to configure axis2 to not include the wrapping XML on
> > > the REST response?  My service returns an Atom feed which needs to  be
> > > returned as POX without the extra XML, otherwise it does not render
> > > correctly.
> > >
> > > Thanks!
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> >
> > --
> > Keith Chapman
> > Software Engineer
> > WSO2 Inc.
> > Oxygenating the Web Service Platform.
> > http://wso2.org/
> >
> > blog: http://www.keith-chapman.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message