I'm herewith inking few options how to consume services in your visual Web part. I hope the readers are aware of the difference between a webpart and a visual web part. Lets assume we need to consume a ticketing service which might be coded in .NET or Java. The underlying architecture of web services are same. If it is a .NET service, we would require WSDL files to know the type of the services. If it is a Java Web Service, we could read the service file to know the method signatures and type of service. Now let us suppose Cinema sites like PVR want to extend service for booking tickets. The service would be ready in booking modes. Host your service in Web Server. .NET developers would prefer IIS7.0. Now Microsoft provides BDC to interface and consume this service.
2. Getting Hands dirty:
1. Currently, let us suppose you would like to track changes (Add New/ Edit Existing) items.
2. Note that there could also be further actions defined based on your requirement.
- First and the foremost, Create a Custom list
- Define WorkFlow Actions
- Create a SharePoint Workflow
- Create a WorkFlow on "Announcements"
1. First make use of the SiteCollection where you have the required “Announcements” on the web page has to be made.
2. Define a SharePoint workflow to listen to changes done for "Announcement"
3. Let us make use of SharePoint2010 designer. Open your destination SiteCollection where you need to show all the Site Collection's. This would belong to the same FARM/ same WFE (Web Front End). I would currently assume all the SiteCollections are under the same FARM.
4. You now have to create a workFlow on SharePoint's "Announcements" in the current SiteCollection.
5. WorkFlow Actions: Now set the actions to be performed by your workflow.
6. Save and publish the Workflow.
7. The custom list would have the data read from the "Announcements".
-YUVI
No comments:
Post a Comment