cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian C <adrian.corco...@gmail.com>
Subject Re: jaxws binding issue
Date Thu, 24 Apr 2008 07:50:31 GMT


Has no one come across an issue similar to this - am lead to believe its a
bug in the wsdl2java tooling as I can get this to work with wsimport!


Adrian C wrote:
> 
> I am having some problems with jaxw binding customizations. 
> 
> The first problem that I am having is mixing a globalBindings definition
> with a bindings - the global bindings seems to be ignored. For the example
> below if I use it as is, I only get my typesafeEnumClass generated. My
> instances of XMLGregorianCalendar are not replaced with java.util.Date.
> However, if I remove the jaxb:bindings node then the global binding works
> fine. Can anyone shed any light on this?
> 
> The other issue I have is if I have in-lined customizations and external
> customizations I cam getting an error reporting inconsistencies - anyone
> ever had this issue and resolved it?
> 
> This has all been doing my nut in - so any help would be appreciated!
> 
> <jaxws:bindings wsdlLocation="../Output/IdentityManagement_v1.wsdl"
> 	xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
> 	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> 	xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
> 	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" version="2.0">
> 	<jaxws:bindings
> 	
> node="wsdl:definitions/wsdl:types/xsd:schema[@targetNamespace='http://www.test.com/ws/de']">
> 
> 		<jaxb:globalBindings>
> 			<jaxb:javaType name="java.util.Date" xmlType="xsd:date"
> 				parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDate"
> 				printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDate" />
> 		</jaxb:globalBindings>
> 
> 		<jaxb:bindings node="./xsd:simpleType[@name='MyEnum']">
> 			<jaxb:typesafeEnumClass>
> 				<jaxb:typesafeEnumMember name="ZERO" value="0" />
> 			</jaxb:typesafeEnumClass>
> 		</jaxb:bindings>
> 
> 	</jaxws:bindings>
> 
> </jaxws:bindings>
> 
> Thanks
> 

-- 
View this message in context: http://www.nabble.com/jaxws-binding-issue-tp16823731p16846489.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message