Employee.wsdl <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions name="Employee" targetNamespace="http://www.example.org/contract/Employee" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://www.example.org/contract/Employee" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:emp="http://www.example.org/schema/Employee"> <wsdl:types> <xsd:schema targetNamespace="http://www.example.org/schema/Employee"> <xsd:simpleType name="GenderType"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="M"/> <xsd:enumeration value="F"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="NameType"> <xsd:restriction base="xsd:string"> <xsd:maxLength value="20"/> </xsd:restriction> </xsd:simpleType> <xsd:complexType name="EmployeeRecordType"> <xsd:sequence> <xsd:element minOccurs="0" name="EmployeeId" type="xsd:int"> </xsd:element> <xsd:element name="LastName" type="emp:NameType"/> <xsd:element name="FirstName" type="emp:NameType"/> <xsd:element name="Gender" type="emp:GenderType"/> <xsd:element name="DepartmentId" type="xsd:int"/> <xsd:element name="Hiredate" type="xsd:date"/> <xsd:element minOccurs="0" name="Salary" type="xsd:float"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="ArrayOfEmployeeRecordType"> <xsd:sequence> <xsd:element maxOccurs="unbounded" minOccurs="0" name="EmployeeRecord" nillable="true" type="emp:EmployeeRecordType"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="EmptyResponse"> <xsd:sequence/> </xsd:complexType> <xsd:complexType name="DepartmentIdType"> <xsd:sequence> <xsd:element name="DepartmentId" type="xsd:int"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="EmployeeIdType"> <xsd:sequence> <xsd:element name="EmployeeId" type="xsd:int"/> </xsd:sequence> </xsd:complexType> <xsd:element name="GetEmployeeByEmpId" type="emp:EmployeeIdType"/> <xsd:element name="GetEmployeeByEmpIdResponse" type="emp:EmployeeRecordType"/> <xsd:element name="GetEmployeesByDeptId" type="emp:DepartmentIdType"/> <xsd:element name="GetEmployeesByDeptIdResponse" type="emp:ArrayOfEmployeeRecordType"/> <xsd:element name="AddEmployee" type="emp:EmployeeRecordType"> <xsd:annotation> <xsd:documentation> EmployeeId field will be system generated upon insert; any value supplied here will be ignored. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="AddEmployeeResponse" type="emp:EmployeeIdType"/> <xsd:element name="UpdateEmployee" type="emp:EmployeeRecordType"/> <xsd:element name="UpdateEmployeeResponse" type="emp:EmptyResponse"/> <xsd:element name="DeleteEmployee" type="emp:EmployeeIdType"/> <xsd:element name="DeleteEmployeeResponse" type="emp:EmptyResponse"/> <xsd:element name="BasicFault"> <xsd:complexType> <xsd:sequence> <xsd:element name="errorDetails" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </wsdl:types> <wsdl:message name="DeleteEmployeeResponse"> <wsdl:part name="parameters" element="emp:DeleteEmployeeResponse"> </wsdl:part> </wsdl:message> <wsdl:message name="UpdateEmployeeRequest"> <wsdl:part name="parameters" element="emp:UpdateEmployee"> </wsdl:part> </wsdl:message> <wsdl:message name="GetEmployeeByEmpIdRequest"> <wsdl:part name="parameters" element="emp:GetEmployeeByEmpId"> </wsdl:part> </wsdl:message> <wsdl:message name="DeleteEmployeeRequest"> <wsdl:part name="parameters" element="emp:DeleteEmployee"> </wsdl:part> </wsdl:message> <wsdl:message name="DataProcessingFault"> <wsdl:documentation> This fault corresponds to any type of database error that occurs as a result of the information being queried or modified: for example, row not found, foreign or unique key errors, invalid or missing required values provided, etc. </wsdl:documentation> <wsdl:part name="BasicFault" element="emp:BasicFault"> </wsdl:part> </wsdl:message> <wsdl:message name="GetEmployeesByDeptIdRequest"> <wsdl:part name="parameters" element="emp:GetEmployeesByDeptId"> </wsdl:part> </wsdl:message> <wsdl:message name="AddEmployeeRequest"> <wsdl:part name="parameters" element="emp:AddEmployee"> </wsdl:part> </wsdl:message> <wsdl:message name="AddEmployeeResponse"> <wsdl:part name="parameters" element="emp:AddEmployeeResponse"> </wsdl:part> </wsdl:message> <wsdl:message name="UpdateEmployeeResponse"> <wsdl:part name="parameters" element="emp:UpdateEmployeeResponse"> </wsdl:part> </wsdl:message> <wsdl:message name="GetEmployeesByDeptIdResponse"> <wsdl:part name="parameters" element="emp:GetEmployeesByDeptIdResponse"> </wsdl:part> </wsdl:message> <wsdl:message name="GetEmployeeByEmpIdResponse"> <wsdl:part name="parameters" element="emp:GetEmployeeByEmpIdResponse"> </wsdl:part> </wsdl:message> <wsdl:portType name="EmployeePortType"> <wsdl:operation name="GetEmployeeByEmpId"> <wsdl:input message="tns:GetEmployeeByEmpIdRequest"> </wsdl:input> <wsdl:output message="tns:GetEmployeeByEmpIdResponse"> </wsdl:output> <wsdl:fault name="DataProcessingFault" message="tns:DataProcessingFault"> </wsdl:fault> </wsdl:operation> <wsdl:operation name="GetEmployeesByDeptId"> <wsdl:input message="tns:GetEmployeesByDeptIdRequest"> </wsdl:input> <wsdl:output message="tns:GetEmployeesByDeptIdResponse"> </wsdl:output> </wsdl:operation> <wsdl:operation name="AddEmployee"> <wsdl:input message="tns:AddEmployeeRequest"> </wsdl:input> <wsdl:output message="tns:AddEmployeeResponse"> </wsdl:output> <wsdl:fault name="DataProcessingFault" message="tns:DataProcessingFault"> </wsdl:fault> </wsdl:operation> <wsdl:operation name="UpdateEmployee"> <wsdl:input message="tns:UpdateEmployeeRequest"> </wsdl:input> <wsdl:output message="tns:UpdateEmployeeResponse"> </wsdl:output> <wsdl:fault name="DataProcessingFault" message="tns:DataProcessingFault"> </wsdl:fault> </wsdl:operation> <wsdl:operation name="DeleteEmployee"> <wsdl:input message="tns:DeleteEmployeeRequest"> </wsdl:input> <wsdl:output message="tns:DeleteEmployeeResponse"> </wsdl:output> <wsdl:fault name="DataProcessingFault" message="tns:DataProcessingFault"> </wsdl:fault> </wsdl:operation> </wsdl:portType> <wsdl:binding name="EmployeeBinding" type="tns:EmployeePortType"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="GetEmployeeByEmpId"> <soap:operation soapAction=""/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> <wsdl:fault name="DataProcessingFault"> <soap:fault name="DataProcessingFault" use="literal"/> </wsdl:fault> </wsdl:operation> <wsdl:operation name="GetEmployeesByDeptId"> <soap:operation soapAction=""/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="AddEmployee"> <soap:operation soapAction=""/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> <wsdl:fault name="DataProcessingFault"> <soap:fault name="DataProcessingFault" use="literal"/> </wsdl:fault> </wsdl:operation> <wsdl:operation name="UpdateEmployee"> <soap:operation soapAction=""/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> <wsdl:fault name="DataProcessingFault"> <soap:fault name="DataProcessingFault" use="literal"/> </wsdl:fault> </wsdl:operation> <wsdl:operation name="DeleteEmployee"> <soap:operation soapAction=""/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> <wsdl:fault name="DataProcessingFault"> <soap:fault name="DataProcessingFault" use="literal"/> </wsdl:fault> </wsdl:operation> </wsdl:binding> <wsdl:service name="EmployeeService"> <wsdl:port name="EmployeePort" binding="tns:EmployeeBinding"> <soap:address location="http://localhost:8095/CvsWebserviceDB/services/EmployeePort"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
when i given soap request from soap ui i'm getting this error, please help me anyone .i'm new to webservices.......... my soap request <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:emp="http://www.example.org/schema/Employee"> <soapenv:Header/> <soapenv:Body> <emp:AddEmployee> <EmployeeId>11024</EmployeeId> <LastName>polaka</LastName> <FirstName>ramana</FirstName> <Gender>M</Gender> <DepartmentId>4906</DepartmentId> <Hiredate>11/11/2013</Hiredate> <Salary>20000</Salary> </emp:AddEmployee> </soapenv:Body> </soapenv:Envelope> soap response...... <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <soap:Fault> <faultcode>soap:Client</faultcode> <faultstring>Unmarshalling Error: 11/11/2013</faultstring> </soap:Fault> </soap:Body> </soap:Envelope> -- View this message in context: http://cxf.547215.n5.nabble.com/org-apache-cxf-interceptor-Fault-Unmarshalling-Error-11-11-2013-tp5742561.html Sent from the cxf-user mailing list archive at Nabble.com.
