Re: Consume AR System Web Services through .net framework 2.0

2007-12-20 Thread Grooms, Frederick W
: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Carey Matthew Black Sent: Thursday, December 20, 2007 5:48 AM To: arslist@ARSLIST.ORG Subject: Re: Consume AR System Web Services through .net framework 2.0 Misi, Optional ( in ARS) does not translate

Re: Consume AR System Web Services through .net framework 2.0

2007-12-20 Thread Carey Matthew Black
:48 AM To: arslist@ARSLIST.ORG Subject: Re: Consume AR System Web Services through .net framework 2.0 Misi, Optional ( in ARS) does not translate into the Web Service universe by default. I have no idea why they skipped that important attribute. In XML there is a nillable attribute/concept

Consume AR System Web Services through .net framework 2.0

2007-12-19 Thread Misi Mladoniczky
Hi, When a NULL-value is returned from the AR System Web Service, the .net developer gets the following error. The problematic XML-tag is the empty tag ns0:Integer_Field xsi:type=xsd:int/, but it is the same with any empty tag/field. There is an error in XML document (4,41) 2007-dec-18 11:31:31

Re: Consume AR System Web Services through .net framework 2.0

2007-12-19 Thread Jarl Grøneng
Does the XML schema states that the elements can be null? -- Jarl On Dec 19, 2007 9:50 AM, Misi Mladoniczky [EMAIL PROTECTED] wrote: Hi, When a NULL-value is returned from the AR System Web Service, the .net developer gets the following error. The problematic XML-tag is the empty tag

Re: Consume AR System Web Services through .net framework 2.0

2007-12-19 Thread Misi Mladoniczky
Hi Jarl, Yes it does. We tried it both ways after my original post. As it turned out, NULL-values was OK for character fields but not for Integers and Date Fields. By changing the mapping sligthly for Date and Integer Fields and changing the Properties-Type to string instead of

Re: Consume AR System Web Services through .net framework 2.0

2007-12-19 Thread Jarl Grøneng
It should not be necessary to change the datatype. Strings will always be ok to send NULL values, not other datatypes as a NULL value is not valid. Do you specify minOccurs for the elemets? -- Jarl On Dec 19, 2007 11:11 AM, Misi Mladoniczky [EMAIL PROTECTED] wrote: Hi Jarl, Yes it does. We

Re: Consume AR System Web Services through .net framework 2.0

2007-12-19 Thread Subash Biswas
Misi: We had a similar issue where NULL values returned from the AR Web Service that caused errors like 'Object reference not set to an instance of an object.' To bypass that we came up with default dateTime/integer values(like 1975-01-01T00:00:00-05:00) which the .NET code would ignore. This will