+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Service to Update Products

Service to Update Products

5 posts, 0 answered
  1. Geoffrey
    Geoffrey avatar
    24 posts
    Registered:
    05 Nov 2014
    28 May 2015
    Link to this post

    In my company's ecosystem Sitefinity is not the owner of 'products'.  As such we need to constantly update products in two systems when a products is updated or added to our catalog.

     What I would like to do is set up a project, not in the sitefinity website, that can create/update products in the sitefinity system.

     So far I have not been able to find any documentation that show how to do this.  How can I go about doing this?

  2. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    29 May 2015 in reply to Geoffrey
    Link to this post

    Hi Geoffrey,

    You can use the webservices to do these kind of actions. See: http://docs.sitefinity.com/for-developers-client-side-programming-and-web-services

    Another option is to create your own with e.g. WebAPI or ServiceStack.

    You could also check out Babaganoush, which comes with WebAPI services out of the box: http://babaganoush.falafel.com/documentation/tutorials/how-to-retrieve-data

    Best regards,
    Daniel

  3. Geoffrey
    Geoffrey avatar
    24 posts
    Registered:
    05 Nov 2014
    29 May 2015 in reply to Daniel Plomp
    Link to this post

    Thanks, your post was very helpful.

     The Babaganoush looks very interesting.  Though it seems to only support getting product information.  At this point I am not seeing any create/update.  Also it is something that seems to only work within the sitefinity project itself.

     When you say you can 'Another option is to create your own with e.g. WebAPI or ServiceStack.'  I am assuming that this is also creating a WebApi layer that resides inside of the Sitefinity project?  Ideally I would prefer not to have this limitation.  I would prefer to have a project that is not a part of my public website to handle this type of action.

     I guess I am used to working with API layers that allow me to reference dlls and then start using them.  Unless I am reading things incorrectly it seems that you have to go through your sitefinity project if you want to use their api.  If this is the case I find that very disheartening.

     

  4. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    30 May 2015 in reply to Geoffrey
    Link to this post

    Hi Geoffrey,

    I see. Of course it is possible to access the WCF services from outside Sitefinity. I have a project running with this, but I think you could also look at the project from Tim Williamson. He created a REST Client for Sitefinity and shared the code on GitHub. That would be a more easier start then me trying to find the right code for you :)

    Check out: https://github.com/timw255/timw255.Sitefinity.RestClient and let me know if that gives you an idea on how to solve your problem?

    Best,
    Daniel

  5. Geoffrey
    Geoffrey avatar
    24 posts
    Registered:
    05 Nov 2014
    01 Jun 2015 in reply to Daniel Plomp
    Link to this post

    Thanks again Daniel.

     

    Very helpful information.

5 posts, 0 answered