Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Problem with custom webparts running asychronous procedure

  Asked By: Varsha Gupta         Date: Apr 05, 2010      Category: Sharepoint      Views: 173
 

Since it is not possible to access another site using
SharePoint Object Model, can we call a web service to
get file in the asynchronous thread generated by the
RegisterWorkItemCallback. I am interested in the
SPFile .OpenBinary() method as a Web Service call.

This Web Service call would of course be to the same
IIS Server, so is there a way to eliminate the SOAP
message to the web service, and create an AppDomain
that would accomplish the same result from within this
created thread.

Can anyone help me out?

Tagged:              

 

2 Answers Found

 
Answer #1       Answered By: Cecil Mckenzie          Answered On: Apr 05, 2010       

If all you want is the file  contents, it might be easier to simply make an HTTP
request to the server  for the file in question...

 
Answer #2       Answered By: Jaclyn Gordon          Answered On: Apr 05, 2010       

Why do you say you can not access  another site  using the WSS object
model? You can bind to and access other sites assuming the account that
is accessing the other site has the appropriate permissions.

 
Didn't find what you were looking for? Find more on Problem with custom webparts running asychronous procedure Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].