Ok, so I know that I will have to use the class-mapping. Actually I got some
results using inline configuration, but still nothing using external binding
files. This is my binding-file:
<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 >
<jxb:bindings
node="//xsd:schema/xsd:complexty...@name='BcaStrChecklog']">
<jxb:class implClass="foo.bar.SomeType"/>
</jxb:bindings>
</jaxws:bindings>
</jaxws:bindings>#
I somehow think the problem might be related to the fact, that there are two
schemas inside my WSDL (I left the inline configuration in comments):
<wsdl:types>
<xsd:schema attributeFormDefault="qualified"
targetNamespace="urn:sap-com:document:sap:rfc:functions">
<xsd:simpleType name="char1">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
...
<xsd:simpleType name="time">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="8"/>
<xsd:pattern value="\d\d:\d\d:\d\d"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
<xsd:schema attributeFormDefault="qualified"
targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style"
xmlns:n0="urn:sap-com:document:sap:rfc:functions"
jxb:version="1.0">
<xsd:import namespace="urn:sap-com:document:sap:rfc:functions"/>
<xsd:complexType name="BcaStrChecklog">
<!-- xsd:annotation>
<xsd:appinfo>
<jxb:class implClass="foo.bar.SomeType"/>
</xsd:appinfo>
</xsd:annotation -->
<xsd:sequence>
<xsd:element name="Type" type="n0:char1"/>
<xsd:element name="Id" type="n0:char20"/>
<xsd:element name="Number" type="n0:numeric3"/>
<xsd:element name="Message" type="n0:char220"/>
<xsd:element name="LogNo" type="n0:char20"/>
<xsd:element name="LogMsgNo" type="n0:numeric6"/>
<xsd:element name="MessageV1" type="n0:char50"/>
<xsd:element name="MessageV2" type="n0:char50"/>
<xsd:element name="MessageV3" type="n0:char50"/>
<xsd:element name="MessageV4" type="n0:char50"/>
I also tried to directly reference the schema by its namespace, but no
result either ...
BTW, is there _really good_ literature on this subject. Documentation in the
internet is not too comprehensive.
Bye,
Ralph
--
View this message in context:
http://old.nabble.com/Problem-with-javaType-external-binding-tp28529529p28557276.html
Sent from the cxf-user mailing list archive at Nabble.com.