axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryuusei Murakami <murak...@aswindow.co.jp>
Subject BeanSerializerFactory question
Date Thu, 19 Feb 2004 08:47:26 GMT
Hi.

I have been trying to make a web service by using following classes;

javax.agent.service.directory.ServiceDescrption:
public interface ServiceDescription extends JasBean

org.jagent.service.directory.BasicServiceDescription:
public class BasicServiceDescription extends JasBeanImpl
implements ServiceDescription

javax.agent.JasBean: (super interface of ServiceDescription)
public interface JasBean

org.jagent.JasBeanImpl:
public class JasBeanImpl implements JasBean, java.io.Serializable

JasBeanImpl, super class of BasicServiceDescription, uses
java.io.Serializable and these class are look like Bean classes
(for using set/geter methods).  So, I use
BeanSerializer/DeserializerFactory.

--- part of WSDD file
<typeMapping xmlns:ns="urn:SOAPServiceDirectoryService"
  qname="ns:ServiceDescription"
  type="java:javax.agent.service.directory.ServiceDescription"
  serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
  deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
  encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
---

Then, I accounted folloing error message.

(1) in this case, cannot use BeanSerializer/DeserializerFactory ?
(2) if (1) is true, may I use original Serializer/Deserializer ?

--- error message is following;
org.xml.sax.SAXException: Unable to create JavaBean of type
javax.agent.service.directory.ServiceDescription.  Missing default
constructor?  Error was: java.lang.InstantiationException:
javax.agent.service.directory.ServiceDescription.
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXException: Unable to create JavaBean of
type javax.
agent.service.directory.ServiceDescription.  Missing default
constructor?  Error was: java.lang.InstantiationException:
javax.agent.service.directory.ServiceDescription.
 faultActor:
 faultNode:
 faultDetail: {http://xml.apache.org/axis/}stackTrace: AxisFault

-- 
% ASWINDOW,co.,inc.
% Ryuusei Murakami / murakami@aswindow.co.jp
% http://www.aswindow.co.jp/


Mime
View raw message