locked
start remote service by manifest RRS feed

  • Question

  • Is there a way to remotely (from a different DSS node) load a manifest (which resides on the local machine) programmatically?

    Thanks.
    Wednesday, May 2, 2007 3:21 PM

Answers

  • Yap. The ManifestLoader service can accept an Insert DSSP operation, which is basically a ManifestType instance. All you have to do is create a ServiceForwarder<> given the manifest loader uri of the remote node, and send it the Insert. To send it the right contents you can manually deserialize the local manifest file, into a ManifestType instance, or you can use the remote ManifestLoaderClient service and send it a HTTP uri, pointing to the local file, from the viewpoint of the local node:

     

    1) assuming you have a file on your local machine, at \samples\config\manifestexample.xml

    2) you started a node on the local pc at http port 50000

    3) then the URI that will provide the contents to your manifest to any remote node (verify by using your web browser) is:

        http://localmachine:50000/mountpoint/samples/config/manifestexample.xml

     

    The second approach, using the ManifestLoaderClientService is preferred. Our VS help should show all the operation exposed under the Microsoft.Dss.Services.ManifestLoaderClient

     

    thanx

     

    g

    Wednesday, May 2, 2007 4:18 PM
  • Yes, the ManifestLoaderClient service supports exactly this. You can either set up a partnership to the ManifestLoaderClient service as described in [1] or set up a forwarder yourself when your service is running.

     

    You can find more information about manifests in general at [1]

     

    Henrik

     

    [1] http://msdn2.microsoft.com/en-us/library/bb417287.aspx

    Wednesday, May 2, 2007 4:46 PM

All replies

  • Yap. The ManifestLoader service can accept an Insert DSSP operation, which is basically a ManifestType instance. All you have to do is create a ServiceForwarder<> given the manifest loader uri of the remote node, and send it the Insert. To send it the right contents you can manually deserialize the local manifest file, into a ManifestType instance, or you can use the remote ManifestLoaderClient service and send it a HTTP uri, pointing to the local file, from the viewpoint of the local node:

     

    1) assuming you have a file on your local machine, at \samples\config\manifestexample.xml

    2) you started a node on the local pc at http port 50000

    3) then the URI that will provide the contents to your manifest to any remote node (verify by using your web browser) is:

        http://localmachine:50000/mountpoint/samples/config/manifestexample.xml

     

    The second approach, using the ManifestLoaderClientService is preferred. Our VS help should show all the operation exposed under the Microsoft.Dss.Services.ManifestLoaderClient

     

    thanx

     

    g

    Wednesday, May 2, 2007 4:18 PM
  • Yes, the ManifestLoaderClient service supports exactly this. You can either set up a partnership to the ManifestLoaderClient service as described in [1] or set up a forwarder yourself when your service is running.

     

    You can find more information about manifests in general at [1]

     

    Henrik

     

    [1] http://msdn2.microsoft.com/en-us/library/bb417287.aspx

    Wednesday, May 2, 2007 4:46 PM