Add "sender" to SOAP APIs to avoid reuse of connections across apps.
[shibboleth/sp.git] / util / samlquery.cpp
index e00c546..cc8081f 100644 (file)
@@ -184,7 +184,7 @@ int main(int argc,char* argv[])
                     nameid->setNameQualifier(domain.get());\r
                     iss->setName(issuer.get());\r
                     SAML2SOAPClient client(soaper, false);\r
-                    client.sendSAML(query, mcc, loc.get());\r
+                    client.sendSAML(query, app->getId(), mcc, loc.get());\r
                     srt = client.receiveSAML();\r
                 }\r
                 catch (exception& ex) {\r
@@ -231,7 +231,7 @@ int main(int argc,char* argv[])
                     query->setResource(issuer.get());\r
                     request->setMinorVersion(ver==v11 ? 1 : 0);\r
                     SAML1SOAPClient client(soaper, false);\r
-                    client.sendSAML(request, mcc, loc.get());\r
+                    client.sendSAML(request, app->getId(), mcc, loc.get());\r
                     response = client.receiveSAML();\r
                 }\r
                 catch (exception& ex) {\r