Hello, 

I am using Spring-ws with castor. I'm getting the following error when
receiving a soap message. Could you help me plzz.

[error]
org.springframework.oxm.castor.CastorUnmarshallingFailureException: Castor
unmarshalling exception: unable to find FieldDescriptor for 'GetQueryResult'
in ClassDescriptor of GetQueryResponse; nested exception is
org.exolab.castor.xml.MarshalException: unable to find FieldDescriptor for
'GetQueryResult' in ClassDescriptor of GetQueryResponse
[error]

mapping file.
[code]
<mapping xmlns="http://castor.exolab.org/";
xmlns:cst="http://castor.exolab.org/";>

        <cst:class name="org.aamc.amspullservice.webservice.client.GetQuery">
                <cst:map-to xml="GetQuery" 
ns-uri="http://www.avectra.com/2005/"; />
                <cst:field name="szObjectName" type="java.lang.String">
                        <cst:bind-xml name="szObjectName" node="element"
                                xmlns="http://www.avectra.com/2005/"; />
                </cst:field>
                <cst:field name="szColumnList" type="java.lang.String">
                        <cst:bind-xml name="szColumnList" node="element"
                                xmlns="http://www.avectra.com/2005/"; />
                </cst:field>
                <cst:field name="szWhereClause" type="java.lang.String">
                        <cst:bind-xml name="szWhereClause" node="element"
                                xmlns="http://www.avectra.com/2005/"; />
                </cst:field>
                <cst:field name="szOrderBy" type="java.lang.String">
                        <cst:bind-xml name="szOrderBy" node="element"
                                xmlns="http://www.avectra.com/2005/"; />
                </cst:field>
        </cst:class>


        <cst:class
name="org.aamc.amspullservice.webservice.client.GetQueryResponse">
                <cst:map-to xml="GetQueryResponse" 
ns-uri="http://www.avectra.com/2005/";
/>
                <cst:field name="GetQueryResult"
                        
type="org.aamc.amspullservice.webservice.client.GetQueryResult"
                        required="false">
                        <cst:bind-xml name="GetQueryResult"
location="GetQueryResponse/GetQueryResult"
                                node="element" 
xmlns="http://www.avectra.com/2005/"; />

                        <cst:class
name="org.aamc.amspullservice.webservice.client.GetQueryResult">
                                <cst:map-to xml="GetQueryResult" 
ns-uri="http://www.avectra.com/2005/";
/>
                                <cst:field name="IndividualObjects"
                                        
type="org.aamc.amspullservice.webservice.client.IndividualObjects"
                                        required="false">
                                        <cst:bind-xml name="IndividualObjects"
location="GetQueryResponse/GetQueryResult/IndividualObjects"
                                                node="element" 
xmlns="http://www.avectra.com/2005/"; />

                                        <cst:class
                                                
name="org.aamc.amspullservice.webservice.client.IndividualObjects">
                                                <cst:map-to 
xml="IndividualObjects"
ns-uri="http://www.avectra.com/2005/"; />
                                                <cst:field 
name="IndividualObject"
                                                        
type="org.aamc.amspullservice.webservice.client.IndividualObject"
                                                        required="false" 
collection="arraylist">
                                                        <cst:bind-xml 
name="IndividualObject"
                                                        
location="GetQueryResponse/GetQueryResult/IndividualObjects/IndividualObject"
node="element"
                                                                
xmlns="http://www.avectra.com/2005/"; />
                                                
                                                <cst:class
                                                        
name="org.aamc.amspullservice.webservice.client.IndividualObject">
                                                        <cst:map-to 
xml="IndividualObject"
ns-uri="http://www.avectra.com/2005/";
                                                                ns-prefix="Q1" 
/>
                                                        <cst:field 
name="ind_cst_key" type="java.lang.String">
                                                                <cst:bind-xml 
name="ind_cst_key" node="element"
                                                                        
xmlns="http://www.avectra.com/2005/"; />
                                                        </cst:field>
                                                        <cst:field 
name="ind_first_name" type="java.lang.String">
                                                                <cst:bind-xml 
name="ind_first_name" node="element"
                                                                        
xmlns="http://www.avectra.com/2005/"; />
                                                        </cst:field>
                                                        <cst:field 
name="ind_last_name" type="java.lang.String">
                                                                <cst:bind-xml 
name="ind_last_name" node="element"
                                                                        
xmlns="http://www.avectra.com/2005/"; />
                                                        </cst:field>
                                                        <cst:field 
name="ind_full_name_cp" type="java.lang.String">
                                                                <cst:bind-xml 
name="ind_full_name_cp" node="element"
                                                                        
xmlns="http://www.avectra.com/2005/"; />
                                                        </cst:field>
                                                        <cst:field 
name="ind_deceased_flag" type="java.lang.String">
                                                                <cst:bind-xml 
name="ind_deceased_flag" node="element"
                                                                        
xmlns="http://www.avectra.com/2005/"; />
                                                        </cst:field>
                                                        <cst:field 
name="ind_add_date" type="java.lang.String">
                                                                <cst:bind-xml 
name="ind_add_date" node="element"
                                                                        
xmlns="http://www.avectra.com/2005/"; />
                                                        </cst:field>
                                                </cst:class>
                                                </cst:field>
                                        </cst:class>
                                </cst:field>
                        </cst:class>

                </cst:field>
        </cst:class>
</mapping>
[code]





[soap response]
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
   <soap:Header>
      <AuthorizationToken xmlns="http://www.avectra.com/2005/";>
         <Token>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</Token>
      </AuthorizationToken>
   </soap:Header>
   <soap:Body>
      <GetQueryResponse xmlns="http://www.avectra.com/2005/";>
         <GetQueryResult>
            <IndividualObjects
xsi:schemaLocation="http://www.avectra.com/2005/ Individual.xsd"
recordReturn="1">
               <IndividualObject>
                  <ind_cst_key>ccccccccccccccccccccccc</ind_cst_key>
                  <ind_first_name>ddddd</ind_first_name>
                  <ind_last_name>eeeeeeeee</ind_last_name>
                  <ind_full_name_cp>fffffff</ind_full_name_cp>
                  <ind_deceased_flag>0</ind_deceased_flag>
                  <ind_add_date>2010-01-19</ind_add_date>
               </IndividualObject>
            </IndividualObjects>
         </GetQueryResult>
      </GetQueryResponse>
   </soap:Body>
</soap:Envelope>
[soap response]
-- 
View this message in context: 
http://old.nabble.com/Castor%3A-unable-to-find-FieldDescriptor-for-ClassDescriptor-tp28986420p28986420.html
Sent from the Castor - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to