[ http://issues.apache.org/jira/browse/AXISCPP-790?page=all ]

Samisa Abeysinghe updated AXISCPP-790:
--------------------------------------

      Component: XSD Types
    Description: 
The unit  tests given for  XSD_Name and XSD_NCName types contain  XML reserved 
characters scenarios which are not valid as inputs to these types. These 
scenarios should be removed  for the unit tests also server response expected 
files require modification.

For reference, I am pasting one of the scenario for XSD_Name which is not a 
valid one.

        char reservedCharactersName[] = "&\"\'";
        xsd__Name reservedCharactersInput = reservedCharactersName;
        result = ws->asNonNillableElement(reservedCharactersInput);
        if (result)
        {
            if (*result)
            {
                cout << "non-nillable element with XML reserved characters=" << 
result << endl;
            }
            else
            {
                cout << "non-nillable element with XML reserved 
characters=<empty>" << endl;
            }
        }
        else
        {
            cout << "non-nillable element with XML reserved characters=<nil>" 
<< endl;
        }


Regards
Manohar

  was:
The unit  tests given for  XSD_Name and XSD_NCName types contain  XML reserved 
characters scenarios which are not valid as inputs to these types. These 
scenarios should be removed  for the unit tests also server response expected 
files require modification.

For reference, I am pasting one of the scenario for XSD_Name which is not a 
valid one.

        char reservedCharactersName[] = "<>&\"\'";
        xsd__Name reservedCharactersInput = reservedCharactersName;
        result = ws->asNonNillableElement(reservedCharactersInput);
        if (result)
        {
            if (*result)
            {
                cout << "non-nillable element with XML reserved characters=" << 
result << endl;
            }
            else
            {
                cout << "non-nillable element with XML reserved 
characters=<empty>" << endl;
            }
        }
        else
        {
            cout << "non-nillable element with XML reserved characters=<nil>" 
<< endl;
        }


Regards
Manohar

        Version: current (nightly)

> "XML reserved characters scenarios" in UTs are not valid for XSD_Name and 
> XSD_NCName types
> ------------------------------------------------------------------------------------------
>
>          Key: AXISCPP-790
>          URL: http://issues.apache.org/jira/browse/AXISCPP-790
>      Project: Axis-C++
>         Type: Bug
>   Components: XSD Types
>     Versions: current (nightly)
>     Reporter: Manohar
>     Assignee: Manohar

>
> The unit  tests given for  XSD_Name and XSD_NCName types contain  XML 
> reserved characters scenarios which are not valid as inputs to these types. 
> These scenarios should be removed  for the unit tests also server response 
> expected files require modification.
> For reference, I am pasting one of the scenario for XSD_Name which is not a 
> valid one.
>         char reservedCharactersName[] = "&\"\'";
>         xsd__Name reservedCharactersInput = reservedCharactersName;
>         result = ws->asNonNillableElement(reservedCharactersInput);
>         if (result)
>         {
>             if (*result)
>             {
>                 cout << "non-nillable element with XML reserved characters=" 
> << result << endl;
>             }
>             else
>             {
>                 cout << "non-nillable element with XML reserved 
> characters=<empty>" << endl;
>             }
>         }
>         else
>         {
>             cout << "non-nillable element with XML reserved characters=<nil>" 
> << endl;
>         }
> 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

Reply via email to