Calling Web Service

Aug 22, 2013 at 10:09 AM
Edited Aug 22, 2013 at 10:10 AM
Sending the SOAP message Successfully by Fiddler2:

POST /_vti_bin/UserProfileService.asmx HTTP/1.1
Host: sdu-server5
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 2048

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetCommonManager xmlns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService">
  <accountName>CANOSSAHOSPITAL\emman</accountName>
</GetCommonManager>
</soap12:Body>
</soap12:Envelope>

Unable to call this Web Service from within the Sharepoint Designer 2007 Workflow. Please assist.
Oct 30, 2013 at 8:52 AM
Edited Oct 30, 2013 at 9:01 AM
Hello,

I had the same problem.
You can find in your log the envelope send by ilove sharepoint code.

When i send a SOAP envelope without variable like workflow variable or CurrentItem, i must add only 2 "\\".

<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <AddGroup xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/"> <groupName>ewrewrewrewrmemb</groupName> <ownerIdentifier>demo"\\"s-spfarm2010server</ownerIdentifier> <ownerType>user</ownerType> <defaultUserLoginName>demo"\\"s-spfarm2010server</defaultUserLoginName> <description>dfsdfdsfsdfdsf</description> </AddGroup> </soap12:Body> </soap12:Envelope>


But if i send with variable i must add "\\"

<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <AddGroup xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/"> <groupName>ewrewrewrewrmemb</groupName> <ownerIdentifier>demo"\\\\"s-spfarm2010server</ownerIdentifier> <ownerType>user</ownerType> <defaultUserLoginName>demo"\\\\"s-spfarm2010server</defaultUserLoginName> <description>dfsdfdsfsdfdsf</description> </AddGroup> </soap12:Body> </soap12:Envelope>

I dont know why but i'm looking for a correction.