Dan,

You are right, it was my fault. Apparently when "pretty-printing" my xml
configuration file the namespage of the service got some undesired
characters around it, and that prevented XFire to get the correct
configuration.

So instead of having something like this:
<property name="...." value="http://namespace"; />

I had
<property name="....">
  <value>
     http://namespace
  </value>
</property>

Sorry for the inconvenience.

On 12/8/06, Dan Diephouse <[EMAIL PROTECTED]> wrote:

Hi Andres,

Hmmm I'm looking at the BeanType code and it should be ignoring the extra
elements by default. What exception are you getting?

I think that the mapping file and ignore will only ignore a JavaBean
property. It doesn't apply to XML elements.

- Dan

On 12/6/06, Andres Bernasconi <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I have a very simple object (Transaction) that is returned from a Web
> Service. Currently the Web Service returns a Transaction that has a field I
> dont care about. In my client code, that field does not exist, and I want to
> ignore it (if not the the object thas not deserealize correctly in my
> client). I'm using aegis binding.
>
> Even though I am able to ingore a property for Serialization, can't seem
> to make it for deserealization.
>
> Given the following received XML data
>
> <soap:Envelope xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";>
>    <soap:Body>
>       <getTransactionsResponse xmlns=" http://xxx.com";>
>          <out xmlns=" http://xxx.com";>
>             <Transaction>
>                <finishDate>2006-12-06T18:52:08.537-03:00</finishDate>
>                <linkedTransactionId xsi:nil="true" />
>                <processName>queryAttributes</processName>
>                <startDate>2006-12-06T18:51:58.255-03:00</startDate>
>                <status>Finished</status>
>
> <transactionId>1664235421D7AA6410F59B54465Z7FFE</transactionId>
>                <username>TST-DFLT_USER</username>
>             </Transaction>
>          </out>
>       </getTransactionsResponse>
>    </soap:Body></soap:Envelope>
>
>
> I tried the following to ignore the linkedTransactionId property, but
> did not work:
>
> <mappings>
>     <mapping>
>        <!-- remaining fields up here, but ignored in this example -->
>         <property name="linkedTransactionId"
> mappedName="ns1:linkedTransactionId"
>             ignore="true"
>             xmlns:ns1="http://xxx.com"; />
>
>
>     </mapping>
> </mappings>
>
> I also tried only with name, and only the mappedName and neither work.
> If you know what I'm doing wrong or what shoul i do, I'll greatly apreciate
> it.
>
> Regards
> Andres Bernasconi
>



--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog

Reply via email to