Hello,
I don't understand your suggestion;
the only types fo any are xs:anyType or xs:anySimpleType , where do you
suggests to use Any ?
Thanks
Martin Kidby a écrit :
Hi.
I may be wide of the mark, but whilst I was researching my problem, I
saw an article similar to your problem that suggested the use of 'Any'
rather than 'AnyType'
Hope it helps you.
-----Original Message-----
From: Michel Etienne [mailto:[email protected]]
Sent: 03 September 2009 15:47
To: [email protected]; [email protected]
<mailto:[email protected]>
Subject: Re: [AXIS2 1.4.1 - Xmlbeans] validating an input parameter
with anyType in it
Hello
Since I had no answer yet, I repost my question .
Does anybody have an idea ?
Thanks
Best regards
Michel Etienne
Michel Etienne a écrit :
> Hello,
> I have a problem when I try to validate an input parameter with an
> AnyType member
>
> I use Xmlbeans and I get this error on the server side (I made a
> sample program to show the problem)
>
> 2009-07-06 16:23:16,109 [HttpConnection-8080-1]
> WARN Server - >> Invalid object
> demo.dryade.soap.impl.RequestDocumentImpl
> >> error: cvc-elt.4.2: Invalid xsi:type qname: 'typ:SpecificType' in
> element RequestPart
> 2009-07-06 16:23:16,125 [HttpConnection-8080-1]
> WARN Server - Invalid content =
> <soap:Request xmlns:soap="http://soap.dryade.demo"
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <RequestPart>
> <typ:element6 xmlns:typ="http://types.dryade.demo">1</typ:element6>
> <typ:element7 xmlns:typ="http://types.dryade.demo">test</typ:element7>
> <typ:element8 xsi:type="typ:SpecificType"
> xmlns:typ="http://types.dryade.demo"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <typ:element4>true</typ:element4>
> <typ:element5>any test</typ:element5>
> </typ:element8>
> </RequestPart>
> </soap:Request>
>
> if the server produce an output with the same AnyType , it validate
> correctly :
> in an input-output transaction
>
> 2009-07-06 16:23:16,125 [HttpConnection-8080-1] INFO Server - >>
> Valid object demo.dryade.soap.impl.RequestResponseDocumentImpl
>
> in an ouput-only transaction
>
> 2009-07-06 16:23:16,250 [HttpConnection-8080-2] INFO Server - >>
> Valid object demo.dryade.soap.impl.NotifyDocumentImpl
>
> on the client side, the structures are always valid.
>
> I send you the entire code I used for this exemple; it is made with
> AXIS2 1.4.1 on Windows XP platform with Java 1.6
>
> (I can send the entire project archive if necessary)
>
> Thanks for help
>
> Best regards
> Michel Etienne
Cambridge Online Systems Ltd is registered in England and Wales with
company number 1381717
Registered office: 163 Cambridge Science Park, Milton Road Cambridge
CB4 0GP
Disclaimer:
The contents of this e-mail are intended for the named addressee only.
It contains information which may be confidential and which may also
be privileged. Unless you are the named addressee (or authorised to
receive for the addressee) you may not copy or use it, or disclose it
to anyone else.
If you received it in error please notify us immediately and then
destroy it.
_____________________________________________________________________
Cambridge Online Latest News:
Please visit our Website at http://www.cambridgeonline.net
<http://www.cambridgeonline.net/>
------------------------------------------------------------------------
Ce message entrant est certifié sans virus connu.
Analyse effectuée par AVG - www.avg.fr
Version: 8.5.409 / Base de données virale: 270.13.76/2342 - Date: 09/02/09 18:03:00