Topic
1 reply Latest Post - ‏2006-05-03T18:39:07Z by SystemAdmin
SystemAdmin
SystemAdmin
1215 Posts
ACCEPTED ANSWER

Pinned topic Error deserializing object

‏2006-05-03T18:32:55Z |
I have created a webservice as the data access component for a portlet. I am working with Portal Server 5.0 and RAD6 IDE. The webservice creates a java bean which is returned to the portlet which display the data within a jsp page. Evrything was working perfectly. I added an additional field to the java bean. I then recereated the web service and regenerated the client. Next I rebuilt and redployed the portlet war file. I received the following error:

Caused by: org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element primaryPhysician of bean org.vnsny.services.vo.PatientListVO.
I have verified that the java bean contanis valid data before being returned by the webservice. I am at a loss as to how to fix this error.....

Here is the wsdl file:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://patientlist.services.vnsny.org" xmlns:impl="http://patientlist.services.vnsny.org" xmlns:intf="http://patientlist.services.vnsny.org" xmlns:tns2="http://vo.services.vnsny.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://patientlist.services.vnsny.org" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://patientlist.services.vnsny.org" xmlns:intf="http://patientlist.services.vnsny.org" xmlns:tns2="http://vo.services.vnsny.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<import namespace="http://vo.services.vnsny.org"/>
<element name="getPatientList">
<complexType>
<sequence>
<element name="physCodes" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="getPatientListResponse">
<complexType>
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="getPatientListReturn" type="tns2:PatientListVO"/>
</sequence>
</complexType>
</element>
</schema>
<schema elementFormDefault="qualified" targetNamespace="http://vo.services.vnsny.org" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://patientlist.services.vnsny.org" xmlns:intf="http://patientlist.services.vnsny.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<complexType name="PatientListVO">
<sequence>
<element name="adminDate" nillable="true" type="xsd:string"/>
<element name="caseNum" nillable="true" type="xsd:string"/>
<element name="mrn" nillable="true" type="xsd:string"/>
<element name="referStatus" nillable="true" type="xsd:string"/>
<element name="dob" nillable="true" type="xsd:string"/>
<element name="firstName" nillable="true" type="xsd:string"/>
<element name="lastName" nillable="true" type="xsd:string"/>
<element name="middleName" nillable="true" type="xsd:string"/>
<element name="icd9Cd" nillable="true" type="xsd:string"/>
<element name="icd9Pri" nillable="true" type="xsd:string"/>
<element name="icd9SourceDesc" nillable="true" type="xsd:string"/>
<element name="otherMdCd" nillable="true" type="xsd:string"/>
<element name="primaryMdCd" nillable="true" type="xsd:string"/>
<element name="secondaryMdCd" nillable="true" type="xsd:string"/>
<element name="roleType" nillable="true" type="xsd:int"/>
<element name="primaryPhysician" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</schema>
</wsdl:types>

<wsdl:message name="getPatientListRequest">

<wsdl:part element="impl:getPatientList" name="parameters"/>

</wsdl:message>

<wsdl:message name="getPatientListResponse">

<wsdl:part element="impl:getPatientListResponse" name="parameters"/>

</wsdl:message>

<wsdl:portType name="PatientList">

<wsdl:operation name="getPatientList">

<wsdl:input message="impl:getPatientListRequest" name="getPatientListRequest"/>

<wsdl:output message="impl:getPatientListResponse" name="getPatientListResponse"/>

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="PatientListSoapBinding" type="impl:PatientList">

<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

<wsdl:operation name="getPatientList">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getPatientListRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="getPatientListResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="PatientListService">

<wsdl:port binding="impl:PatientListSoapBinding" name="PatientList">

<wsdlsoap:address location="http://localhost:9085/PhysicianPatientListWS/services/PatientList"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>
Updated on 2006-05-03T18:39:07Z at 2006-05-03T18:39:07Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1215 Posts
    ACCEPTED ANSWER

    Re: Error deserializing object

    ‏2006-05-03T18:39:07Z  in response to SystemAdmin
    <wsdl:definitions targetNamespace="http://patientlist.services.vnsny.org" xmlns:impl="http://patientlist.services.vnsny.org" xmlns:intf="http://patientlist.services.vnsny.org" xmlns:tns2="http://vo.services.vnsny.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <schema elementFormDefault="qualified" targetNamespace="http://patientlist.services.vnsny.org" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://patientlist.services.vnsny.org" xmlns:intf="http://patientlist.services.vnsny.org" xmlns:tns2="http://vo.services.vnsny.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://vo.services.vnsny.org"/>
    <element name="getPatientList">
    <complexType>
    <sequence>
    <element name="physCodes" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="getPatientListResponse">
    <complexType>
    <sequence>
    <element maxOccurs="unbounded" minOccurs="0" name="getPatientListReturn" type="tns2:PatientListVO"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    <schema elementFormDefault="qualified" targetNamespace="http://vo.services.vnsny.org" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://patientlist.services.vnsny.org" xmlns:intf="http://patientlist.services.vnsny.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <complexType name="PatientListVO">
    <sequence>
    <element name="adminDate" nillable="true" type="xsd:string"/>
    <element name="caseNum" nillable="true" type="xsd:string"/>
    <element name="mrn" nillable="true" type="xsd:string"/>
    <element name="referStatus" nillable="true" type="xsd:string"/>
    <element name="dob" nillable="true" type="xsd:string"/>
    <element name="firstName" nillable="true" type="xsd:string"/>
    <element name="lastName" nillable="true" type="xsd:string"/>
    <element name="middleName" nillable="true" type="xsd:string"/>
    <element name="icd9Cd" nillable="true" type="xsd:string"/>
    <element name="icd9Pri" nillable="true" type="xsd:string"/>
    <element name="icd9SourceDesc" nillable="true" type="xsd:string"/>
    <element name="otherMdCd" nillable="true" type="xsd:string"/>
    <element name="primaryMdCd" nillable="true" type="xsd:string"/>
    <element name="secondaryMdCd" nillable="true" type="xsd:string"/>
    <element name="roleType" nillable="true" type="xsd:int"/>
    <element name="primaryPhysician" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </schema>
    </wsdl:types>

    <wsdl:message name="getPatientListRequest">

    <wsdl:part element="impl:getPatientList" name="parameters"/>

    </wsdl:message>

    <wsdl:message name="getPatientListResponse">

    <wsdl:part element="impl:getPatientListResponse" name="parameters"/>

    </wsdl:message>

    <wsdl:portType name="PatientList">

    <wsdl:operation name="getPatientList">

    <wsdl:input message="impl:getPatientListRequest" name="getPatientListRequest"/>

    <wsdl:output message="impl:getPatientListResponse" name="getPatientListResponse"/>

    </wsdl:operation>

    </wsdl:portType>

    <wsdl:binding name="PatientListSoapBinding" type="impl:PatientList">

    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

    <wsdl:operation name="getPatientList">

    <wsdlsoap:operation soapAction=""/>

    <wsdl:input name="getPatientListRequest">

    <wsdlsoap:body use="literal"/>

    </wsdl:input>

    <wsdl:output name="getPatientListResponse">

    <wsdlsoap:body use="literal"/>

    </wsdl:output>

    </wsdl:operation>

    </wsdl:binding>

    <wsdl:service name="PatientListService">

    <wsdl:port binding="impl:PatientListSoapBinding" name="PatientList">

    <wsdlsoap:address location="http://localhost:9085/PhysicianPatientListWS/services/PatientList"/>

    </wsdl:port>

    </wsdl:service>

    </wsdl:definitions>