axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrik Nordberg (JIRA)" <>
Subject [jira] Created: (AXISCPP-791) Handling missing operationRequestMap correctly
Date Wed, 10 Aug 2005 19:22:35 GMT
Handling missing operationRequestMap correctly

         Key: AXISCPP-791
     Project: Axis-C++
        Type: Improvement
  Components: WSDD Processing  
    Versions: current (nightly)    
    Reporter: Henrik Nordberg

Currently if you are missing the operationRequestMap entry in the WSDD file, the call to

        const char* WSDDService::getOperationForRequest(const char* request) const (wsddservice.cpp)

returns 0. This causes a crash on this line

        AxisString operationToInvoke = m_pService->getOperationForRequest(sOperation.c_str());

in int ServerAxisEngine::process(SOAPTransport* pStream) (serveraxisengine.cpp), because you
cannot create a std::string from 0.

I suggest that getOperationForRequest() throws an exception that explains that this situation
may be caused by a missing or incorrect operationRequestMap entry in the wsdd file (including
as much information as possible, but certainly the path to the wsdd file and the name of the
service in question). This question is then (hopfully?) caught and an error is reported in
the log.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message