Skip to main content

Hi, I'm having an issue with the Call Web Service - _vti_bin/usergroup.asmx

201530_pastedImage_1.png

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/directory/">
  <soap:Header>
  </soap:Header>
  <soap:Body>
    <m:AddGroup>
      <m:groupName>test</m:groupName>
      <m:ownerIdentifier>farmaccount</m:ownerIdentifier>
      <m:ownerType>
      </m:ownerType>
      <m:defaultUserLoginName>
      </m:defaultUserLoginName>
      <m:description>
      </m:description>
    </m:AddGroup>
  </soap:Body>
</soap:Envelope>

If I test the connection, this succeeds

If I run this from within the workflow it fails, but I have read that this is common

201532_pastedImage_11.png

When I publish and run the workflow, it errors with the following:

Failed to invoke web service. Error returned from server: <soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soap:Server</faultcode><faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.

I'm seeing various posts around similar errors but so far am unable to resolve. I'm looking for any tips around this

Are all of those fields in the first screenshot required? there isn't too much help around this.

thanks

Carl

check webservice method specification UserGroup.AddGroup Method (Users and Groups) 

none of the parameter is marked as optional, so you have to provide values for all of them.

user accounts are required in form domainloginname (or even if not documented I would say claim|domainloginname)


Reply