Hi,
I#M currently facing the following problem: I received a bunch of WSDLs
which I have to use in my application. Each of them contains a service an a
result structure (complexType). The result structures are the same for all
WSDLs, but since their java counterparts are generated into different
packages, it's a little hard to evaluate them in a generic way. As far as I
understood, changing the package for a complexType only is not possible. The
next idea was to apply a javaType binding instruction to those complex
types. But I just can't get it right. I tried jaxws binding, jaxb binding,
various xpath expressions - everything leading to errors or no result at
all.
All the samples I found map a simpleType to some special java class (seems
that everyone wants to convert dates ...), but there was no sample for a
complexType. Maybe this does not work at all?
Though I never had the feeling, that I was even close to the solution, I'm
providing my latest binding file. Maybe it's at least a starting point for
hints:
<jaxws:bindings wsdlLocation="LastschriftZurueckgeben.wsdl"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" jxb:version="1.0">
<jaxws:bindings
node="wsdl:definitions/wsdl:types/xsd:schema/xsd:complexty...@name='BcaStrChecklog']">
<jxb:globalBindings>
<jxb:javaType name="foo.bar.somType" xmlType="BcaStrChecklog"
parseMethod="methodOne"
printMethod="methodTwo"/>
</jxb:globalBindings>
</jaxws:bindings>
</jaxws:bindings>
BTW, there are two schemas in the WSDL - in case this might make a
difference.
Thanks in advance,
Ralph
--
View this message in context:
http://old.nabble.com/Problem-with-javaType-external-binding-tp28529529p28529529.html
Sent from the cxf-user mailing list archive at Nabble.com.