Hi,

On 09.07.2010 03:59, Sreedhar wrote:
Hello,

NO! there is no specific reason. I copied sample file from a tutorial.
I'd like to know which tutorial, as I think that tutorial is wrong, and needs to be fixed. But anyhow ....

It
was in that way in the tutorial. I have modified my mapping file to use only
default namespace. But i still see the same problem.
As you are using spring-ws, can you please show us you spring application context so that I can check a few things.


Thanks!

Regards
Sri
Werner

On Thu, Jul 8, 2010 at 3:03 PM, Werner Guttmann<[email protected]>wrote:

Hi,

is there a particular reason why your mapping file starts with the
following element definition:

<mapping xmlns="http://castor.exolab.org/";
xmlns:cst="http://castor.exolab.org/";>

In other words, why are you trying to use http://castor.exolab.org/ both
as default namespace and as non -default ?

Regards
Werner

On 24.06.2010 22:35, sric1 wrote:


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]




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

   http://xircles.codehaus.org/manage_email


Reply via email to