[mapguide-commits] r5309 -
sandbox/adsk/2.2gp/Common/MapGuideCommon/Services
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Oct 20 12:53:11 EDT 2010
Author: brucedechant
Date: 2010-10-20 09:53:11 -0700 (Wed, 20 Oct 2010)
New Revision: 5309
Modified:
sandbox/adsk/2.2gp/Common/MapGuideCommon/Services/ProxyFeatureService.cpp
Log:
Fix for trac ticket 1443 - MgProxyFeatureService::GetCapabilities is using a fixed API version 1.0.0
http://trac.osgeo.org/mapguide/ticket/1443
Modified: sandbox/adsk/2.2gp/Common/MapGuideCommon/Services/ProxyFeatureService.cpp
===================================================================
--- sandbox/adsk/2.2gp/Common/MapGuideCommon/Services/ProxyFeatureService.cpp 2010-10-20 15:13:22 UTC (rev 5308)
+++ sandbox/adsk/2.2gp/Common/MapGuideCommon/Services/ProxyFeatureService.cpp 2010-10-20 16:53:11 UTC (rev 5309)
@@ -283,13 +283,15 @@
MgByteReader* MgProxyFeatureService::GetCapabilities(CREFSTRING providerName, CREFSTRING connectionString)
{
+ Ptr<MgUserInformation> userInfo = m_connProp->GetUserInfo();
+
MgCommand cmd;
cmd.ExecuteCommand(m_connProp, // Connection
MgCommand::knObject, // Return type expected
MgFeatureServiceOpId::GetCapabilities_Id, // Command Code
2, // No of arguments
Feature_Service, // Service Id
- BUILD_VERSION(1,0,0), // Operation version
+ userInfo->GetApiVersion(), // Operation version
MgCommand::knString, &providerName, // Argument#1
MgCommand::knString, &connectionString, // Argument#2
MgCommand::knNone); // End of argument
More information about the mapguide-commits
mailing list