axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chinthana Danapala (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Commented: (AXISCPP-764) Unknown exception thrown for XSD_anyURI type
Date Mon, 01 Aug 2005 09:55:35 GMT
    [ http://issues.apache.org/jira/browse/AXISCPP-764?page=comments#action_12317306 ] 

Chinthana Danapala commented on AXISCPP-764:
--------------------------------------------

I have added new XSD_anyURI2 test for cover this test case. For me this is working fine. There
is a unit test also added.
Manohar can you check this is covering your problem and is it working for you?

> Unknown exception thrown for XSD_anyURI type
> --------------------------------------------
>
>          Key: AXISCPP-764
>          URL: http://issues.apache.org/jira/browse/AXISCPP-764
>      Project: Axis-C++
>         Type: Bug
>     Reporter: Manohar
>     Assignee: Chinthana Danapala

>
> When input for XSD_anyURI is given without protocol prefix in it (like  www.google.com
without http )  an unknown exception is thrown.  Though the specification says  that  protocol
prefix is not mandatory,  AXIS C++ is not able to handle an URI without protocol prefix. Following
code shows the problem.
> 	char simpleanyURI[25] = "www.google.com";
>         xsd__anyURI input = new char[25];
>         strcpy (input, simpleanyURI);
>         xsd__anyURI result = ws->asNonNillableElement(input);
>         if (result)
>         {
>             if (*result)
>             {
>                 cout << "non-nillable element=" << result << endl;
>             }
>             else
>             {
>                 cout << "non-nillable element=<empty>" << endl;
>             }
>         }
>         else
>         {
>             cout << "non-nillable element=<nil>" << endl;
>         }
> A testcase for this problem will be added soon.
> 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


Mime
View raw message