0

I was trying to access item using getitem method from SOAP service.

Sitecore.Data.Items.Item item = Sitecore.context.Database.GetItem(<ID>)

But Item is null. I tried to fetch using Id and path also. And checked the connection strings as well. Does the SOAP service need to have any special permissions to fetch the item? Do I have to check any other things why SOAP service is not able to search.

1

My guess here would be that the SOAP service execution doesn't trigger Sitecore's http request pipeline which are responsible to resolve the information which are normally available through the Sitecore.Context static class - nor does this normally what the developers should use to expose an API endpoint in Sitecore web application.

Instead of SOAP service, you should look in the following options if you're not tied to SOAP service approach:

|improve this answer|||||
  • ok....I will check on this....I am working on Sitecore 7.2 version. Hope it supports. – user8927358 Nov 27 '18 at 12:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.