Hi all,

Is it possible to return an dom4j document object from a rest based service
in axis2? I am getting an Error doing this. 

I am using the following services.xml

<service name="BabyService" >
<parameter name="ServiceClass"
locked="false">com.TestServices.BabyNamesService</parameter>
        <operation name="getNames">
                <messageReceiver
class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" />
                <messageFormatter contentType="application/xml"
class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
        </operation>
</service>

and my java file is

public class BabyNamesService{

         
        
        public Document getNames()
        {
                Document document = DocumentHelper.createDocument();
                return document;
        }          
}

I want to read my result as an XML and I don't want to use AXIOM API for
this. I need to pass this result to a server which is more compatible with
dom4j object. Please let me know how I can do this asap.

Thanks a lot for your help



-- 
View this message in context: 
http://www.nabble.com/Problem-with-return-types-in-REST-services-in-AXIS2-tp16069762p16069762.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to