On 22/10/12 10:05, jbright wrote:
So if the Schema renders an XML like this:

<SalesRequest>
   <Credentials>
     <AppId>SALESTALK</AppId>
     <Password>Gimmick</Password>
     <SecurityToken>Gimmick</SecurityToken>
   </Credentials>
   <Params>
     <FirstName>SIMON</FirstName>
   </Params>
</SalesRequest>

The root resource becomes SalesRequest. - right?

So I can substitute as like this?

sf.setResourceProvider(SalesRequest.class,
                                    new SingletonResourceProvider(new
SalesRequest(), true));

- right?

No, the above is some specific representation, JAX-RS root resource class is the one that you'd like to test, the one that has that signature

Sergey



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Testing-JAX-RS-which-Consumes-application-xml-and-Produces-application-xml-tp5716985p5717107.html
Sent from the cxf-user mailing list archive at Nabble.com.


--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to