Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Deserializing parameter 'empRequest'

Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic