![]() ![]() If you save this xml body to this file, it should work Note that I put the file for the request in /tmp/listrequest. Wget -post-file /tmp/listrequest -header 'Content-Type: application/soap xml charset="utf-8"' -http-user='NA\mchiles' -http-password="putyourpwhere" Here is an example command from RHEL 5 command line that gets results back from the Lists web service: So we tried to use perl with wget to communicate with SharePoint. However, both wget and curl ( command line web clients ) support NTLM, and curl supports Kerberos. Since the final goal is to use perl on Unix and Linux, we found LWP does not have NTLM implemented on Unix/Linux through CPAN. My $list_id = lists_getid('Shared Documents') Quit(1, $call->faultstring()) if defined $call->fault() My $call = $soap->GetListItems($in_listName, $in_viewName, $in_rowLimit) My $in_rowLimit = name('rowLimit' => 99999) My $in_viewName = name('viewName' => '') My $in_listName = name('listName' => $listid) My = $lists->dataof('//GetListCollectionResult/Lists/List') Quit(1, $lists->faultstring()) if defined $lists->fault() My $schema_ua = SOAP::Lite->proxy($sp_endpoint, credentials => = $soap->GetListCollection() My = ($sp_domain, "", $sp_username, $sp_password) Our $sp_endpoint = ' our $sp_domain = 'sbx01.na.:80' Here is the script from John Wefler and I modified with our server and site. I’m not familiar the perl make installation. Activeperl 5.12.3 install#I also tried to install LWP::Authen::NTLM from CPAN. It seems like the NTLM.pm is inside C:\Perl64\lib\LWP\Authen.ħ. I also tried to add the following line:Ĭan't locate Authen/NTLM.pm in contains: C:/Perl64/site/lib C:/Perl64 Error The exception is on line: $lists = $soap->GetListCollection() Ĥ01 Unauthorized at E:\Share\ws\ws.pl line 27Ĭlient-Warning: Unsupported authentication scheme 'ntlm'.Ħ.Tried the script from The SharePoint / Perl Connection (Part 1).Setup SharePoint site and list and grant site collection admin to the test user account.Install SOAP::Lite using cpan command cpan -i SOAP:Lite since it’s difficult using ppm.We have tried on 2008 64bit window VM server before moving to Linux or Unix. Since we are not perl or SharePoint integration expertise, we could like to get some help. We believe the NTLM perl package may not configured correctly or Perl may not connect to SharePoint Kerberos sites. However, we are getting 401 UNAUTHORIZED error against both NTLM and Kerberos SharePoint 2010 sites. We have identified two good blogs on this topics and tried the approach. Since we need to pass authentication, we are trying to pass this on window server first before moving to Linux or Unix. The perl to SharePoint integration is critical for our engineers on their daily jobs. They would like to send the testing result directly from perl to SharePoint. We have engineers using perl on Linux and Unix running testing scripts. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |