Call web service not working

  • 3 January 2018
  • 5 replies
  • 6 views

Badge +3

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


5 replies

Badge +8

Can you post the detail for the web service?

Badge +3

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>
      <m:SourceUrl>https://sharepoint.konicaminolta.co.uk/hr_onboarding/Templates/NewOfferLetter.docx</m:SourceUrl>
      <m:DestinationUrls>
        <m:string>https://sharepoint.konicaminolta.co.uk/hr_onboarding/EmployeeOffer/Forms/{ItemProperty:Name}_OfferLetter.docx</m:string>
      </m:DestinationUrls>
    </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

Userlevel 4
Badge +11

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

Badge +8

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.

Badge +3

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.

Reply