File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Axis Complex Type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis Complex Type" Watch "Axis Complex Type" New topic

Axis Complex Type

Suman Majumder

Joined: Mar 08, 2004
Posts: 5
Can anyone help me with this ??
Retrieving document at 'http://localhost:9080/WebServiceTest/wsdl/com/xyz/classes/GetDataFromDB.wsdl#GetDataFromDB'.

Axis parameters gathered:
TargetNamespace =
Service Name = GetDataFromDB
Port Name = {}GetDataFromDBService
Operation Name = getData
Input Parameters = BENTCD

Invoking service >> GetDataFromDB <<...
Error invoking service : org.xml.sax.SAXException: No deserializer for {}Description

I am trying to invoke a WEBService which has complex types in WSAD5.1 using Axis runtime
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Do you have a serializer/deserializer for the "Description" class, and did you declare it in the WSDD file or in your code? Axis can't just transport any Java object, it needs to know how to convert it to something cross-platform compatible. Even if you can use the BeanSerializer, that still needs to be registered with the SOAP code.
Suman Majumder

Joined: Mar 08, 2004
Posts: 5
My wsdd file looks like ...

<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="" xmlns:java="">

<!-- Services from GetDataFromDBService WSDL service -->

<service name="GetDataFromDB" provider="java:RPC">
<parameter name="wsdlTargetNamespace" value=""/>
<parameter name="wsdlServiceElement" value="GetDataFromDBService"/>
<parameter name="wsdlServicePort" value="GetDataFromDB"/>
<parameter name="className" value=""/>
<parameter name="wsdlPortType" value="GetDataFromDB"/>
<operation xmlns perNS="" xmlns:rtns="" name="getData" qname="operNS:getData" returnQName="getDataReturn" returnType="rtns:anyType">
<parameter xmlns:tns="" name="param" type="tns:string"/>
<operation xmlns perNS="" xmlns:rtns="" name="getEntity" qname="operNS:getEntity" returnQName="getEntityReturn" returnType="rtns escription">
<parameter name="allowedMethods" value="getData getEntity"/>

<typeMapping xmlns:ns="" qname="ns escription" type="" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle=""/>

Do I have do do anything special to make my Web Service use the wsdd file while deployment. I converted the Java bean into a Web Service and the wsdd file was generated.Then I made the web service run on server and deployed it in a UDDI.....
I agree. Here's the link:
subject: Axis Complex Type
It's not a secret anymore!