You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by bohldan bohldan <gl...@hotmail.com> on 2005/03/14 13:29:28 UTC
could not find deserializer for type
Error message:
org.xml.sax.SAXException: Deserializing parameter
'ldap_GetAllUsernamesReturn': could not find deserializer for type
{http://localhost:8080/axis/services/GlazeService}User
whats wrong what do i have to do i only want to send a Array om my object
User
Client:
----------------------
String endpointURL = "http://localhost:8080/axis/services/GlazeService";
Service service = new Service();
Call call = (Call) service.createCall();
QName qn = new QName( "urn:GlazeService.Service", "User" );
call.setOperationName("ldap_GetAllUsernames");
call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
call.registerTypeMapping( User.class,
qn,
org.apache.axis.encoding.ser.BeanSerializerFactory.class,
org.apache.axis.encoding.ser.BeanDeserializerFactory.class );
call.setUsername("Larry Fine");
call.setPassword("larrysecret");
User[] tomte = (User[])call.invoke(new Object [] {});
System.out.println("Size: " + tomte.length);
-------------------------------------------------
WSDD file:
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
xmlns:glaze="http://localhost:8080/axis/services/GlazeService">
<service name="GlazeService" provider="java:RPC">
<parameter name="className" value="GlazeService.Service"/>
<parameter name="allowedMethods" value="*"/>
<beanMapping qname="glaze:User"
languageSpecificType="java:GlazeService.User"/>
<typeMapping qname="glaze:ArrayOfUser"
type="java:GlazeService.User[]"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</service>
</deployment>
-------
_________________________________________________________________
Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/