[ http://issues.apache.org/jira/browse/AXISCPP-486?page=comments#action_60185 ] Fred Preston commented on AXISCPP-486: --------------------------------------
Hi All, Currently, HeaderBlock::createAttribute(,,) that calls HeaderBlock::createAttribute(,,,) is not using the namespace declaration list (m_namespaceDecls) to check if the namespace has already been defined. It does check the attribute list for the header block (m_attributes) and will return NULL if an attribute with the same localname and prefix has already been defined. For the serialisation to work, if the namespace cannot be found in the attribute list, the serialiser could then iterate through the namespace declarations for the header block. I will fix the following issues:- 1. Look for the prefix in the namespace declarations and return a NULL if found (to prevent redefinition). 2. On serialisation, if the prefix cannot be found in the attributes, look though the namespaces defined in namespace declarations before reporting a problem. Regards, Fred Preston. > when createAttribute() API in IHeaderBlock uses predefined namespace prefix > then serializer fails to generate the request message > --------------------------------------------------------------------------------------------------------------------------------- > > Key: AXISCPP-486 > URL: http://issues.apache.org/jira/browse/AXISCPP-486 > Project: Axis-C++ > Type: Bug > Reporter: James Jose > > when createAttribute() API in IHeaderBlock uses predefined namespace prefix > then serializer fails to generate the request message and throws following > error message. > "Exception : AxisSoapException:Received message is incomplete The SOAP > serialiser has detected errors in the header or envelope. Transmission has > been aborted." > IHeaderBlockTest3 Addresses this issue.. -- 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 - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
