You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2004/11/29 13:40:21 UTC

cvs commit: ws-axis/c/src/engine/client ClientAxisEngine.cpp

sanjaya     2004/11/29 04:40:21

  Modified:    c/src/engine/client ClientAxisEngine.cpp
  Log:
  Changes to obtain the Servicename part from Servicename#operation format of the
  SOAPAction
  
  Revision  Changes    Path
  1.21      +12 -1     ws-axis/c/src/engine/client/ClientAxisEngine.cpp
  
  Index: ClientAxisEngine.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/engine/client/ClientAxisEngine.cpp,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- ClientAxisEngine.cpp	23 Nov 2004 17:21:04 -0000	1.20
  +++ ClientAxisEngine.cpp	29 Nov 2004 12:40:21 -0000	1.21
  @@ -67,8 +67,19 @@
       do
       {
           const char* pchService = pSoap->getServiceName();
  +        char * pchTempService = new char [strlen(pchService)+1];
  +        strcpy(pchTempService, pchService);
  +        /* 
  +        The String returned as the service name has the format "Calculator#add".
  +        So null terminate string at #.
  +        */
  +        *(strchr(pchTempService, '#')) = '\0';
  +        /* Skip the starting double quote */
  +        strcpy(pchTempService, pchTempService+1);
  +
           /* get service description object from the WSDD Deployment object */
  -        pService = g_pWSDDDeployment->getService (pchService);
  +        pService = g_pWSDDDeployment->getService (pchTempService);
  +        delete pchTempService;
   
           //Get Global and Transport Handlers