You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Cameron Taggart (JIRA)" <ji...@apache.org> on 2007/01/19 02:51:29 UTC
[jira] Created: (CXF-369) xsd:dateTime becomes
XMLGregorianCalendarImpl when Date needed
xsd:dateTime becomes XMLGregorianCalendarImpl when Date needed
--------------------------------------------------------------
Key: CXF-369
URL: https://issues.apache.org/jira/browse/CXF-369
Project: CXF
Issue Type: Bug
Environment: svn head, jax-ws api, annotations
Reporter: Cameron Taggart
I have a web method:
public Date echoDate(String sessionID, Date input);
The soapUI 1.6 client works, but the Axis 1.3 client passes in xsi:type="xsd:dateTime". The CXF server turns the dateTime into a XMLGregorianCalendarImpl instead of a date when that is set. AbstractInvoker then fails at this call res = m.invoke(serviceObject, paramArray); with an IllegalArgumentException.
Here is the full request that does not work:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<echoDate xmlns="urn:TestService/wsdl">
<sessionID>2CE0B857-43D1-F488-0E0A-F055FDCB8294</sessionID>
<input xsi:type="xsd:dateTime">2008-01-19T00:29:48.889Z</input>
</echoDate>
</soapenv:Body>
</soapenv:Envelope>
Failure Response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>argument type mismatch</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Removing 'xsi:type="xsd:dateTime"' makes it work.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CXF-369) xsd:dateTime becomes
XMLGregorianCalendarImpl when Date needed
Posted by "Bozhong Lin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bozhong Lin updated CXF-369:
----------------------------
Component/s: Soap Binding
> xsd:dateTime becomes XMLGregorianCalendarImpl when Date needed
> --------------------------------------------------------------
>
> Key: CXF-369
> URL: https://issues.apache.org/jira/browse/CXF-369
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Environment: svn head, jax-ws api, annotations
> Reporter: Cameron Taggart
> Assigned To: maomaode
>
> I have a web method:
> public Date echoDate(String sessionID, Date input);
> The soapUI 1.6 client works, but the Axis 1.3 client passes in xsi:type="xsd:dateTime". The CXF server turns the dateTime into a XMLGregorianCalendarImpl instead of a date when that is set. AbstractInvoker then fails at this call res = m.invoke(serviceObject, paramArray); with an IllegalArgumentException.
> Here is the full request that does not work:
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <echoDate xmlns="urn:TestService/wsdl">
> <sessionID>2CE0B857-43D1-F488-0E0A-F055FDCB8294</sessionID>
> <input xsi:type="xsd:dateTime">2008-01-19T00:29:48.889Z</input>
> </echoDate>
> </soapenv:Body>
> </soapenv:Envelope>
> Failure Response
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>argument type mismatch</faultstring>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
> Removing 'xsi:type="xsd:dateTime"' makes it work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-369) xsd:dateTime becomes
XMLGregorianCalendarImpl when Date needed
Posted by "Bozhong Lin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bozhong Lin updated CXF-369:
----------------------------
Fix Version/s: 2.0-RC
Affects Version/s: 2.0-RC
> xsd:dateTime becomes XMLGregorianCalendarImpl when Date needed
> --------------------------------------------------------------
>
> Key: CXF-369
> URL: https://issues.apache.org/jira/browse/CXF-369
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.0-RC
> Environment: svn head, jax-ws api, annotations
> Reporter: Cameron Taggart
> Assigned To: maomaode
> Fix For: 2.0-RC
>
>
> I have a web method:
> public Date echoDate(String sessionID, Date input);
> The soapUI 1.6 client works, but the Axis 1.3 client passes in xsi:type="xsd:dateTime". The CXF server turns the dateTime into a XMLGregorianCalendarImpl instead of a date when that is set. AbstractInvoker then fails at this call res = m.invoke(serviceObject, paramArray); with an IllegalArgumentException.
> Here is the full request that does not work:
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <echoDate xmlns="urn:TestService/wsdl">
> <sessionID>2CE0B857-43D1-F488-0E0A-F055FDCB8294</sessionID>
> <input xsi:type="xsd:dateTime">2008-01-19T00:29:48.889Z</input>
> </echoDate>
> </soapenv:Body>
> </soapenv:Envelope>
> Failure Response
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>argument type mismatch</faultstring>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
> Removing 'xsi:type="xsd:dateTime"' makes it work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-369) xsd:dateTime becomes
XMLGregorianCalendarImpl when Date needed
Posted by "Dan Diephouse (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Diephouse updated CXF-369:
------------------------------
Fix Version/s: (was: 2.0)
2.0.1
I realize that this has take a while for us to respond (our humble apologies), but this sounds like a JAXB issue - I'm not sure why it would switch datatypes on us :-(.
Have you turned off the switch to send xsi:type information in axis?
> xsd:dateTime becomes XMLGregorianCalendarImpl when Date needed
> --------------------------------------------------------------
>
> Key: CXF-369
> URL: https://issues.apache.org/jira/browse/CXF-369
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.0-RC
> Environment: svn head, jax-ws api, annotations
> Reporter: Cameron Taggart
> Assignee: maomaode
> Fix For: 2.0.1
>
>
> I have a web method:
> public Date echoDate(String sessionID, Date input);
> The soapUI 1.6 client works, but the Axis 1.3 client passes in xsi:type="xsd:dateTime". The CXF server turns the dateTime into a XMLGregorianCalendarImpl instead of a date when that is set. AbstractInvoker then fails at this call res = m.invoke(serviceObject, paramArray); with an IllegalArgumentException.
> Here is the full request that does not work:
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <echoDate xmlns="urn:TestService/wsdl">
> <sessionID>2CE0B857-43D1-F488-0E0A-F055FDCB8294</sessionID>
> <input xsi:type="xsd:dateTime">2008-01-19T00:29:48.889Z</input>
> </echoDate>
> </soapenv:Body>
> </soapenv:Envelope>
> Failure Response
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>argument type mismatch</faultstring>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
> Removing 'xsi:type="xsd:dateTime"' makes it work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-369) xsd:dateTime becomes
XMLGregorianCalendarImpl when Date needed
Posted by "maomaode (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509484 ]
maomaode commented on CXF-369:
------------------------------
<annotation>
<appinfo>
<jxb:property>
<jxb:baseType>
<jxb:javaType name="java.util.Date">
</jxb:javaType>
</jxb:baseType>
</jxb:property>
</appinfo>
</annotation>
You can add this jaxb customization to override the default dateTime mapping
> xsd:dateTime becomes XMLGregorianCalendarImpl when Date needed
> --------------------------------------------------------------
>
> Key: CXF-369
> URL: https://issues.apache.org/jira/browse/CXF-369
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.0-RC
> Environment: svn head, jax-ws api, annotations
> Reporter: Cameron Taggart
> Assignee: maomaode
> Fix For: 2.0.1
>
>
> I have a web method:
> public Date echoDate(String sessionID, Date input);
> The soapUI 1.6 client works, but the Axis 1.3 client passes in xsi:type="xsd:dateTime". The CXF server turns the dateTime into a XMLGregorianCalendarImpl instead of a date when that is set. AbstractInvoker then fails at this call res = m.invoke(serviceObject, paramArray); with an IllegalArgumentException.
> Here is the full request that does not work:
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <echoDate xmlns="urn:TestService/wsdl">
> <sessionID>2CE0B857-43D1-F488-0E0A-F055FDCB8294</sessionID>
> <input xsi:type="xsd:dateTime">2008-01-19T00:29:48.889Z</input>
> </echoDate>
> </soapenv:Body>
> </soapenv:Envelope>
> Failure Response
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>argument type mismatch</faultstring>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
> Removing 'xsi:type="xsd:dateTime"' makes it work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-369) xsd:dateTime becomes
XMLGregorianCalendarImpl when Date needed
Posted by "maomaode (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
maomaode resolved CXF-369.
--------------------------
Resolution: Fixed
> xsd:dateTime becomes XMLGregorianCalendarImpl when Date needed
> --------------------------------------------------------------
>
> Key: CXF-369
> URL: https://issues.apache.org/jira/browse/CXF-369
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.0-RC
> Environment: svn head, jax-ws api, annotations
> Reporter: Cameron Taggart
> Assignee: maomaode
> Fix For: 2.0.1
>
>
> I have a web method:
> public Date echoDate(String sessionID, Date input);
> The soapUI 1.6 client works, but the Axis 1.3 client passes in xsi:type="xsd:dateTime". The CXF server turns the dateTime into a XMLGregorianCalendarImpl instead of a date when that is set. AbstractInvoker then fails at this call res = m.invoke(serviceObject, paramArray); with an IllegalArgumentException.
> Here is the full request that does not work:
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <echoDate xmlns="urn:TestService/wsdl">
> <sessionID>2CE0B857-43D1-F488-0E0A-F055FDCB8294</sessionID>
> <input xsi:type="xsd:dateTime">2008-01-19T00:29:48.889Z</input>
> </echoDate>
> </soapenv:Body>
> </soapenv:Envelope>
> Failure Response
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>argument type mismatch</faultstring>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
> Removing 'xsi:type="xsd:dateTime"' makes it work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-369) xsd:dateTime becomes
XMLGregorianCalendarImpl when Date needed
Posted by "Bozhong Lin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bozhong Lin updated CXF-369:
----------------------------
Fix Version/s: (was: 2.0-RC)
2.0
> xsd:dateTime becomes XMLGregorianCalendarImpl when Date needed
> --------------------------------------------------------------
>
> Key: CXF-369
> URL: https://issues.apache.org/jira/browse/CXF-369
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.0-RC
> Environment: svn head, jax-ws api, annotations
> Reporter: Cameron Taggart
> Assigned To: maomaode
> Fix For: 2.0
>
>
> I have a web method:
> public Date echoDate(String sessionID, Date input);
> The soapUI 1.6 client works, but the Axis 1.3 client passes in xsi:type="xsd:dateTime". The CXF server turns the dateTime into a XMLGregorianCalendarImpl instead of a date when that is set. AbstractInvoker then fails at this call res = m.invoke(serviceObject, paramArray); with an IllegalArgumentException.
> Here is the full request that does not work:
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <echoDate xmlns="urn:TestService/wsdl">
> <sessionID>2CE0B857-43D1-F488-0E0A-F055FDCB8294</sessionID>
> <input xsi:type="xsd:dateTime">2008-01-19T00:29:48.889Z</input>
> </echoDate>
> </soapenv:Body>
> </soapenv:Envelope>
> Failure Response
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>argument type mismatch</faultstring>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
> Removing 'xsi:type="xsd:dateTime"' makes it work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CXF-369) xsd:dateTime becomes
XMLGregorianCalendarImpl when Date needed
Posted by "Bozhong Lin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bozhong Lin reassigned CXF-369:
-------------------------------
Assignee: maomaode
> xsd:dateTime becomes XMLGregorianCalendarImpl when Date needed
> --------------------------------------------------------------
>
> Key: CXF-369
> URL: https://issues.apache.org/jira/browse/CXF-369
> Project: CXF
> Issue Type: Bug
> Environment: svn head, jax-ws api, annotations
> Reporter: Cameron Taggart
> Assigned To: maomaode
>
> I have a web method:
> public Date echoDate(String sessionID, Date input);
> The soapUI 1.6 client works, but the Axis 1.3 client passes in xsi:type="xsd:dateTime". The CXF server turns the dateTime into a XMLGregorianCalendarImpl instead of a date when that is set. AbstractInvoker then fails at this call res = m.invoke(serviceObject, paramArray); with an IllegalArgumentException.
> Here is the full request that does not work:
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <echoDate xmlns="urn:TestService/wsdl">
> <sessionID>2CE0B857-43D1-F488-0E0A-F055FDCB8294</sessionID>
> <input xsi:type="xsd:dateTime">2008-01-19T00:29:48.889Z</input>
> </echoDate>
> </soapenv:Body>
> </soapenv:Envelope>
> Failure Response
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>argument type mismatch</faultstring>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
> Removing 'xsi:type="xsd:dateTime"' makes it work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.