axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Davey (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4032) java.util.Calender argument sent to weblogic webservice via Axis client throws IllegalArgumentException
Date Mon, 15 Sep 2008 16:31:44 GMT
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: Axis 2.0 (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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message