• 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 ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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="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>
 
reply
    Bookmark Topic Watch Topic
  • New Topic