Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Missing namespace with Castor and WebServiceTemplate

  1. #11
    Join Date
    May 2007
    Location
    Les Boscailles - Eghezée - Belgium
    Posts
    54

    Default

    Did you raise the issue ?
    Did you solve it ?

    I have the same problem for the moment.

    Thanks !

    xml is
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <checkVatResponse>
    	<countryCode>BE</countryCode>
    	<vatNumber>123456789</vatNumber>
    	<requestDate>2007-11-29</requestDate>
    	<valid xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:boolean">false</valid>
    	<name/>
    	<address/>
    </checkVatResponse>

  2. #12
    Join Date
    Sep 2008
    Location
    california
    Posts
    2

    Default unmarshalling exception with missing namespace

    Hi,

    It has been a year since this post but I still get th eproblem with speing ws 1.5.4, castor 1.2. I ended up following the tip here & modifying the code just to ignore the attribute in question. Even though I can set properties on the bean like namespacemappings and ignoreExtraAttributes, it did not help.

    Can we raise a JIRA issue re this?

    Thanks

    -rose

  3. #13

    Default

    Hi all,

    the issue seems to be still present in spring-2.5.6

    is there another fix / workaround for this?

    or is it so uncommon to use xsd:nillable elements in Web Services? (is it WSI-compliant btw?)

    thx and regards,
    the debugger (not)

    freeze dried maqui berry
    apple cider vinegar for acne
    Last edited by DebugMeNot; May 30th, 2011 at 08:41 PM.

  4. #14
    Join Date
    Mar 2006
    Location
    Sydney
    Posts
    27

    Default

    I don't use Castor anymore - I don't think it supports namespaces very well - so now I use jaxb - more fiddly setting up but definitely worth it when you have a large webservice with all the wsdls and schemas provided.

    If you can't use jaxb then probably best just to write your own unmarshaller.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •