You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Sagara Gunathunga (JIRA)" <ji...@apache.org> on 2011/09/08 09:27:10 UTC
[jira] [Resolved] (AXIS2-4032) java.util.Calender argument sent to
weblogic webservice via Axis client throws IllegalArgumentException
[ https://issues.apache.org/jira/browse/AXIS2-4032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sagara Gunathunga resolved AXIS2-4032.
---------------------------------------
Resolution: Invalid
This should be reported here https://issues.apache.org/jira/browse/AXIS
> java.util.Calender argument sent to weblogic webservice via Axis client throws IllegalArgumentException
> -------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4032
> URL: https://issues.apache.org/jira/browse/AXIS2-4032
> Project: Axis2
> Issue Type: Test
> Components: Integration
> Affects Versions: 1.4
> Environment: Windows XP OS on client, Axis 1.4 client interfacing with Weblogic 10.0 Webservice
> Reporter: Sean Davey
> Priority: Minor
>
> A simple Weblogic webservice was created on weblogic 10.0 platform using EJB3 annotations. A single method which takes a java.util.Date argument and simply returns a string representation of the date.
> public String testDate(java.util.Date dt)
> {
> return dt.toString() ;
> }
> I run wsdl2java utility against the weblogic service wsdl. created an axis client using the generated code and ran a test call to the method described above.
> the weblogic server generates the exception:
> java.lang.IllegalArgumentException: argument type mismatch
> the Soapmessage generated by the axis client is the following:
> <?xml version="1.0" encoding="UTF-8"?>
> <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>
> <testDate xmlns="http://ws.com/">
> <arg0 xsi:type="xsd:dateTime" xmlns="">2008-08-08T21:32:11.642Z</arg0>
> </testDate>
> </soapenv:Body>
> </soapenv:Envelope>
> I run a test using a weblogic client the call works properly and responds with a string representation of the date. The following soap message gets generated by the weblogic client:
> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <env:Header/>
> <env:Body>
> <m:testDate xmlns:m="http://ws.com/">
> <arg0>2008-08-08T17:43:27.870-04:00</arg0>
> </m:testDate>
> </env:Body>
> </env:Envelope>
> I have also written an Axis Webservice with the Identical method and this works fine after using the axis wsdl2java tool and calling the method with the resulting code.
> I have opened a case with weblogic concerning this matter, they have asked that I also open an issue with apache.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org