Details
-
Test
-
Status: Resolved
-
Minor
-
Resolution: Invalid
-
1.4
-
None
-
None
-
Windows XP OS on client, Axis 1.4 client interfacing with Weblogic 10.0 Webservice
Description
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.