Listing 7

void BuildGetMapSoapRequest(TCHAR* szLat, TCHAR* szLong, TCHAR* pszSoap)
{
    _tcscpy(pszSoap, _T("<?xml version=\"1.0\" encoding=\"") );
    _tcscat(pszSoap, _T("utf-8\" ?>") );
    _tcscat(pszSoap, 
        _T("<soap:Envelope 
                 xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" "));
    _tcscat(pszSoap, _T("
                 xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "));
    _tcscat(pszSoap, _T("xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">") );
    _tcscat(pszSoap, _T("<soap:Header>") );
    _tcscat(pszSoap, _T("</soap:Header>") );
    _tcscat(pszSoap, _T("<soap:Body>") );
    _tcscat(pszSoap, _T("<GetMap 
                  xmlns=\"http://s.mappoint.net/mappoint-30/\">") );
        _tcscat(pszSoap, _T("<specification>") );
            _tcscat(pszSoap, _T("<DataSourceName>") );
            _tcscat(pszSoap, _T("MapPoint.AP") );
            _tcscat(pszSoap, _T("</DataSourceName>") );
            _tcscat(pszSoap, _T("<Views>") );
                _tcscat(pszSoap, _T("<MapView xsi:type=\"ViewByScale\">") );
                    _tcscat(pszSoap, _T("<CenterPoint>") );
                        _tcscat(pszSoap, _T("<Latitude>") );    
                        _tcscat(pszSoap, szLat );    
                        _tcscat(pszSoap, _T("</Latitude>") );    
                        _tcscat(pszSoap, _T("<Longitude>") );    
                        _tcscat(pszSoap, szLong );    
                        _tcscat(pszSoap, _T("</Longitude>") );    
                    _tcscat(pszSoap, _T("</CenterPoint>") );
                _tcscat(pszSoap, _T("</MapView>") );
            _tcscat(pszSoap, _T("</Views>") );
        _tcscat(pszSoap, _T("</specification>") );
    _tcscat(pszSoap, _T("</GetMap>") );
    _tcscat(pszSoap, _T("</soap:Body>") );
    _tcscat(pszSoap, _T("</soap:Envelope>") );
}