Thanks Tommy,

Do you have any good examples of using a webservice to connect to lists. I have 
seen some examples where they have ran into permission issues as well using web 
services.

Regards,

Trent

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tommy Segoro
Sent: Thursday, 13 November 2008 11:43 AM
To: [email protected]
Subject: RE: [OzMOSS] Sharepoint Object Modal to server 2

Correct. I was trying to do exactly the same thing and I couldn't because the 
Sharepoint object model won't allow you to connect to a server outside your 
farm even though the developer has access to that Sharepoint site.

eg. I'm logged in as COMPANY\Tommy.Segoro to a PC named PC-01 that is part of 
COMPANY domain. I can't access http://intranet  through the object model even 
though my COMPANY\Tommy.Segoro username has a site collection admin access to 
it simply because http://intranet lives on a different farm than PC-01.

It makes sense though, otherwise I can connect to anyone's Sharepoint site 
using the object model.

So yes, we have to use web service to do this.

________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Brendan Law [EMAIL 
PROTECTED]
Sent: Thursday, 13 November 2008 9:23 AM
To: [email protected]
Subject: RE: [OzMOSS] Sharepoint Object Modal to server 2
I think that you can only use the object model to access web apps within the 
same farm...  (Correct me if I'm wrong devs)  You may have to bite the bullet 
here and use the web services.

- Brendan

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Brown
Sent: Thursday, 13 November 2008 11:20 AM
To: [email protected]
Subject: RE: [OzMOSS] Sharepoint Object Modal to server 2

Hi Trent,

Really silly question, but can Server2 ping Server1? If so, can it connect to 
Server1 via telnet on port 80? (start->run->cmd->telnet server1 80)?

>From the look of the error message, it's more of a connectivity issue that 
>security/authentication/authorization/permissions.

Cheers,

Daniel

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Trent Allday
Sent: Thursday, 13 November 2008 10:42 AM
To: [email protected]
Subject: [OzMOSS] Sharepoint Object Modal to server 2

Hi,

Hoping someone can help me out here after endless googling.

I have two sharepoint MOSS environments (2 separate servers) both are on the 
same internal network using the same Active Directory.
I am trying to lookup a sharepoint list on server 1 from server 2's sharepoint 
site. Below is the code snippet from the webpart on server 2.

Using mysite As New SPSite("http://server1/";)

            Using ElevatedSite As SPWeb = mysite.OpenWeb()

                Dim List As SPList = ElevatedSite.Lists("Associations")

                Dim query As SPQuery = New SPQuery()


                Dim items As SPListItemCollection = List.GetItems(query)

                  'print first column of first row
                
HttpContext.Current.Response.Write(items(0).GetFormattedValue("Title"))

                ElevatedSite.AllowUnsafeUpdates = False

            End Using

        End Using

I am getting the following error:
The Web application at http://server1  could not be found. Verify that you have 
typed the URL correctly. If the URL should be serving existing content, the 
system administrator may need to add a new request URL mapping to the intended 
application.

I have tried chaning the identity user for the application pool on server 2 but 
has failed to do anything. Maybe the identity user doesn't have permissions to 
server1 db, but from I can see the user should!??

I could try using web services but I saw articles on the net with perople 
experiencing issue with that aswell...

If anybody could shed some light on this it would be great.

Regards,

Trent

------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.
Powered by mailenable.com
------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.
Powered by mailenable.com

________________________________
This email is intended for the named recipient only. The information contained 
in this message may be confidential, or commercially sensitive. If you are not 
the intended recipient you must not reproduce or distribute any part of the 
email, disclose its contents to any other party, or take any action in reliance 
on it. If you have received this email in error, please contact the sender 
immediately and please delete this message completely from any systems. 
Confidentiality and legal privilege are not waived or lost by reason of 
mistaken delivery to you.
------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.
Powered by mailenable.com
------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.
Powered by mailenable.com



------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.

Powered by mailenable.com

Reply via email to