This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Deserializing parameter Watch "Deserializing parameter New topic
Author

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="http://xml.apache.org/xmlsoap" xmlns:impl="urn:Emp" xmlns:intf="urn:Emp" xmlns:tns1="http://java.emp.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)

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