[ http://issues.apache.org/jira/browse/AXISCPP-779?page=comments#action_12317631 ]
Adrian Dick commented on AXISCPP-779: ------------------------------------- The internal class for Base64Binary needs to overload IAnySimpleType::getWhitespace(), returning a WhiteSpace object intialized as "collapse". > Whitespaces are not stripped off in XSD_base64Binary type inputs. > ------------------------------------------------------------------ > > Key: AXISCPP-779 > URL: http://issues.apache.org/jira/browse/AXISCPP-779 > Project: Axis-C++ > Type: Bug > Reporter: Manohar > > The leading or trailing whitespaces in XSD-base64Binary type input are not > stripped off. > As per the specification, all leading and trailing whitespace will be > stripped off. The following piece of code shows the problem. > sprintf(endpoint, "%s", url); > XSD_base64Binary* ws = new XSD_base64Binary(endpoint); > xsd__base64Binary input; > xsd__unsignedByte* testUB = (xsd__unsignedByte*)" <test><xml> > some dod&y string </xml></test> "; > input.__ptr=testUB; > input.__size=100; > // Test non-nillable element > xsd__base64Binary result = ws->asNonNillableElement(input); > cout << "non-nillable element" << endl; > cout << " size=" << result.__size << endl; > cout << " data=" << result.__ptr << endl; > XSD_base64Binary2 testcase shows 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
