Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: REPOST:

From: "Joe Fawcett" <joefawcett@---------.------>
To: NULL
Date: 12/6/2006 1:29:00 PM

<teddysnips@h...> wrote in message 
news:1165398632.427606.237840@f......
> In the class declaration of a web service that I've just picked up for
> maintenance:
>
> <Obsolete("Superseded by OrderPaymentElements")> Public PaymentType
> As OrderPaymentType
>     Public OrderPaymentElements As OrderPaymentList
>
> Apparently there's a problem with the generated SOAP.  This is what
> the client said:
>
> "Server was unable to read request. --> There is an error in XML
> document (1, 1553). --> '0' is not a valid value for OrderPaymentType"
>
> Looking at the request that is the position of the PaymentType element
> in the soap document."
>
> Can anyone tell me what possible purpose the <Obsolete tag has?  Are
> there any reasons not to use <XmlIgnore()> instead?  More worryingly,
> why is the server barfing?
>
> DISCLAIMER:  I'm new to this and it's a pretty complex, and completely
> undocumented application.  Aren't I the lucky one?
>
> Thanks
>
> Edward
>
XmlIgnore and Obsolete are two very different attributes, the former says do 
not include this property in XML serialisation, the latter is marking the 
property as obsolete.
Sound to me like the WSDL schema has payment type down as an enumeration or 
the like with 0 an invalid choice.
Can you show the schema?


-- 

Joe Fawcett (MVP - XML)

http://joe.fawcett.name




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent