You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Manohar K Chintala <cm...@in.ibm.com> on 2005/09/08 13:56:22 UTC

Re: Attn: Samisa (AXISCPP-788) AXIS C++ allows to set positive values to XSD_negativeInteger type




Hi Samisa,

Here is the request and reply SOAP messages.

Request SOAP Message

POST /XSD_negativeInteger/services/XSD_negativeIntegerSOAP HTTP/1.1
Host: localhost:13620
Content-Type: text/xml; charset=UTF-8
SOAPAction: "XSD_negativeInteger#asNonNillableElement"
Content-Length: 460

<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:AsNonNillableElementRequest
xmlns:ns1="http://xsd_negativeInteger.test.apache.org">
<nonNillableElement>-18446744073709551615</nonNillableElement>
</ns1:AsNonNillableElementRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Reply SOAP Message

HTTP/1.1 200 OK
Server: WebSphere Application Server/5.1
Content-Type: text/xml; charset=utf-8
Content-Language: en-US
Transfer-Encoding: chunked

208
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><asNonNillableElementResponse
 xmlns="http://xsd_negativeInteger.test.apache.org"><nonNillableElement
xmlns="">-18446744073709551615</nonNillableElement></asNonNillableElementResponse></soapenv:Body></soapenv:Envelope>
0


Regards
Manohar



                                                                           
             Samisa Abeysinghe                                             
             <samisa.abeysingh                                             
             e@gmail.com>                                               To 
                                       Apache AXIS C Developers List       
             08/19/2005 06:37          <ax...@ws.apache.org>          
             PM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         Re: Attn: Samisa (AXISCPP-788) AXIS 
              "Apache AXIS C           C++ allows to set positive values   
             Developers List"          to XSD_negativeInteger type         
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hmmm, I revisited the logic but cannot figure out what is wrong.
Seemingly the logic is OK.

I assume you are using the Java server side. Could you please post the
request and reply SOAP messages.

Thanks,
Samisa...

On 8/19/05, Manohar K Chintala <cm...@in.ibm.com> wrote:
>
>
>
>
> Hi Samisa,
>
> FYI
>
> Regards
> Manohar
>
> ----- Forwarded by Manohar K Chintala/India/IBM on 08/19/2005 01:26 PM
> -----
>
>              "Manohar (JIRA)"
>              <axis-c-dev@ws.ap
>              ache.org>
To
>                                        axis-c-dev@ws.apache.org
>              08/18/2005 04:25
cc
>              PM
>
Subject
>                                        [jira] Commented: (AXISCPP-788)
>              Please respond to         AXIS C++ allows to set positive
>               "Apache AXIS C           values to XSD_negativeInteger
type
>              Developers List"
>
>
>
>
>
>
>
>
>
>     [
>
http://issues.apache.org/jira/browse/AXISCPP-788?page=comments#action_12319157

>  ]
>
> Manohar commented on AXISCPP-788:
> ---------------------------------
>
> Hi Samisa,
>
> XSD_negativeInteger and XSD_nonPositiveInteger still have problems.  The
> following AxisSoapException is thrown when both positive as well as
> negative inputs are given for these types.
>
> Exception : AxisSoapException:Received content is faulty
NonPositiveInteger
> value must be non positive
>
> The existing testscases XSD_negativeIntegerClient and
> XSD_nonPositiveIntegerClient can be used to see this problem.
>
> Regards
> Manohar
>
> > AXIS C++ allows to set positive values to XSD_negativeInteger  type
> > -------------------------------------------------------------------
> >
> >          Key: AXISCPP-788
> >          URL: http://issues.apache.org/jira/browse/AXISCPP-788
> >      Project: Axis-C++
> >         Type: Bug
> >     Reporter: Manohar
> >     Assignee: Samisa Abeysinghe
> >      Fix For: 1.6 Alpha
>
> >
> > Axis C++ allows to set positive values for  XSD_negativeInteger
dataype.
> As per the XML schema specification, the ·value space· of negativeInteger
> is the infinite set {...,-2,-1}  and it's maxInclusive is -1. This means,
> only negagtive integer values should be allowed and no positive values.
> But, I see that positive values can also be set for this datatype. As per
> my observation,
> > 1. negativeInteger and nonPositiveInteger types accept positive values
> ( e.g.  +1 is accepted and same value is displayed after
> serialze/deserialized)
> > 2. positiveInteger and nonNegativeInteger types accept negative values
(
> e.g.  -1 is accepted and 18446744073709551615 value is displayed after
> >      serialze/deserialized)
> > I think this is not the correct behaviour. Though these XML datatypes
are
> mapped to different datatypes of client programming languages (C/C++ in
our
> case), this should not be allowed while serializing/deserializing in the
> client product and some exception should be reported indicating the
error.
> I see the whole purpose of a datatype is lost when  a +ve value is set
for
> a negativeInteger type and vice versa.
> > Testcases written for these types ( XSD_negativeIntegerClient.cpp,
> XSD_nonPositiveIntegerClient.cpp, XSD_positiveIntegerClient.cpp and
> XSD_nonNegativeIntegerClient.cpp)  show this problem.
> > Regards
> > Manohar.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>    http://www.atlassian.com/software/jira
>
>
>