You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "J. Fiala" <mo...@fwd.at> on 2017/02/03 14:41:30 UTC

CXF wsdl2java docs - improvements

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


Re: CXF wsdl2java docs - improvements

Posted by "J. Fiala" <mo...@fwd.at>.
Dear Dan,

Thanks, now it is up to date.

Best regards,
Johannes


Am 03.02.2017 um 22:13 schrieb Daniel Kulp:
>> On Feb 3, 2017, at 1:40 PM, J. Fiala <mo...@fwd.at> wrote:
>>
>> Dear Sergey,
>>
>> I updated the wiki page (https://cwiki.apache.org/confluence/display/CXF20DOC/WSDL+to+Java), but I don't see the changes at http://cxf.apache.org/docs/wsdl-to-java.html.
>>
>> How often is this published or is there an approval process?
> Usually takes about an hour or so.   It\u2019s automatic.
>
> Dan
>
>
>
>> Best regards,
>> Johannes
>>
>>
>> Am 03.02.2017 um 17:33 schrieb Sergey Beryozkin:
>>> Sorry, checked the wrong list :-), your ICLA submission is recorded,
>>> Dan added you earlier to the list of wiki contributors, please start editing
>>>
>>> Thanks, Sergey
>>> On 03/02/17 16:25, Sergey Beryozkin wrote:
>>>> 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
>>>>>
>>>


Re: CXF wsdl2java docs - improvements

Posted by Daniel Kulp <dk...@apache.org>.
> On Feb 3, 2017, at 1:40 PM, J. Fiala <mo...@fwd.at> wrote:
> 
> Dear Sergey,
> 
> I updated the wiki page (https://cwiki.apache.org/confluence/display/CXF20DOC/WSDL+to+Java), but I don't see the changes at http://cxf.apache.org/docs/wsdl-to-java.html.
> 
> How often is this published or is there an approval process?

Usually takes about an hour or so.   It’s automatic.

Dan



> 
> Best regards,
> Johannes
> 
> 
> Am 03.02.2017 um 17:33 schrieb Sergey Beryozkin:
>> Sorry, checked the wrong list :-), your ICLA submission is recorded,
>> Dan added you earlier to the list of wiki contributors, please start editing
>> 
>> Thanks, Sergey
>> On 03/02/17 16:25, Sergey Beryozkin wrote:
>>> 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
>>>> 
>>> 
>> 
>> 
> 

-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


Re: CXF wsdl2java docs - improvements

Posted by "J. Fiala" <mo...@fwd.at>.
Dear Sergey,

I updated the wiki page 
(https://cwiki.apache.org/confluence/display/CXF20DOC/WSDL+to+Java), but 
I don't see the changes at http://cxf.apache.org/docs/wsdl-to-java.html.

How often is this published or is there an approval process?

Best regards,
Johannes


Am 03.02.2017 um 17:33 schrieb Sergey Beryozkin:
> Sorry, checked the wrong list :-), your ICLA submission is recorded,
> Dan added you earlier to the list of wiki contributors, please start 
> editing
>
> Thanks, Sergey
> On 03/02/17 16:25, Sergey Beryozkin wrote:
>> 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
>>>
>>
>
>


Re: CXF wsdl2java docs - improvements

Posted by Sergey Beryozkin <sb...@gmail.com>.
Sorry, checked the wrong list :-), your ICLA submission is recorded,
Dan added you earlier to the list of wiki contributors, please start editing

Thanks, Sergey
On 03/02/17 16:25, Sergey Beryozkin wrote:
> 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
>>
>


-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Re: CXF wsdl2java docs - improvements

Posted by Sergey Beryozkin <sb...@gmail.com>.
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
>