axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samisa Abeysinghe (JIRA)" <>
Subject [jira] Commented: (AXISCPP-497) Problems with Stub::setTransportProperty
Date Thu, 03 Mar 2005 11:58:48 GMT
     [ ]
Samisa Abeysinghe commented on AXISCPP-497:

As a solution what if we relpace the m_pTransport->setTransportProperty(char*, char*) calls
in Stub class with 

    iSuccess = m_pTransport->setTransportProperty( key, value);
catch( AxisException& e)
    char *  pszError = new char[strlen( e.what()) + 1];
    strcpy( pszError, e.what());

    throw AxisGenException(e.getExceptionCode(), const_cast<char*>(pszError));

The above logic I copied form Call class (yes you are right, I too think copy&paste is

> Problems with Stub::setTransportProperty
> ----------------------------------------
>          Key: AXISCPP-497
>          URL:
>      Project: Axis-C++
>         Type: Bug
>     Reporter: Mark Whitlock
>     Assignee: Mark Whitlock

> The exception processing in Call::setTransportProperty is not in Stub::setTransportProperty.
Stub::setTransportProperty should just call Call::setTransportProperty instead of SOAPTransport::setTransportProperty.
Also the message is new[]'ed in Call but delete'd in AxisGenException. This will fail on Linux,
where it should be delete[]'ed.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message