Skip to content
Permalink
Browse files

Also use DCP for transaction (if available)

Also QgsDebugMsg->Level
  • Loading branch information
elpaso committed Feb 22, 2018
1 parent 3ce8dc1 commit 31df608498b124e84fd4db657f6bbe67513e2da6
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/providers/wfs/qgswfstransactionrequest.cpp
@@ -23,20 +23,22 @@ QgsWFSTransactionRequest::QgsWFSTransactionRequest( const QgsWFSDataSourceURI &u

bool QgsWFSTransactionRequest::send( const QDomDocument &doc, QDomDocument &serverResponse )
{
QUrl url( mUri.requestUrl( QString( ) ) );
QUrl url( mUri.requestUrl( QStringLiteral( "Transaction" ) ) );
// We don't want/need REQUEST=Transaction
url.removeQueryItem( QStringLiteral( "REQUEST" ) );

QgsDebugMsg( doc.toString() );
QgsDebugMsgLevel( doc.toString(), 4 );

if ( sendPOST( url, QStringLiteral( "text/xml" ), doc.toByteArray( -1 ) ) )
{
QString errorMsg;
if ( !serverResponse.setContent( mResponse, true, &errorMsg ) )
{
QgsDebugMsg( mResponse );
QgsDebugMsg( errorMsg );
QgsDebugMsgLevel( mResponse, 4 );
QgsDebugMsgLevel( errorMsg, 4 );
return false;
}
QgsDebugMsg( mResponse );
QgsDebugMsgLevel( mResponse, 4 );
return true;
}
return false;

0 comments on commit 31df608

Please sign in to comment.
You can’t perform that action at this time.