Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Can i call a webservice in sharepoint

  Asked By: Sekhar    Date: Mar 28    Category: Sharepoint    Views: 2473

I have a doubt, whether can i create a webpart in a top level site to display
data from one of the database tables and display that data in the portal site
through webservice.

Any idea or good links of how to create and call webservice from sharepoint
site to a sharepoint portal page.

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Sharonda Mcfarland     Answered On: Mar 28

I have to ask, why would you use web services when you're building a web
part and displaying information from the same portal? Just use the object
model, it's much faster.

I also hope when you say "display data  from one of the database  tables"
you're not talking about SharePoint databases.

 
Answer #2    Answered By: Cory Brooks     Answered On: Mar 28

Actually i am doing my masters project on Corporate Communication and supply
chain management using sharepoint  and biztalk server.

So in our application we have a top  level website which acts as a store and
portal as the head office for the store, and the thing is that store employees
should view the products info in the store from the store db products table and
if certain product is less than 3 or 4 it should inform to the head office to
update that product with certain quantity and that should happen automatically
so thats why i was thinking of webservice.

Hope i am clear with what i am going to do and can u suggest some ideas for
this scenario to work.

 
Answer #3    Answered By: Ruth George     Answered On: Mar 28

Thank you, your explanation of what you're doing is clear. I still don't see
why you would choose web services over the object model though. In any case,
to answer your original question you would just create  a reference to the
web service in your Web part just like you would any web service in any
program and use them as documented in both the SharePoint SDK and the Visual
Studio documentation on consuming web services.

 
Didn't find what you were looking for? Find more on Can i call a webservice in sharepoint Or get search suggestion and latest updates.




Tagged: