{"info":{"_postman_id":"2bf6727f-e95e-484b-8684-ae734093f018","name":"Pymetrics Webservice V2 SOAP APIs (shared)","description":"<html><head></head><body><p>Pymetrics offers an API which can be used to request assessments and receive candidate results. This may commonly be referred to as the “pymetrics web services” by our engineers.</p>\n<p>Endpoint: <a href=\"https://www.pymetrics.com/integrations/webservice/v2/wsdl/\">https://www.pymetrics.com/integrations/webservice/v2/wsdl/</a></p>\n<p>All requests should be sent with Content-Type: application/xml.</p>\n<p>More details can be found here - <a href=\"https://www.pymetrics.com/docs/integrations/webservice/v2\">https://www.pymetrics.com/docs/integrations/webservice/v2</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"2591871","collectionId":"2bf6727f-e95e-484b-8684-ae734093f018","publishedId":"SW7Z38G4","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-11-19T08:48:52.000Z"},"item":[{"name":"Echo","id":"3f66aa8d-36f1-4f0d-bd33-eefbd7a6d778","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/xml","type":"text"}],"body":{"mode":"raw","raw":"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:pym=\"pym.intg.ws.2.0.0\">\n   <soapenv:Header/>\n   <soapenv:Body>\n      <pym:echo>\n         <pym:echo>ECHO</pym:echo>\n      </pym:echo>\n   </soapenv:Body>\n</soapenv:Envelope>"},"url":"https://www.pymetrics.com/integrations/webservice/v2/wsdl/","urlObject":{"protocol":"https","path":["integrations","webservice","v2","wsdl",""],"host":["www","pymetrics","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f66aa8d-36f1-4f0d-bd33-eefbd7a6d778"},{"name":"Ping","id":"2a41224c-59f1-4aad-a1bd-45409281e09b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/xml"}],"body":{"mode":"raw","raw":"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:pym=\"pym.intg.ws.2.0.0\">\n   <soapenv:Header>\n      <pym:RequestHeader>\n         <pym:session_id>{{session_id}}</pym:session_id>\n         <pym:client_id>{{client_id}}</pym:client_id>\n      </pym:RequestHeader>\n   </soapenv:Header>\n   <soapenv:Body>\n      <pym:ping></pym:ping>\n   </soapenv:Body>\n</soapenv:Envelope>"},"url":"https://www.pymetrics.com/integrations/webservice/v2/wsdl/","description":"<p>A simple endpoint, suitable for testing making authenticated requests.</p>\n<p>First, obtain a <code>session_id</code> via the <code>Authenticate</code> endpoint.</p>\n<p>To authenticate a request with your <code>session_id</code>, create a SOAP header. This procedure will vary depending on your programming langauage and chosen SOAP library, but then resulting XML should look like this:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>&lt;soapenv:Header&gt;\n  &lt;pym:RequestHeader&gt;\n    &lt;pym:session_id&gt;{{ session_id }}&lt;/pym:session_id&gt;\n    &lt;pym:client_id&gt;{{ client_id }}&lt;/pym:client_id&gt;\n  &lt;/pym:RequestHeader&gt;\n&lt;/soapenv:Header&gt;\n</code></pre><p>Replacing the <code>{{ session_id }}</code> and <code>{{ client_id }}</code> placeholders with the correct values.</p>\n<p>If crafted successfully, a request to this endpoint should return the following body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>&lt;tns:pingResponse&gt;\n  &lt;tns:pingResult&gt;PONG&lt;/tns:pingResult&gt;\n&lt;/tns:pingResponse&gt;\n</code></pre>","urlObject":{"protocol":"https","path":["integrations","webservice","v2","wsdl",""],"host":["www","pymetrics","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a41224c-59f1-4aad-a1bd-45409281e09b"},{"name":"Authentication","event":[{"listen":"test","script":{"id":"55286d02-63ab-46f3-b96b-97ae274e1a60","exec":["pm.test(\"Set session_id\", function(){","    pm.expect(pm.response.text()).to.include(\"tns:authenticateResult\");","    var json = xml2Json(pm.response.text())","    var session_id = json['soap11env:Envelope']['soap11env:Body']['tns:authenticateResponse']['tns:authenticateResult'];","    postman.setEnvironmentVariable(\"session_id\", session_id);","    console.log(\"Successfully set session_id\")","})",""],"type":"text/javascript"}}],"id":"2c1f9501-32e6-49fb-9d38-a2df2c9fca54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/xml"}],"body":{"mode":"raw","raw":"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:pym=\"pym.intg.ws.2.0.0\">\n   <soapenv:Header/>\n   <soapenv:Body>\n      <pym:authenticate>\n         <pym:client_id>{{client_id}}</pym:client_id>\n         <pym:client_secret>{{client_secret}}</pym:client_secret>\n      </pym:authenticate>\n   </soapenv:Body>\n</soapenv:Envelope>"},"url":"https://www.pymetrics.com/integrations/webservice/v2/wsdl/","description":"<p>Use this endpoint to exchange your <code>CLIENT_ID</code> and <code>CLIENT_SECRET</code> credentials for a session identifier. This <code>session_id</code> is used to make authenticated requests to other endpoints.</p>\n","urlObject":{"protocol":"https","path":["integrations","webservice","v2","wsdl",""],"host":["www","pymetrics","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c1f9501-32e6-49fb-9d38-a2df2c9fca54"},{"name":"Request Assessment","id":"1335615d-0c45-42c4-af90-3d1529b11399","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/xml"}],"body":{"mode":"raw","raw":"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:pym=\"pym.intg.ws.2.0.0\" xmlns:int=\"integrations.webservice.ws_models\">\n   <soapenv:Header>\n      <pym:RequestHeader>\n         <pym:session_id>{{session_id}}</pym:session_id>\n         <pym:client_id>{{client_id}}</pym:client_id>\n      </pym:RequestHeader>\n   </soapenv:Header>\n   <soapenv:Body>\n      <pym:request_assessment>\n         <!--Optional:-->\n         <pym:order>\n            <int:city>New York</int:city>\n            <int:first_name>Test</int:first_name>\n            <int:last_name>User1</int:last_name>\n            <int:callback_url>http://example.com/TEST1-0002</int:callback_url>\n            <int:gender>Female</int:gender>\n            <int:assessment_id>{{assessment_id}}</int:assessment_id>\n            <int:application_locale>BLDG-0001</int:application_locale>\n            <int:country>US</int:country>\n            <int:external_id>TEST-555-2</int:external_id>\n            <int:email>vu+test-555@pymetrics.com</int:email>\n            \n         </pym:order>\n      </pym:request_assessment>\n   </soapenv:Body>\n</soapenv:Envelope>"},"url":"https://www.pymetrics.com/integrations/webservice/v2/wsdl/","urlObject":{"protocol":"https","path":["integrations","webservice","v2","wsdl",""],"host":["www","pymetrics","com"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"1335615d-0c45-42c4-af90-3d1529b11399"},{"name":"Get Bulk Status","id":"88fbdfb5-e3d6-4adb-adec-532400bfb692","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/xml"}],"body":{"mode":"raw","raw":"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:pym=\"pym.intg.ws.2.0.0\">\n   <soapenv:Header>\n      <pym:RequestHeader>\n         <pym:session_id>{{session_id}}</pym:session_id>\n         <pym:client_id>{{client_id}}</pym:client_id>\n      </pym:RequestHeader>\n   </soapenv:Header>\n   <soapenv:Body>\n      <pym:get_bulk_status>\n         <pym:order_ids>\n         \t<pym:integer>2123456</pym:integer>\n         </pym:order_ids>\n      </pym:get_bulk_status>\n   </soapenv:Body>\n</soapenv:Envelope>"},"url":"https://www.pymetrics.com/integrations/webservice/v2/wsdl/","urlObject":{"protocol":"https","path":["integrations","webservice","v2","wsdl",""],"host":["www","pymetrics","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"88fbdfb5-e3d6-4adb-adec-532400bfb692"},{"name":"Get Bulk Results","id":"b129041a-e3c1-466c-9fe7-5b7fd4a16042","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/xml"}],"body":{"mode":"raw","raw":"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:pym=\"pym.intg.ws.2.0.0\">\n   <soapenv:Header>\n      <pym:RequestHeader>\n         <pym:session_id>{{session_id}}</pym:session_id>\n         <pym:client_id>{{client_id}}</pym:client_id>\n      </pym:RequestHeader>\n   </soapenv:Header>\n   <soapenv:Body>\n      <pym:get_bulk_results>\n         <pym:order_ids>\n            <pym:integer>21234</pym:integer>\n         </pym:order_ids>\n      </pym:get_bulk_results>\n   </soapenv:Body>\n</soapenv:Envelope>"},"url":"https://www.pymetrics.com/integrations/webservice/v2/wsdl/","urlObject":{"protocol":"https","path":["integrations","webservice","v2","wsdl",""],"host":["www","pymetrics","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b129041a-e3c1-466c-9fe7-5b7fd4a16042"},{"name":"Get Report","id":"2c95a627-9500-4bdd-8c25-6a95cd5859c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/xml"}],"body":{"mode":"raw","raw":"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:pym=\"pym.intg.ws.2.0.0\">\n   <soapenv:Header>\n      <pym:RequestHeader>\n         <pym:session_id>{{session_id}}</pym:session_id>\n         <pym:client_id>{{client_id}}</pym:client_id>\n      </pym:RequestHeader>\n   </soapenv:Header>\n   <soapenv:Body>\n      <pym:get_report>\n         <pym:order_id>213263</pym:order_id>\n      </pym:get_report>\n   </soapenv:Body>\n</soapenv:Envelope>"},"url":"https://www.pymetrics.com/integrations/webservice/v2/wsdl/","urlObject":{"protocol":"https","path":["integrations","webservice","v2","wsdl",""],"host":["www","pymetrics","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c95a627-9500-4bdd-8c25-6a95cd5859c6"}],"event":[{"listen":"prerequest","script":{"id":"dff09934-c0bc-4eac-92e8-9fa059be1974","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"df7525ba-8a88-4cea-b41b-1dfb6d3f02fa","type":"text/javascript","exec":[""]}}]}