cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Call web service not working

I have a workflow that uses a web service call "copyitemtolocal".

The workflow completes with no error but the document doesn't copy from one site to another.

Both sites sit under the same Web application, under the same Sub-Site, has anyone come across this issue?, it's starting to baffle me.

Cheers

Marc

Labels: (1)
Reply
5 Replies
Workflow Hero

Re: Call web service not working

Can you post the detail for the web service?

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Call web service not working

Hi Roger

I am using the following web service call:

https://uk01spf2.bgb.kme.intern/_vti_bin/copy.asmx 

<?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/">
  <soap:Header>
  </soap:Header>
  <soap:Body>
    <m:CopyIntoItemsLocal>
      <mSmiley FrustratedourceUrl>https://sharepoint.konicaminolta.co.uk/hr_onboarding/Templates/NewOfferLetter.docx</mSmiley FrustratedourceUrl>
      <mSmiley Very HappyestinationUrls>
        <m:string>https://sharepoint.konicaminolta.co.uk/hr_onboarding/EmployeeOffer/Forms/{ItemProperty:Name}_OfferLetter.docx</m:string>
      </mSmiley Very HappyestinationUrls>
    </m:CopyIntoItemsLocal>
  </soap:Body>
</soap:Envelope>

If I click on the link https://uk01spf2.bgb.kme.intern/_vti_bin/copy.asmx outside of SharePoint it brings up the correct web page.

It resolves to the address https;//sharepoint.konicaminolta.co.uk/r_onboarding.

I have tried using the original address and the address that it resolves to but still no joy.

Regards

Marc

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Call web service not working

Hi,

In my opinion, you don't need the "/Forms" in your destination url, Forms folder is usually a hidden folder where SharePoint save forms, so I don't think it's the correct place where you want to copy the document..

Let me know if that's the issue!

Giacomo

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Call web service not working

If you open the library in explorer view you should be able to see the contents of the Forms folder. Might be that the docs are being copied there but those wouldn't show in the web front end view.

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Call web service not working

Thanks for your help, I ended up going down a more simple route due to Group Policy permission etc.

I didn't need a Web service call, in the end I simply did a "copy item" as it was in the same SP site.

0 Kudos
Accept as Solution Reply