aspose file tools*
The moose likes Web Services and the fly likes Deserializing parameter 'empRequest' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Deserializing parameter Watch "Deserializing parameter New topic

Deserializing parameter 'empRequest'

maha laxmi
Ranch Hand

Joined: Sep 23, 2005
Posts: 68
i have this wsdl with document style;i created stubs using WSDL2Java;when i run the client i am getting this exception

org.xml.sax.SAXException: Deserializing parameter 'empRequest': could not find deserializer for type {urn:Emp}EmpRequest

<?xml version="1.0" encoding="UTF8" ?>
<wsdl efinitions targetNamespace="urn:Emp" xmlns:apachesoap="" xmlns:impl="urn:Emp" xmlns:intf="urn:Emp" xmlns:tns1="" xmlns:wsdl="" xmlns:wsdlsoap="" xmlns:xsd="">
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)

<schema targetNamespace="urn:Emp" xmlns="">
<complexType name="EmpRequest">
<element name="empno" nillable="true" type="xsd:string" />
<element name="empname" nillable="true" type="xsd:string" />
<complexType name="EmpResponse">
<element name="salary" nillable="true" type="xsd:string" />
<element name="desc" nillable="true" type="xsd:string" />
<complexType name="ArrayOfEmpResponse">
<element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:EmpResponse" />
<element name="getEmpReturn">
<element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:EmpResponse" />
<schema elementFormDefault="qualified" targetNamespace="" xmlns="">
<import namespace="urn:Emp" />
<element name="empRequest" type="impl:EmpRequest" />
<wsdl:message name="getEmpResponse">
<wsdl art element="impl:getEmpReturn" name="getEmpReturn" />
<wsdl:message name="getEmpRequest">
<wsdl art element="empRequest" name="empRequest" />
<wsdl ortType name="EmpRequest">
<wsdl peration name="getEmp" parameterOrder="empRequest">
<wsdl:input message="impl:getEmpRequest" name="getEmpRequest" />
<wsdl utput message="impl:getEmpResponse" name="getEmpResponse" />
</wsdl peration>
</wsdl ortType>
<wsdl:binding name="EmpSoapBinding" type="impl:EmpRequest">
<wsdlsoap:binding style="document" transport="" />
<wsdl peration name="getEmp">
<wsdlsoap peration soapAction="" />
<wsdl:input name="getEmpRequest">
<wsdlsoap:body use="literal" />
<wsdl utput name="getEmpResponse">
<wsdlsoap:body use="literal" />
</wsdl utput>
</wsdl peration>
<wsdl:service name="EmpService">
<wsdl ort binding="impl:EmpSoapBinding" name="Emp">
<wsdlsoap:address location="http://localhost:8080/axis/services/EmpService" />
</wsdl ort>
</wsdl efinitions>
I agree. Here's the link:
subject: Deserializing parameter 'empRequest'
Similar Threads
why Axis doesn't preserve Inheritance ?
Methods other then getters and setters in object (java bean)in webservices
How do I return a Array of Value objects in Webservice
Collection Classes, WSAD, and WebServices
Error: no SOAPAction header!