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?



--
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.

Reply via email to