Microsoft Content Management Server - Connect to remote CMS Server

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > July 2004 > Connect to remote CMS Server





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Connect to remote CMS Server
John-Daniel Trask

2004-07-28, 6:09 pm

Hi everyone,

I'm writing a small winforms helper application to work with CMS and it
works fine when running on a local machine with CMS installed however I want
to also be able to connect to remote CMS installs (like how sitemanager
allows you to).

At the moment I'm creating the connection with the CmsApplicationContext().

Any ideas on how to do this would be greatly appreciated.

John-Daniel Trask
Intergen Ltd
john-danielt@intergen.co.nz


Angus Logan

2004-07-28, 6:09 pm

Hi John-Daniel,

What is the function is this helper application?

I am asking because:
- You cannot authenticate against another server because Publishing API
(PAPI) code needs to run on the CMS server locally.

- A workaround is to use a .NET WebService or .NET remoting to execute PAPI
code on the CMS Server.

Hope this helps.

Regards
--
________________________________________


Angus Logan (MCAD/MCDBA/MCP)
Lead Software Developer
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
________________________________________


"John-Daniel Trask" <john-danielt@intergen.co.nz> wrote in message
news:ezkrrRgcEHA.3040@TK2MSFTNGP10.phx.gbl...
> Hi everyone,
>
> I'm writing a small winforms helper application to work with CMS and it
> works fine when running on a local machine with CMS installed however I

want
> to also be able to connect to remote CMS installs (like how sitemanager
> allows you to).
>
> At the moment I'm creating the connection with the

CmsApplicationContext().
>
> Any ideas on how to do this would be greatly appreciated.
>
> John-Daniel Trask
> Intergen Ltd
> john-danielt@intergen.co.nz
>
>



Stefan [MSFT]

2004-07-28, 6:09 pm

Hi John,

SiteManager is a Http Client application that talks to the MCMS server using
the ASP files in the /MCMS virtual directory.
No application on a system that does not have MCMS installed locally can
access the MCMS server.

As Angus indicated you would have to create an application that works
similar as SiteManager - either by using a web service or by using .NET
remoting or calling ASP / ASP.NET pages.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"John-Daniel Trask" <john-danielt@intergen.co.nz> wrote in message
news:ezkrrRgcEHA.3040@TK2MSFTNGP10.phx.gbl...
> Hi everyone,
>
> I'm writing a small winforms helper application to work with CMS and it
> works fine when running on a local machine with CMS installed however I

want
> to also be able to connect to remote CMS installs (like how sitemanager
> allows you to).
>
> At the moment I'm creating the connection with the

CmsApplicationContext().
>
> Any ideas on how to do this would be greatly appreciated.
>
> John-Daniel Trask
> Intergen Ltd
> john-danielt@intergen.co.nz
>
>



John-Daniel Trask

2004-07-28, 6:09 pm

Cheers for the information

The app does run on a machine with MCMS but requires to connect to remote
systems in a hosting environment (just adds some extra reporting, etc over
site manager).

Thanks again

"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:uIkOwdkcEHA.4092@TK2MSFTNGP10.phx.gbl...
> Hi John,
>
> SiteManager is a Http Client application that talks to the MCMS server

using
> the ASP files in the /MCMS virtual directory.
> No application on a system that does not have MCMS installed locally can
> access the MCMS server.
>
> As Angus indicated you would have to create an application that works
> similar as SiteManager - either by using a web service or by using .NET
> remoting or calling ASP / ASP.NET pages.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no

rights.
>
> MCMS FAQ:
>

http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
>

http://www.gotdotnet.com/community/...t+S
erver

> MCMS Whitepapers and other docs:
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
> --------------------------------
>
>
> "John-Daniel Trask" <john-danielt@intergen.co.nz> wrote in message
> news:ezkrrRgcEHA.3040@TK2MSFTNGP10.phx.gbl...
> want
> CmsApplicationContext().
>
>



Stefan [MSFT]

2004-07-28, 6:09 pm

Hi John,

as indicated that does not matter.
PAPI only can connect to the local server. There is no way to connect to a
remote server using MCMS methods.
If both servers are connected to the same database then this might be what
you are looking for: connect to the local server and it will also impact the
other server.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"John-Daniel Trask" <john-danielt@intergen.co.nz> wrote in message
news:#A9Bu#ncEHA.4032@TK2MSFTNGP11.phx.gbl...
> Cheers for the information
>
> The app does run on a machine with MCMS but requires to connect to remote
> systems in a hosting environment (just adds some extra reporting, etc over
> site manager).
>
> Thanks again
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:uIkOwdkcEHA.4092@TK2MSFTNGP10.phx.gbl...
> using
> rights.
>

http://download.microsoft.com/downl...03-9272-2404e92
bb76a/MCMS+2002+-+(complete)+FAQ.htm
>

http://www.gotdotnet.com/community/...t+S
erver

it[vbcol=seagreen]
I[vbcol=seagreen]
sitemanager[vbcol=seagreen]
>
>



Angus Logan

2004-07-28, 6:09 pm

Hi Stefan,

Is it be possible to programattically change the Database a MCMS Instance is
connected to?

This may help John-Daniel because he could setup a MCMS server just to
service his application + other applications changing the db connection when
it starts and changing the db connection back when it finishes....

Cheers

--
________________________________________


Angus Logan (MCAD/MCDBA/MCP)
Lead Software Developer
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
________________________________________


"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:uTOj1jucEHA.2944@TK2MSFTNGP11.phx.gbl...
> Hi John,
>
> as indicated that does not matter.
> PAPI only can connect to the local server. There is no way to connect to a
> remote server using MCMS methods.
> If both servers are connected to the same database then this might be what
> you are looking for: connect to the local server and it will also impact

the
> other server.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no

rights.
>
> MCMS FAQ:
>

http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
>

http://www.gotdotnet.com/community/...t+S
erver

> MCMS Whitepapers and other docs:
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
> --------------------------------
>
>
> "John-Daniel Trask" <john-danielt@intergen.co.nz> wrote in message
> news:#A9Bu#ncEHA.4032@TK2MSFTNGP11.phx.gbl...
remote[vbcol=seagreen]
over[vbcol=seagreen]
can[vbcol=seagreen]
..NET[vbcol=seagreen]
>

http://download.microsoft.com/downl...03-9272-2404e92
> bb76a/MCMS+2002+-+(complete)+FAQ.htm
>

http://www.gotdotnet.com/community/...t+S
erver

> it
however[vbcol=seagreen]
> I
> sitemanager
>
>



Stefan [MSFT]

2004-07-28, 6:09 pm

Hi Angus,

by backup-restore of the connection string registry key and programmatically
restarting IISADMIN and AESecurityServer this could be done.
Not with any MCMS API.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"Angus Logan" <angus_logan@data3.com.au> wrote in message
news:uXNHz4ucEHA.2908@TK2MSFTNGP10.phx.gbl...
> Hi Stefan,
>
> Is it be possible to programattically change the Database a MCMS Instance

is
> connected to?
>
> This may help John-Daniel because he could setup a MCMS server just to
> service his application + other applications changing the db connection

when
> it starts and changing the db connection back when it finishes....
>
> Cheers
>
> --
> ________________________________________

>
> Angus Logan (MCAD/MCDBA/MCP)
> Lead Software Developer
> Microsoft Application Solutions
> Data#3 Limited
> E angus_logan@data3.com.au
> BLOG www.anguslogan.com
> ________________________________________

>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:uTOj1jucEHA.2944@TK2MSFTNGP11.phx.gbl...
a[vbcol=seagreen]
what[vbcol=seagreen]
> the
> rights.
>

http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
>

http://www.gotdotnet.com/community/...t+S
erver

> remote
> over
server[vbcol=seagreen]
> can
works[vbcol=seagreen]
> .NET
>

http://download.microsoft.com/downl...03-9272-2404e92
>

http://www.gotdotnet.com/community/...t+S
erver

and[vbcol=seagreen]
> however
>
>



John-Daniel Trask

2004-07-29, 7:50 am

Thanks - that is a good idea :-)

"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:umGb$CvcEHA.712@TK2MSFTNGP11.phx.gbl...
> Hi Angus,
>
> by backup-restore of the connection string registry key and

programmatically
> restarting IISADMIN and AESecurityServer this could be done.
> Not with any MCMS API.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no

rights.
>
> MCMS FAQ:
>

http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
>

http://www.gotdotnet.com/community/...t+S
erver

> MCMS Whitepapers and other docs:
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
> --------------------------------
>
>
> "Angus Logan" <angus_logan@data3.com.au> wrote in message
> news:uXNHz4ucEHA.2908@TK2MSFTNGP10.phx.gbl...
Instance[vbcol=seagreen]
> is
> when
to[vbcol=seagreen]
> a
> what
impact[vbcol=seagreen]
>

http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
>

http://www.gotdotnet.com/community/...t+S
erver

etc[vbcol=seagreen]
> server
locally[vbcol=seagreen]
> works
no[vbcol=seagreen]
>

http://download.microsoft.com/downl...03-9272-2404e92
>

http://www.gotdotnet.com/community/...t+S
erver

> and
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com