Internal server errors while calling a web service with parameters inside of worlflow

Nov 27, 2012 at 9:52 PM
Edited Nov 28, 2012 at 4:06 PM

First of all thank you Christian for your great work and contribution to the community.

Everything works fine if you call web service with a static soap envelope and also if you define the whole soap envelope as workflow variable and only give static values.

In case you want to do some dynamic stuff by entering variables in eithter of above methods you will always get internal server error 500. I've debugged this issue and everything seems to be in order (if you check request variable and compare it fuctioning static ones) before sending request to the web service.
Any help or ideas would be appriciated.

Edit More info:

Just checked out failed request logs and it seems that every time I use a variable inside soap envelope some of the values that are received have changed:

<!-- this message is received at the other end -->
<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>
    <CreateSite xmlns="http://schemas.microsoft.com/sharepoint/soap/">
      <Url>http://spportal/site/autocreatedsite</Url>
      <Title>Title</Title>
      <Description>Description</Description>
      <Lcid>1033</Lcid>
      <WebTemplate>{FeatureGuid}#WT.ProjectSite</WebTemplate>
      <OwnerLogin>domain\spfarmadmin</OwnerLogin>
      <OwnerName>farmadmin</OwnerName>
      <OwnerEmail>farmadmin@domain.com</OwnerEmail>
      <PortalUrl></PortalUrl>
      <PortalName></PortalName>
    </CreateSite>
  </soap12:Body>
</soap12:Envelope>

<!-- if I use variable somewhere like url with the same value as above in this case  <Url>[%Variable:FullSiteUrl%]</Url>
It seem that the value of owner login has been altered  for some reason   <OwnerLogin>domainspfarmadmin</OwnerLogin>
So this is what I receive in IIS side
 -->

<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>
    <CreateSite xmlns="http://schemas.microsoft.com/sharepoint/soap/">
      <Url>http://spportal/site/autocreatedsite</Url>
      <Title>Title</Title>
      <Description>Description</Description>
      <Lcid>1033</Lcid>
      <WebTemplate>{FeatureGuid}#WT.ProjectSite</WebTemplate>
      <OwnerLogin>domainspfarmadmin</OwnerLogin>
      <OwnerName>farmadmin</OwnerName>
      <OwnerEmail>farmadmin@domain.com</OwnerEmail>
      <PortalUrl></PortalUrl>
      <PortalName></PortalName>
    </CreateSite>
  </soap12:Body>
</soap12:Envelope>


Dec 19, 2012 at 8:58 AM

Got it working. There were few problems, first of when defining Ownellogin as a wf variable it should have been in this form domain\\spfarmadmin.
Second you shouldn't use any splistitem directly they should redefined as a wfvariables and use them instead.