Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2008

Tip: Looking for answers? Try searching our database.

Sharepoint Profile Service - Stumped

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SirCodesALot - 28 Feb 2008 23:15 GMT
HI All,

I am trying to read data from a Sharepoint web serivce using
Javascript.  However, the service always returns the error:
"soap:ClientServer did not recognize the value of HTTP Header
SOAPAction: http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetIn
Common
"

Anyone know what may be wrong, here is the xml call I am using:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://
schemas.xmlsoap.org/soap/envelope/">
 <soap:Body>
   <GetInCommon xmlns="http://microsoft.com/webservices/
SharePointPortalServer/UserProfileService">
     <accountName>domain\login</accountName>
   </GetInCommon>
 </soap:Body>
</soap:Envelope>

And the ajax part  -- I will only post the import parts:

var xmlHttpReq = getHTTPObject();
var strSOAP = "http://microsoft.com/webservices/SharePointPortalServer/
UserProfileService/GetInCommon";
var strURL = "http://ourserver.com/sites/oursite/_vti_bin/
userprofileservice.asmx"
   xmlHttpReq.open("POST", strURL, true);
   xmlHttpReq.setRequestHeader('Content-Type', 'text/xml;
charset=utf-8');
   xmlHttpReq.setRequestHeader('Content-Length', strXML.length);
   xmlHttpReq.setRequestHeader('SOAPAction', strSOAP);
   xmlHttpReq.send(strXML);

Any ideas?
SirCodesALot - 29 Feb 2008 21:41 GMT
> HI All,
>
[quoted text clipped - 32 lines]
>
> Any ideas?

I found the problem.it wanted the value of the SoapAction: to be in
qoutes!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.