cancel
Showing results for 
Search instead for 
Did you mean: 

How can I call COPY web service from sharepoint in CE

abhijeet_mukkawar
Active Contributor
0 Kudos

Hello Experts,

I want to call COPY web service from SharePoint in CE application. Our version of CE is 7.2 SP5.

For executing the web service in one of the application, I was creating the provider system with COPY wsdl url from sharepoint server.

i.e. "http://<hostname:port>/_vti_bin/copy.asmx?wsdl"

However, it results in Unauthorized error and doesnt complete the provider system setup.

Error occurred while downloading WSIL file. Error message: Deserializing xml stream  "http://<hostname:port>/_vti_bin/copy.asmx?wsdl" failed.com.sap.engine.services.webservices.espbase.wsdl.exceptions.WSDLException: Invalid Response Code: (401) Unauthorized. The requested URL was:"Connect to  "http://<hostname:port>/_vti_bin/copy.asmx?wsdl", used user to connect: userid"

 

Has anyone worked on similar scenario ? any help is appreciated.

-Abhijeet

Accepted Solutions (1)

Accepted Solutions (1)

hynek_petrak
Active Participant
0 Kudos

Hello Abhijeet, then use the "In Private" browsing of Internet Explorer, Incognito of Google Chrome or Private Window of Firefox to test the credentials. Windows integrated authentication shall not be triggered in the private mode. Hynek

abhijeet_mukkawar
Active Contributor
0 Kudos

It works fine with "InPrivate" browsing also. Doesnt ask for userid/password.

Does the user need any special permissions for accessing the wsdl ?

-Abhijeet

hynek_petrak
Active Participant
0 Kudos

Can you review your IIS log files and see, how do you authenticate to get your WSDL, when you access from Internet Explorer ("In Private") and compare it with the moment, when you go from within CE?

The log files are located ususaly here: (System Drive):\WINDOWS\system32\LogFiles

Eventually past the log file lines here.

abhijeet_mukkawar
Active Contributor
0 Kudos

Thanks Hynek for your reply.

Unfortunately we dont hvae access to SharePoint server. But, I doubt if there will be any log there as the error is traced correctly on CE server.

Another finding is that we also couldnt execute the web service from WSNavigator in CE. This leads to do some investigation around authentication mechanism used in SharePoint, and we are doing that for the moment.

-Abhijeet

hynek_petrak
Active Participant
0 Kudos

Any news?

abhijeet_mukkawar
Active Contributor
0 Kudos

Hi Hynek,

finally implemented the the scenario using APIs. We faced issue of NTLM authentication on sharepoint side and as there was no support from sharepoint team, had to manage some solution entirely on our own.

http://scn.sap.com/docs/DOC-51735

Thanks for your help.

-Abhijeet

Answers (1)

Answers (1)

hynek_petrak
Active Participant
0 Kudos

Is your technical user authorised to access the resource?

Copy the URL into a web browser (Internet Explorer) and use the technical user credentials to authenticate. Do you get the same error?

abhijeet_mukkawar
Active Contributor
0 Kudos

When tried from browser it opens up the WSDL as sharepoint is an intranet and windows AD takes care of SSO..

-Abhijeet