Win a copy of liveProject: Build an ML Recommender System this week in the Artificial Intelligence and Machine Learning 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
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

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>
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic