You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ha...@apache.org on 2006/05/31 19:07:18 UTC
svn commit: r410600 -
/webservices/axis/trunk/c/src/engine/client/ClientAxisEngine.cpp
Author: hawkeye
Date: Wed May 31 10:07:17 2006
New Revision: 410600
URL: http://svn.apache.org/viewvc?rev=410600&view=rev
Log:
Axis engine uses the SOAPAction to find the name of the service and didn't cater for other transport that don't do it exactly the same way - it now does !
Modified:
webservices/axis/trunk/c/src/engine/client/ClientAxisEngine.cpp
Modified: webservices/axis/trunk/c/src/engine/client/ClientAxisEngine.cpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/engine/client/ClientAxisEngine.cpp?rev=410600&r1=410599&r2=410600&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/engine/client/ClientAxisEngine.cpp (original)
+++ webservices/axis/trunk/c/src/engine/client/ClientAxisEngine.cpp Wed May 31 10:07:17 2006
@@ -76,17 +76,23 @@
// The convention for the service name appears to be service#port
if( strchr( pchService, '#') == NULL)
{
- // If there is no # seperator, then strip off the outer quotes.
- int iStringLength = strlen( pchService);
- char * pszService = new char[iStringLength];
+ int iStringLength = strlen( pchService);
+ char * pszService = new char[iStringLength];
- memset( pszService, 0, iStringLength);
- memcpy( pszService, pchService + 1, iStringLength - 2);
+ memset( pszService, 0, iStringLength);
+ // If there is no # seperator, then strip off the outer quotes. if they exist !
+ if(strchr(pchService, '"') == NULL)
+ {
+ memcpy( pszService, pchService, iStringLength);
+ }
+ else
+ {
+ memcpy( pszService, pchService + 1, iStringLength - 2);
+ }
- pService = g_pWSDDDeployment->getService( pszService);
+ pService = g_pWSDDDeployment->getService( pszService);
- delete [] pszService;
- }
+ delete [] pszService; }
else
{
char * pchTempService = new char [strlen(pchService)+1];
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org