If I try to use a "Color" member of a bean, things generate fine (albeit
with a warning:
generate-wsdl:
[java] 1 [main] WARN fromJava.Types - The class java.awt.Color is
defined in a java or javax package and cannot be converted into an xml
schema type. An xml schema anyType will be used to define this class in
the wsdl file.
)
But then my test fails because Axis doesn't know how to serialize a
Color. How do I fix this?
My apologies if this has been asked so many times before...I was unable
to locate an answer.
[junit] AxisFault
[junit] faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
[junit] faultSubcode:
[junit] faultString: java.io.IOException: No serializer found for
class java.awt.Color in registry
[EMAIL PROTECTED]
[junit] faultActor:
[junit] faultNode:
[junit] faultDetail:
[junit] {http://xml.apache.org/axis/}stackTrace: AxisFault
[junit] faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
[junit] faultSubcode:
[junit] faultString: java.io.IOException: No serializer found for
class java.awt.Color in registry
[EMAIL PROTECTED]
[junit] faultActor:
[junit] faultNode:
[junit] faultDetail:
[junit] java.io.IOException: No serializer found for class
java.awt.Color in registry [EMAIL PROTECTED]
[junit] at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
[junit] at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
etc....