Skip to main content
Nintex Community Menu Bar

Call web service not working

  • January 3, 2018
  • 5 replies
  • 45 views

Forum|alt.badge.img+4

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

Forum|alt.badge.img+8
  • January 3, 2018

Can you post the detail for the web service?


Forum|alt.badge.img+4
  • Author
  • Nintex Partner
  • January 3, 2018

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


Forum|alt.badge.img+11
  • Nintex Partner
  • January 3, 2018

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


Forum|alt.badge.img+8
  • January 3, 2018

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.


Forum|alt.badge.img+4
  • Author
  • Nintex Partner
  • January 23, 2018

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.