{"id":1157,"date":"2007-03-28T14:51:00","date_gmt":"2007-03-28T19:51:00","guid":{"rendered":"http:\/\/blogs.devhorizon.com\/reza\/?p=1157"},"modified":"2007-03-28T14:51:00","modified_gmt":"2007-03-28T19:51:00","slug":"get-excel-to-use-soap-to-communicate-with-wss-30","status":"publish","type":"post","link":"https:\/\/blogs.devhorizon.com\/reza\/2007\/03\/28\/get-excel-to-use-soap-to-communicate-with-wss-30\/","title":{"rendered":"Get Excel to use SOAP to communicate with WSS 3.0"},"content":{"rendered":"<p><P>I have seen quite a few cases that any call to method <STRONG>&#8216;Post&#8217; <\/STRONG>of different objects such as&nbsp;&nbsp;<STRONG>&#8216;IOWSPostData&#8217;<\/STRONG>&nbsp; (IOWSPostData.Post()) in Excel returns with failed dialog.One of the most frequent cases is when you try to import a list from an existing Excel file. This has nothing to do with WSS 3.0 but rather the result of a failed call in the Excel Add-in which results in Excel using the IOWSPostData.Post() method to publish the Excel range or query. These post calls have been around since SharePoint Team Services 1.0 days, so if you want to change it to a soap call instead&nbsp;follow these steps :<?xml:namespace prefix = o ns = \"urn:schemas-microsoft-com:office:office\" \/><o:p><\/o:p><\/P><br \/>\n<P>1) Go to C:Program FilesMicrosoft OfficeOffice121033 <BR>2) Open the Excel Add-In EXPTOOWS.XLA <BR>3) Find Intialize() method <BR>4) In Initialize mthod comment out that lVer = Application.SharePointVersion(URL)<BR>5) Add the line lVer=2&nbsp; instead<o:p><\/o:p><\/P><br \/>\n<P>Your Intialize() method should now look like this:<o:p><\/o:p><\/P><br \/>\n<P><BR>Sub Initialize(List, Title, URL, QuickLaunch)<o:p><\/o:p><\/P><br \/>\n<P>&nbsp; strQuickLaunch = QuickLaunch<BR>&nbsp; aTarget(iPublishURL) = URL<BR>&nbsp; aTarget(iPublishListName) = List<BR>&nbsp; aTarget(iPublishListDesc) = Title<BR>&nbsp; &#8216;lVer = Application.SharePointVersion(URL)<BR>&nbsp; lVer = 2&nbsp; &#8216;Or any number greater than 2<o:p><\/o:p><\/P><br \/>\n<P><SPAN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA\">End Sub&nbsp;&nbsp;<\/SPAN><BR><BR>&nbsp;<BR><\/P><br \/>\n<HR align=left width=\"50%\" noShade SIZE=10><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have seen quite a few cases that any call to method &#8216;Post&#8217; of different objects such as&nbsp;&nbsp;&#8216;IOWSPostData&#8217;&nbsp; (IOWSPostData.Post()) in Excel returns with failed dialog.One of the most frequent cases is when you try to import a list from an existing Excel file. This has nothing to do with WSS 3.0 but rather the result [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-1157","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/1157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/comments?post=1157"}],"version-history":[{"count":0,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/1157\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/media?parent=1157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/categories?post=1157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/tags?post=1157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}