cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: CXF wsdl2java docs - improvements
Date Fri, 03 Feb 2017 16:25:34 GMT
Hi

I just checked, no 'jfiala' is recorded in the ICLAs list at Apache,
Can you please submit ICLA and also create a Confluence account ?

Thanks, Sergey


On 03/02/17 14:41, J. Fiala wrote:
> Hi there,
>
> I found two minor issues regarding the docs:
> http://cxf.apache.org/docs/wsdl-to-java.html
>
> 1.) Q: How to map xsd:dateTime to java.util.Date?:
>
> The package names are out of date:
>
>  <jxb:javaType name="java.util.Date" xmlType="xs:dateTime"
> parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDateTime"
> printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDateTime"/>
>
> They have been moved to org.apache.cxf.xjc.runtime
>
>     <jxb:javaType name="java.util.Date" xmlType="xs:dateTime"
> parseMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.parseDateTime"
> printMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.printDateTime"/>
>
> This requires an additional dependency:
> <dependency>
> <groupId>org.apache.cxf.xjc-utils</groupId>
>             <artifactId>cxf-xjc-runtime</artifactId>
>             <version>...</version>
>         </dependency>
>
>
> 2.) Q: What if I want to change the generated SEI name?
>
> The current sample is missing the correct Xpath to specify the
> protType@name:
>
> ...
>     <bindings node="wsdl:definitions/wsdl:portType">
>     <class name="GreeterSEI"/>
>     </bindings>
> ...
>
> sample with full Xpath:
>
> <jaxws:bindings node="wsdl:definitions/wsdl:portType[@name='HelloWS']">
>         <jaxws:class name="IHelloWS"/>
>   </jaxws:bindings>
>
>
> Please let me know if I can edit the Wiki already, then I'll add this
> myself.
>
> Best regards,
>
> J. Fiala
>


Mime
View raw message