locked
Accessing WinRM from a Remote Java application RRS feed

  • Question

  • I try to connect to WinRM from a remote Java application. My final goal is to access (and remotely command) Powershell v2 using WinRM.

    I found some Java implementation of WS-Man, but they all seems to need WSDL file to generate stub proxies.

    Where could I find WSDL for WinRM / Remote Powershell?
    Monday, January 18, 2010 6:28 PM

Answers

  • **Not a programmer**
    A few links for you to check out:
    http://blogs.msdn.com/powershell/archive/2009/06/23/powershell-remoting-protocol-documentation-available.aspx
    http://blogs.msdn.com/powershell/archive/2010/01/07/how-objects-are-sent-to-and-from-remote-sessions.aspx

    If you're going to try to use something like:
    Java->WS-Man for Java->network->WS-Man for Windows->PowerShell via the WS-Man API

    I think you'll be out of luck.

    You may be able to do:
    Java->WS-Man for Java->network->WS-Man for Windows->PowerShell via the command-line powershell.exe
    • Proposed as answer by Marco Shaw Tuesday, January 19, 2010 3:53 PM
    • Marked as answer by Marco Shaw Monday, January 25, 2010 2:19 AM
    Monday, January 18, 2010 6:56 PM

All replies

  • **Not a programmer**
    A few links for you to check out:
    http://blogs.msdn.com/powershell/archive/2009/06/23/powershell-remoting-protocol-documentation-available.aspx
    http://blogs.msdn.com/powershell/archive/2010/01/07/how-objects-are-sent-to-and-from-remote-sessions.aspx

    If you're going to try to use something like:
    Java->WS-Man for Java->network->WS-Man for Windows->PowerShell via the WS-Man API

    I think you'll be out of luck.

    You may be able to do:
    Java->WS-Man for Java->network->WS-Man for Windows->PowerShell via the command-line powershell.exe
    • Proposed as answer by Marco Shaw Tuesday, January 19, 2010 3:53 PM
    • Marked as answer by Marco Shaw Monday, January 25, 2010 2:19 AM
    Monday, January 18, 2010 6:56 PM
  • Hi,

    This is really a Java problem. Please initial a post in the Java forum to get more information.

    Thanks.


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, January 25, 2010 2:05 AM
  • Hi there Kridek,

    Did you manage to get any further with this ? I'm interested in accessing the WSDL from a Linux machine and found this post of yours. Would be very interested in anything you've found. Are you discussing this in another forum? If so can you please send a link? Thanks.


    Ameer.
    Sunday, February 7, 2010 8:28 AM