<?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>topic Re: PROC SOAP Accessing DNB Information in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SOAP-Accessing-DNB-Information/m-p/106189#M29575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it figured out with the help of SAS Tech Support.&amp;nbsp; The part that was hanging me up is that the URL value was the EndPoint.&amp;nbsp; I also determined that I could use WEBPASSWORD and WEBUSERNAME instead of having it in the XML.&amp;nbsp; That way I could encrypt it.&amp;nbsp; You will need an account with D&amp;amp;B in order to use it, but maybe this example will help someone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%LET ID = 1382555 ;&lt;/P&gt;&lt;P&gt;**************************************************************;&lt;BR /&gt;**************************************************************;&lt;/P&gt;&lt;P&gt;FILENAME request&amp;nbsp;&amp;nbsp; "C:\Temp\temprq.xml"&amp;nbsp; ;&lt;BR /&gt;FILENAME response&amp;nbsp; "C:\Temp\tempre.xml" LRECL=500000 ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATA _NULL_ ;&lt;BR /&gt;&amp;nbsp; FORMAT INFILE $CHAR256. ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; INPUT&amp;nbsp; ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; INFILE = resolve(_INFILE_) ; *&amp;nbsp; This is to resolve macro variables.&amp;nbsp; *; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; FILE request ;&lt;BR /&gt;&amp;nbsp; PUT INFILE&amp;nbsp; ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; DATALINES4 ;&lt;BR /&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;A href="http://schemas.xmlsoap.org/soap/envelope/"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;" xmlns:sch="&lt;A href="http://applications.dnb.com/webservice/schema/"&gt;http://applications.dnb.com/webservice/schema/&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;soapenv:Header&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sch:API-KEY&amp;gt;&amp;lt;!-- Your Key --!&amp;gt;&amp;lt;/sch:API-KEY&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/soapenv:Header&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;soapenv:Body&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sch:GetCompanyDetailRequest&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sch:uniqueId&amp;gt;&amp;amp;ID.&amp;lt;/sch:uniqueId&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/sch:GetCompanyDetailRequest&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/soapenv:Body&amp;gt;&lt;BR /&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;BR /&gt;;;;;&lt;BR /&gt;RUN ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc soap &lt;BR /&gt;&amp;nbsp;&amp;nbsp; in=request&lt;BR /&gt;&amp;nbsp;&amp;nbsp; out=response&lt;BR /&gt;&amp;nbsp;&amp;nbsp; url="&lt;A href="http://dnbdirect-api.dnb.com/DnBAPI-13"&gt;http://dnbdirect-api.dnb.com/DnBAPI-13&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; webpassword = "-- Your Password --"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; webusername = "-- Your Username --"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2013 18:49:08 GMT</pubDate>
    <dc:creator>ArvAmundson</dc:creator>
    <dc:date>2013-04-29T18:49:08Z</dc:date>
    <item>
      <title>PROC SOAP Accessing DNB Information</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SOAP-Accessing-DNB-Information/m-p/106188#M29574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to access DNB APIs using PROC SOAP.&amp;nbsp; I have been able to use SOAPUI to bring back information, but am having trouble getting PROC SOAP to work.&amp;nbsp; I have established the URL:&amp;nbsp; &lt;A href="http://dnbdirect-api.dnb.com/DnBAPI-13/dnbAPI/dnbAPI.wsdl"&gt;http://dnbdirect-api.dnb.com/DnBAPI-13/dnbAPI/dnbAPI.wsdl&lt;/A&gt;, however, I haven't been able to figure out the SOAPACTION= parameter.&amp;nbsp; This particular call does require a userID and password though.&amp;nbsp; The input xml layout is as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;SOAP-ENV:Envelope xmlns:ns0="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://applications.dnb.com/webservice/schema/"&gt;http://applications.dnb.com/webservice/schema/&lt;/A&gt;&lt;SPAN&gt;" xmlns:ns1="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:sch="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://applications.dnb.com/webservice/schema/"&gt;http://applications.dnb.com/webservice/schema/&lt;/A&gt;&lt;SPAN&gt;" xmlns:SOAP-ENV="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;SOAP-ENV:Header&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;sch:API-KEY&amp;gt;&amp;lt;!-- your API-KEY --&amp;gt;&amp;lt;/sch:API-KEY&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;sch:username&amp;gt;&amp;lt;!-- your username --&amp;gt;&amp;lt;/sch:username&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;sch:password&amp;gt;&amp;lt;!-- your password --&amp;gt;&amp;lt;/sch:password&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/SOAP-ENV:Header&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ns1:Body&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ns0:GetCompanyDetailRequest&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ns0:uniqueId&amp;gt;Enter DNB number here&amp;lt;/ns0:uniqueId&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ns0:GetCompanyDetailRequest&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ns1:Body&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/SOAP-ENV:Envelope&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have looked at the following papers 013-2010 and 310-2008. While they rpovide a good deal of detail, I'm still coming up short.&amp;nbsp; My knowledge of SOAP is limited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help that you could provide would be most appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arvid Amundson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 02:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SOAP-Accessing-DNB-Information/m-p/106188#M29574</guid>
      <dc:creator>ArvAmundson</dc:creator>
      <dc:date>2013-02-12T02:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SOAP Accessing DNB Information</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SOAP-Accessing-DNB-Information/m-p/106189#M29575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it figured out with the help of SAS Tech Support.&amp;nbsp; The part that was hanging me up is that the URL value was the EndPoint.&amp;nbsp; I also determined that I could use WEBPASSWORD and WEBUSERNAME instead of having it in the XML.&amp;nbsp; That way I could encrypt it.&amp;nbsp; You will need an account with D&amp;amp;B in order to use it, but maybe this example will help someone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%LET ID = 1382555 ;&lt;/P&gt;&lt;P&gt;**************************************************************;&lt;BR /&gt;**************************************************************;&lt;/P&gt;&lt;P&gt;FILENAME request&amp;nbsp;&amp;nbsp; "C:\Temp\temprq.xml"&amp;nbsp; ;&lt;BR /&gt;FILENAME response&amp;nbsp; "C:\Temp\tempre.xml" LRECL=500000 ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATA _NULL_ ;&lt;BR /&gt;&amp;nbsp; FORMAT INFILE $CHAR256. ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; INPUT&amp;nbsp; ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; INFILE = resolve(_INFILE_) ; *&amp;nbsp; This is to resolve macro variables.&amp;nbsp; *; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; FILE request ;&lt;BR /&gt;&amp;nbsp; PUT INFILE&amp;nbsp; ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; DATALINES4 ;&lt;BR /&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;A href="http://schemas.xmlsoap.org/soap/envelope/"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;" xmlns:sch="&lt;A href="http://applications.dnb.com/webservice/schema/"&gt;http://applications.dnb.com/webservice/schema/&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;soapenv:Header&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sch:API-KEY&amp;gt;&amp;lt;!-- Your Key --!&amp;gt;&amp;lt;/sch:API-KEY&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/soapenv:Header&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;soapenv:Body&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sch:GetCompanyDetailRequest&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sch:uniqueId&amp;gt;&amp;amp;ID.&amp;lt;/sch:uniqueId&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/sch:GetCompanyDetailRequest&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/soapenv:Body&amp;gt;&lt;BR /&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;BR /&gt;;;;;&lt;BR /&gt;RUN ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc soap &lt;BR /&gt;&amp;nbsp;&amp;nbsp; in=request&lt;BR /&gt;&amp;nbsp;&amp;nbsp; out=response&lt;BR /&gt;&amp;nbsp;&amp;nbsp; url="&lt;A href="http://dnbdirect-api.dnb.com/DnBAPI-13"&gt;http://dnbdirect-api.dnb.com/DnBAPI-13&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; webpassword = "-- Your Password --"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; webusername = "-- Your Username --"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 18:49:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SOAP-Accessing-DNB-Information/m-p/106189#M29575</guid>
      <dc:creator>ArvAmundson</dc:creator>
      <dc:date>2013-04-29T18:49:08Z</dc:date>
    </item>
  </channel>
</rss>

