See DefaultTypeMapping ...
defaultRegister(tm, defaultNillable, XMLStreamReader.class,
XMLSchemaQNames.XSD_ANY,
new XMLStreamReaderType());
You'll make a call to the type mapping object passing your schema type's qname.
On Fri, Dec 12, 2008 at 5:50 PM, Benson Margulies <[email protected]> wrote:
> It turns out that Aegis still have some capability here, though I have
> no idea if it works.
>
> Currently, it maps xs:any to XMLStreamReaders.
>
> You need to make a custom mapping to get the desired result. Mappings
> connect XML Schema types to Java data types, not XML Schema elements
> or WSDL parts.
>
> I wrote some Confluence on how to do custom mapping in the current
> Aegis. Let me know if you can't find it.
>
> If the XMLStreamReader mapping blows up, file a JIRA.
>
> You will want to map your
>
> On Fri, Dec 12, 2008 at 3:49 PM, Daniel Kulp <[email protected]> wrote:
>> On Thursday 11 December 2008 6:14:11 pm Rao, Sameer V wrote:
>>> Hi,
>>>
>>> I am not able to find documentation/sample that illustrates how to
>>> expose a service (Java First approach) that takes in XMLStreamReader as
>>> input and return XMLSTreamReader?
>>>
>>> Is there any sample?
>>
>> There is a "StaxDataBinding" in CXF. It's just a bit harder to work with.
>> The main issue is that it HAS to remove some of the other interceptors
>> (DocLiteralInInterceptor, BareInInterceptor, etc...) that would iterate over
>> the XMLStreamReader to see if there are more elements to map to parts.
>>
>> Look at the org.apache.cxf.databinding.stax.StaxDataBinding stuff.
>>
>> --
>> Daniel Kulp
>> [email protected]
>> http://dankulp.com/blog
>>
>