<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Problem creating SOAP integration to Planview in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915687#M572613</link>
    <description>&lt;P&gt;I have been tasked with trying to set up a web service integration between ServiceNow and Planview and running into a hurtle and looking for some assistance or ideas. I am still green on web services but logically what I need to do &amp;nbsp; seems simple. What is available on the Planview side is a bit fuzzy but i am trying anyway. I know I am going to have to do a 2 step process where I request to get a token an and then use that token to query (starting simple for now) &amp;nbsp; a table in Planview and get some data back. I know eventually this will have to be a scripted function as I have seen in some other posts on REST but i am just trying to get past the basics first. &amp;nbsp; Here is what I have so far -&lt;/P&gt;&lt;P&gt;Note: I can do this process using SOAPUI and manually manipulating the header so I know can technically connect but trying to get that into ServiceNow is where i am stuck.&lt;/P&gt;&lt;P&gt;Get Token&lt;/P&gt;&lt;P&gt;1. Connect to the &lt;A class="unlinked" title="https://blueshieldca.pvcloud.com/testing/services/LoginService.svc"&gt;https://yourdomain.pvcloud/testing/services/LoginService.svc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. call the login function and pass &amp;nbsp; datasource, userid, password.&lt;/P&gt;&lt;P&gt;3. &amp;nbsp; The LoginResponse is a token key- S-vxEmB29KOj7iUpOSRTJdx7pmI8w......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query -&lt;/P&gt;&lt;P&gt;1. Connect to the &amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;A class="unlinked" style="font-size: 13.3333330154419px;" title="https://blueshieldca.pvcloud.com/testing/services/LoginService.svc"&gt;https://yourdomain.pvcloud/testing/services/QueryService.svc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. call the Read function and define some query. &amp;nbsp; (no issue here)&lt;/P&gt;&lt;P&gt;Here is where I am having trouble. &amp;nbsp; In SOAPUI I can add a header parameter of Cookie and Value of LoginCert=myreturntokenvalue &amp;nbsp; from above.&lt;/P&gt;&lt;P&gt;Here and example of what the Raw SOAPUI looks like -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A title="k-external-small" class="jive-link-external-small" href="https://yourdomain/testing/services/QueryService.svc" rel="nofollow" target="_blank"&gt;https://yourdomain/testing/services/QueryService.svc&lt;/A&gt;&lt;SPAN&gt; HTTP/1.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Accept-Encoding: gzip,deflate&lt;/P&gt;&lt;P&gt;Content-Type: text/xml;charset=UTF-8&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SOAPAction: "&lt;/SPAN&gt;&lt;A title="k-external-small" class="jive-link-external-small" href="http://schemas.planview.com/PlanviewEnterprise/Services/QueryService/2012/12/IQueryService/Read" rel="nofollow" target="_blank"&gt;http://schemas.planview.com/PlanviewEnterprise/Services/QueryService/2012/12/IQueryService/Read&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cookie: LoginCert=SjsKZEVVgceSUZ9iGwuXqcJAf7L........&lt;/P&gt;&lt;P&gt;Content-Length: 863&lt;/P&gt;&lt;P&gt;Host: Yourdomain&lt;/P&gt;&lt;P&gt;Connection: Keep-Alive&lt;/P&gt;&lt;P&gt;User-Agent: Apache-HttpClient/4.1.1 (java 1.5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;/SPAN&gt;&lt;A title="k-external-small" class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;" xmlns:ns="&lt;/SPAN&gt;&lt;A title="k-external-small" class="jive-link-external-small" href="http://schemas.planview.com/PlanviewEnterprise/Services/QueryService/2012/12" rel="nofollow" target="_blank"&gt;http://schemas.planview.com/PlanviewEnterprise/Services/QueryService/2012/12&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;lt;soapenv:Header/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;lt;soapenv:Body&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ns:Read&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!--Optional:--&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ns:sqlQuery&amp;gt;select&lt;/P&gt;&lt;P&gt;pe.planning_code,&lt;/P&gt;&lt;P&gt;pe.ppl_code,&lt;/P&gt;&lt;P&gt;(select description from ip.structure where structure_code = pe.ppl_code) Project_name,&lt;/P&gt;&lt;P&gt;pe.short_name work_id,&lt;/P&gt;&lt;P&gt;(select description from ip.structure where structure_code =pe.code20) Project_status,&lt;/P&gt;&lt;P&gt;(select top 1 (select full_name from ip.ip_user where user_name=wf.user_name)&lt;/P&gt;&lt;P&gt;from ip.WF_TEAM wf where workflow_id = (select workflow_id from ip.WORKFLOW where planning_code = pe.ppl_code) and wf.lifecycle_role_code= '249') PM&lt;/P&gt;&lt;P&gt;from ip.planning_entity pe&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;pe.ppl_code= pe.planning_code&amp;lt;/ns:sqlQuery&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ns:Read&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;lt;/soapenv:Body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That 'Cookie' parameter is getting passed in the the HTTP header (I believe). &amp;nbsp; It is not something that is set in the XML soa&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;p &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Header. My challenge is I don't know how to set these Cookie value in the HTTP header. &amp;nbsp; Would like to know if other have done this type of thing before and how did they solve.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2015 06:09:27 GMT</pubDate>
    <dc:creator>Matt Small1</dc:creator>
    <dc:date>2015-09-04T06:09:27Z</dc:date>
    <item>
      <title>Problem creating SOAP integration to Planview</title>
      <link>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915687#M572613</link>
      <description>&lt;P&gt;I have been tasked with trying to set up a web service integration between ServiceNow and Planview and running into a hurtle and looking for some assistance or ideas. I am still green on web services but logically what I need to do &amp;nbsp; seems simple. What is available on the Planview side is a bit fuzzy but i am trying anyway. I know I am going to have to do a 2 step process where I request to get a token an and then use that token to query (starting simple for now) &amp;nbsp; a table in Planview and get some data back. I know eventually this will have to be a scripted function as I have seen in some other posts on REST but i am just trying to get past the basics first. &amp;nbsp; Here is what I have so far -&lt;/P&gt;&lt;P&gt;Note: I can do this process using SOAPUI and manually manipulating the header so I know can technically connect but trying to get that into ServiceNow is where i am stuck.&lt;/P&gt;&lt;P&gt;Get Token&lt;/P&gt;&lt;P&gt;1. Connect to the &lt;A class="unlinked" title="https://blueshieldca.pvcloud.com/testing/services/LoginService.svc"&gt;https://yourdomain.pvcloud/testing/services/LoginService.svc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. call the login function and pass &amp;nbsp; datasource, userid, password.&lt;/P&gt;&lt;P&gt;3. &amp;nbsp; The LoginResponse is a token key- S-vxEmB29KOj7iUpOSRTJdx7pmI8w......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query -&lt;/P&gt;&lt;P&gt;1. Connect to the &amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;A class="unlinked" style="font-size: 13.3333330154419px;" title="https://blueshieldca.pvcloud.com/testing/services/LoginService.svc"&gt;https://yourdomain.pvcloud/testing/services/QueryService.svc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. call the Read function and define some query. &amp;nbsp; (no issue here)&lt;/P&gt;&lt;P&gt;Here is where I am having trouble. &amp;nbsp; In SOAPUI I can add a header parameter of Cookie and Value of LoginCert=myreturntokenvalue &amp;nbsp; from above.&lt;/P&gt;&lt;P&gt;Here and example of what the Raw SOAPUI looks like -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A title="k-external-small" class="jive-link-external-small" href="https://yourdomain/testing/services/QueryService.svc" rel="nofollow" target="_blank"&gt;https://yourdomain/testing/services/QueryService.svc&lt;/A&gt;&lt;SPAN&gt; HTTP/1.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Accept-Encoding: gzip,deflate&lt;/P&gt;&lt;P&gt;Content-Type: text/xml;charset=UTF-8&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SOAPAction: "&lt;/SPAN&gt;&lt;A title="k-external-small" class="jive-link-external-small" href="http://schemas.planview.com/PlanviewEnterprise/Services/QueryService/2012/12/IQueryService/Read" rel="nofollow" target="_blank"&gt;http://schemas.planview.com/PlanviewEnterprise/Services/QueryService/2012/12/IQueryService/Read&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cookie: LoginCert=SjsKZEVVgceSUZ9iGwuXqcJAf7L........&lt;/P&gt;&lt;P&gt;Content-Length: 863&lt;/P&gt;&lt;P&gt;Host: Yourdomain&lt;/P&gt;&lt;P&gt;Connection: Keep-Alive&lt;/P&gt;&lt;P&gt;User-Agent: Apache-HttpClient/4.1.1 (java 1.5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;/SPAN&gt;&lt;A title="k-external-small" class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;" xmlns:ns="&lt;/SPAN&gt;&lt;A title="k-external-small" class="jive-link-external-small" href="http://schemas.planview.com/PlanviewEnterprise/Services/QueryService/2012/12" rel="nofollow" target="_blank"&gt;http://schemas.planview.com/PlanviewEnterprise/Services/QueryService/2012/12&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;lt;soapenv:Header/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;lt;soapenv:Body&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ns:Read&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!--Optional:--&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ns:sqlQuery&amp;gt;select&lt;/P&gt;&lt;P&gt;pe.planning_code,&lt;/P&gt;&lt;P&gt;pe.ppl_code,&lt;/P&gt;&lt;P&gt;(select description from ip.structure where structure_code = pe.ppl_code) Project_name,&lt;/P&gt;&lt;P&gt;pe.short_name work_id,&lt;/P&gt;&lt;P&gt;(select description from ip.structure where structure_code =pe.code20) Project_status,&lt;/P&gt;&lt;P&gt;(select top 1 (select full_name from ip.ip_user where user_name=wf.user_name)&lt;/P&gt;&lt;P&gt;from ip.WF_TEAM wf where workflow_id = (select workflow_id from ip.WORKFLOW where planning_code = pe.ppl_code) and wf.lifecycle_role_code= '249') PM&lt;/P&gt;&lt;P&gt;from ip.planning_entity pe&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;pe.ppl_code= pe.planning_code&amp;lt;/ns:sqlQuery&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ns:Read&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;lt;/soapenv:Body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That 'Cookie' parameter is getting passed in the the HTTP header (I believe). &amp;nbsp; It is not something that is set in the XML soa&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;p &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Header. My challenge is I don't know how to set these Cookie value in the HTTP header. &amp;nbsp; Would like to know if other have done this type of thing before and how did they solve.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2015 06:09:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915687#M572613</guid>
      <dc:creator>Matt Small1</dc:creator>
      <dc:date>2015-09-04T06:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating SOAP integration to Planview</title>
      <link>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915688#M572614</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I assume you'll be using the SOAPMessageAPIV2 for this. The API allows you to set arbitrary HTTP headers:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="https://wiki.servicenow.com/index.php?title=SOAPMessageV2_API#setRequestHeader.28String_headerName.2C_String_headerValue.29" title="https://wiki.servicenow.com/index.php?title=SOAPMessageV2_API#setRequestHeader.28String_headerName.2C_String_headerValue.29"&gt;https://wiki.servicenow.com/index.php?title=SOAPMessageV2_API#setRequestHeader.28String_headerName.2C_String_headerValue.29&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="https://developer.servicenow.com/app.do#!/api_doc?to=method_class__setrequestheader_string_headername__string_headervalue__soapmessagev2" title="https://developer.servicenow.com/app.do#!/api_doc?to=method_class__setrequestheader_string_headername__string_headervalue__soapmessagev2"&gt;developer API - SOAPMessageV2 - setRequestHeader&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Have you tried scripting this at all yet? It's hard to troubleshoot problems or explain how to do it when there isn't anything to troubleshoot or tweak yet. I suggest setting up a simple message in ServiceNow and just trying to get the token back from Planview. Once you do that, you can take that token and try your next message programmatically. Post the script you use here, as you run into problems, and the community can help you get over the hurdles as they come up.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Right now your biggest hurdle is that you haven't started doing it in ServiceNow yet.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Sep 2015 17:36:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915688#M572614</guid>
      <dc:creator>coryseering</dc:creator>
      <dc:date>2015-09-04T17:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating SOAP integration to Planview</title>
      <link>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915689#M572615</link>
      <description>&lt;P&gt;I have set up the Soap message to get the token and am successful at that i just was trying to see how to modify the HTTP header in the outbound SOAP configuration on the queryservice. &amp;nbsp; Sorry i didn't make that clear earlier. &amp;nbsp; I will work on scripting Step 2 after getting the token and see how far I get. &amp;nbsp; Thanks.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Sep 2015 17:49:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915689#M572615</guid>
      <dc:creator>Matt Small1</dc:creator>
      <dc:date>2015-09-04T17:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating SOAP integration to Planview</title>
      <link>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915690#M572616</link>
      <description>&lt;P&gt;So I was able to get this working with a little trial and error. &amp;nbsp; I create 2 soap messages to account for the LoginService and to the iQueryService in planview. Then is was a matter of scripting so I could get of token value, parse it and then script to query. Here is the scripted code (sorry I don't know how to insert it in those pretty JS editor sceens like in other posts).&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;//Perform "Open Session" Web Service call with proper credentials to get the token&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var s = new SOAPMessage('Planview - Login', 'Login'); &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;s.setParameter('userName','youruser');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;s.setParameter('password', 'yourpassword');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;s.setParameter('datasource', 'your_ds');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var response = s.post(); &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var xmldoc = new XMLDocument(response);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var LoginResponse = xmldoc.getNodeText("//LoginResult")&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var token = 'LoginCert='+LoginResponse;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;//Now that you have token pass in the HTTP header to do your query&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;//modified from here &lt;/SPAN&gt;&lt;A class="loading" href="http://wiki.servicenow.com/index.php?title=Scripting_Outbound_SOAP#Sending_a_Direct_SOAP_Message" style="font-size: 13.3333330154419px;" title="http://wiki.servicenow.com/index.php?title=Scripting_Outbound_SOAP#Sending_a_Direct_SOAP_Message"&gt;http://wiki.servicenow.com/index.php?title=Scripting_Outbound_SOAP#Sending_a_Direct_SOAP_Message&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var requestBody;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var responseBody;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var status;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var sm;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;try{&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; sm = new sn_ws.SOAPMessageV2("Planview - iquery", "Read");&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; sm.setRequestHeader('Cookie', token) //token from first WS call&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sm.setStringParameter('sqlQuery', "your SQL query here);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; sm.setHttpTimeout(10000) //In Milli seconds. Wait at most 10 seconds for response from http request.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; response = sm.execute();//Might throw exception if http connection timed out or some issue with sending request itself because of encryption/decryption of password and stuff&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; responseBody = response.haveError() ? response.getErrorMessage() : response.getBody();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; status = response.getStatusCode();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;} catch(ex) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; responseBody = ex.getMessage();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; status = '500';&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;} finally {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; requestBody = sm ? sm.getRequestBody():null;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var xmldoc2 = new XMLDocument(responseBody);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;gs.print("Request Body: " + requestBody);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;gs.print("Response: " + xmldoc2);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;gs.print("HTTP Status: " + status);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I should be able to parse through the XML response and use however i need but I was able to get over this hurdle.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Sep 2015 23:43:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915690#M572616</guid>
      <dc:creator>Matt Small1</dc:creator>
      <dc:date>2015-09-17T23:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating SOAP integration to Planview</title>
      <link>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915691#M572617</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Awesome! If you issue more queries after the first, be sure to store and re-use the cookie so you don't need to authenticate with every transaction- just once at the start.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Oct 2015 16:14:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915691#M572617</guid>
      <dc:creator>coryseering</dc:creator>
      <dc:date>2015-10-07T16:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating SOAP integration to Planview</title>
      <link>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915692#M572618</link>
      <description>&lt;P&gt;I have a question: for my case, we have to bypass a proxy server to reach to the target Planview site, how can I setup proxy server in ServiceNow?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;From wiki site, we need to setup 4 sys properties for proxy server, but I don't see how these properties can connect to that particular soap message. We have a lot of soap messages, does that mean all outbound soap messages will have to bypass the same proxy server?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We are currently in Geneva version.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Appreciated your help.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;whitney&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Oct 2017 19:44:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915692#M572618</guid>
      <dc:creator>whitneyjiang</dc:creator>
      <dc:date>2017-10-20T19:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating SOAP integration to Planview</title>
      <link>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915693#M572619</link>
      <description>&lt;P&gt;Thanks for the details here on the integration.&lt;/P&gt;
&lt;P&gt;With regards to parsing the data coming back another way of doing this server side is using gs.getXMLText(string, XPATH expression)&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;var responseBody = response.getBody();
var status = response.getStatusCode();
var status_from_xml = gs.getXMLText(responseBody, "//status");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I think that's easier if you just need a few elements from the XML.&lt;BR /&gt;&lt;BR /&gt;You can search for "Parse XML payloads" in the docs for more information.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 11:26:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/problem-creating-soap-integration-to-planview/m-p/1915693#M572619</guid>
      <dc:creator>Phonsie Hevey1</dc:creator>
      <dc:date>2020-08-18T11:26:55Z</dc:date>
    </item>
  </channel>
</rss>

