The implementation of RunProgramInGuest of VIX using the vSphere Web Services SDK?

Hello

A few months ago I developed a python API for VIX, but as I needed to extend the functionality of this API (performance monitoring, host management, etc.) I moved the vSphere Web Services SDK.

However, I did find a way to implement some comments VIX as LoginInGuest or RunProgramInGuest functions using only the Web Services SDK.

Is there a way to do this? I thought that each function VIX has been translated internally to a soap request, but now I think that is not the case for these functions of comments, if so, how VIX inwardly does them?

Thanks for your help!

Sebastian Tello

Currently, if you must implement specific comments operations running a specific script/application or by connecting to a guest, you must use the VIX API. This feature is not currently exposed in the vSphere API, you will need to use a combination of both, until VMware them integrates in the vSphere API core. For more details on the future of VIX, take a look at this blog post - http://www.virtuallyghetto.com/2010/11/what-is-vmware-vix-api-and-its-future.html

Tags: VMware

Similar Questions

  • What is the difference between "vShpere SDK ro Perl"and "vSphere Web Services SDK (for Java or c#)"?

    Hello world! I'm new to "VMware vSphere API", and I have a question to ask you to help:

    What is the difference between "vShpere SDK ro Perl"and "vSphere Web Services SDK (for Java or c#)"?

    -What are the different programming language? Is there another difference?

    I'm looking forward to your reply.

    Thank you!

    If you are new on the VMware API/SDK, highly recommend you take a look at the following: Getting Started with vSphere SDK - Update for SDK 4.1 release

    vSphere SDK for Perl is just one of the many client SDK for vSphere API that is flush with vcenter times and ESX (i) as a standard Web service.

    vSphere SDK for Java - SDK Java to vSphere API for Java developers

    vSphere SDK for Perl - Perl SDK for vSphere API for Perl developers

    vSphere SDK for c# - c# SDK for vSphere API for c# developers

    PowerCLI - PowerShell SDK for vSphere API for developers of Powershell

    I hope that makes a bit more sense

    =========================================================================

    William Lam

    VMware vExpert 2009,2010

    VMware VCP3, 4

    VMware VCAP4-DCA

    VMware scripts and resources at: http://www.virtuallyghetto.com/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • With regard to the use of the web service sdk web client SDK

    Hello

    I could run the java program of the Web SDK service, independently, but how what I call web client SDK.

    Because it requires changes in environmental variables (AXIS, WBEM vars etc.) and what are all the eclipse changes required to do this?

    Help, please. Also, if you could suggest any web client sdk sample, call web service sdk, it would be a great help.

    Thank you!

    It's covered in the SDK samples, see docs/samples-doc/vsphereviews.html#vsphere-ui and samples/vsphereviews/vsphere-wssdk-provider

  • Impossible to activate the HP Web services for my HP Laserjet 200 MPF M276nw color

    Kindly help, I tried to update the firmware, but still my web services will not turn on.

    RGS

    G

    Hi GayleneC,

    Thank you for the update and additional information.  I really appreciate it.

    You indicated that you tried to update the firmware, I wonder because the printer is not connecting to web services that is may not have logged in to check the updates of the firmware.  I have included two links, one is for the Windows of HP LaserJet Pro Series Firmware Update Utility version , the other is for the Mac version of the HP LaserJet Pro Series Firmware Update Utility. Please choose your operating system and we will try and update the firmware without using the front panel of the printer.

    After you run the firmware update utility, please disable IPv6 wireless via built-in web server.  Please follow the steps below:

    1. To open the HP embedded Web server, type the IP address of product in a Web browser address line. When it opens, it should look like the screenshot below.

    2. Please click on the 'Network' tab as highlighted in the screenshot above.

    3. Please click on 'Advanced' in the side menu on the left as indicated above. Please disable IPv6 and click 'apply '.

    4. Please click on the "HP Web Services" tab.

    5. Please click on the button "activate". Print the newsletter of Web Services.

  • Unable to connect to the VMware web service: invalid key file

    Hello

    We have a CPO 2.3.1 who refuses to connect to vCenter (see newspaper excerpt at the end of the post).

    Recently, we changed our server vCenter (part of a 5.1 update).

    We tried the following workarounds:

    • Remove and add all the elements of the platform from the portal using services SE
    • Re import automation packs (4 of the Starter Edition v2.3.1.38)
    • Re on the keystore password

    No change at all...

    Do you have an idea on how to fix this?

    Thank you.

    Kind regards

    Stone

    || 235. 02/10/2012 15:46:21.667 | 6072. WCF: http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord ' gravity 'Error' = >http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.TraceHandledException.aspxhandling of an exception. . Tidal.Automation.Server.exe Tidal.Scheduler.Common.Communications.CommunicationException, Tidal.Scheduler.Common, Version = 2.3.0.0, Culture = neutral, PublicKeyToken = fba593b23cf207cdthe connection attempt (VMware vCenter Server (603) @VMware vCenter Server (603)) failed due to the following error: unable to connect to the VMware web service: Invalid keystore. to Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation (ServerAssistedOperation operation, target TargetConfiguration, RuntimeUserConfiguration runtimeUser)

    to Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter. & lt; & gt; c__DisplayClass1c. & lt; PerformServerAssistedOperation & gt; b__1b(IAdapter adapter)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction, haltingAction Boolean, Int32 remainingRetries)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction, Boolean haltingAction)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction)

    to Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Engine.Core.AdapterSystem.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Server.WebService.AdapterService.PerformServerAssistedOperation (operation ServerAssistedOperation)

    at SyncInvokePerformServerAssistedOperation (Object, Object [], Object [])

    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke (object instance, entered to Object [], Object [] & amp; outputs)

    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin (MessageRpc & amp; CPP)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5 (MessageRpc & amp; CPP)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31 (MessageRpc & amp; CPP)

    at System.ServiceModel.Dispatcher.MessageRpc.Process (Boolean isOperationContextSet)Tidal.Scheduler.Common.Communications.CommunicationException: the connection attempt (VMware vCenter Server (603) @VMware vCenter Server (603)) failed due to the following error: unable to connect to the VMware web service: invalid key file.

    at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation (ServerAssistedOperation operation, target TargetConfiguration, RuntimeUserConfiguration runtimeUser)

    to Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter. & lt; & gt; c__DisplayClass1c. & lt; PerformServerAssistedOperation & gt; b__1b(IAdapter adapter)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction, haltingAction Boolean, Int32 remainingRetries)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction, Boolean haltingAction)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction)

    to Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Engine.Core.AdapterSystem.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Server.WebService.AdapterService.PerformServerAssistedOperation (operation ServerAssistedOperation)

    at SyncInvokePerformServerAssistedOperation (Object, Object [], Object [])

    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke (object instance, entered to Object [], Object [] & amp; outputs)

    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin (MessageRpc & amp; CPP)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5 (MessageRpc & amp; CPP)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31 (MessageRpc & amp; CPP)

    at System.ServiceModel.Dispatcher.MessageRpc.Process (Boolean isOperationContextSet)

    || 236. 02/10/2012 15:46:21.667 | 6072. An exception that is not of type rhapsodyexception has been captured while a webmethod call was made.  This exception has been intercepted and generic.

    || 231: 02/10/2012 15:46:21.667 | 6072. EXCEPTION (Tidal.Scheduler.Common.Communications.CommunicationException): The connection attempt (VMware vCenter Server (603) @VMware vCenter Server (603)) failed due to the following error: unable to connect to the VMware web service: invalid key file.

    Stack trace: at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation (ServerAssistedOperation operation, target TargetConfiguration, RuntimeUserConfiguration runtimeUser)

    to Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter. <> c__DisplayClass1c. b__1b(IAdapter adapter)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction, haltingAction Boolean, Int32 remainingRetries)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction, Boolean haltingAction)

    at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction (Guid IDCarte, action AdapterAction)

    to Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Engine.Core.AdapterSystem.PerformServerAssistedOperation (operation ServerAssistedOperation)

    to Tidal.Automation.Server.WebService.AdapterService.PerformServerAssistedOperation (operation ServerAssistedOperation)

    at SyncInvokePerformServerAssistedOperation (Object, Object [], Object [])

    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke (object, Object [], Object [] entries & exits instance)

    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin (MessageRpc & CPP)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5 (MessageRpc & CPP)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31 (MessageRpc & CPP)

    at System.ServiceModel.Dispatcher.MessageRpc.Process (Boolean isOperationContextSet)

    You have an invalid key file because the HTTPS certification has changed. You must remove the old keystore file and restart the OPC Server and then reconnect / run something against vCenter.

    It is also possible to host Adatper framework/java problems I've seen often.

    If you need more information, you will need to prosecute TAC with your service contract please. Normally, we try to solve no newspapers on the forums.

    -Shaun Roberts

    CIAC/CPO support team leader

    [email protected] / * /.

  • Job-Run: SELFUPDATE, unable to connect to the ConsoleJobStepExecutorService Web service working system.

    Job system failed to connect to the ConsoleJobStepExecutorService Web service. Check the OMS's WebLogic Admin Server for any issues related to Web services configuration that could cause a connection failure.

    Natural logarithm of output

    Hello world.

    I am writing from Hungary, sorry for my bad English. You can read my problem above.

    I'm looking for:

    -Oracle Cloud control 12 c version 5

    -Extensibility / auto update / check updates

    -activity of employment-

    SELFUPDATE_201511111044141 race11 November 2015 10:44:14 GMT + 01:00SYSMANRefresh updates

    but the message: error log:

    Job system failed to connect to the ConsoleJobStepExecutorService Web service. Check the OMS's WebLogic Admin Server for any issues related to Web services configuration that could cause a connection failure.

    and nothing happened.


    I would like to download and install the microsoft agent x 64 driver.


    -I can't find anything on the the red message in the internet or in the google...

    -I'm still a beginner in Oracle...

    -MOS, proxy and the credentials are OK.


    Please help me,

    Thank you for your co-operation in advance

    László

    Hi Courtney lamas-Oracle

    First of all. Thank you very much for your help!

    Yesterday, I was able to find the answer to my problem:

    So:

    1. I used consol secure with sleeve and key_strength 2048 (because there were problems connecting my Chrome, IE11 or Firefox to the Weblogic administration Console and the https certificate)

    2. I refreshed DemoIDentity, jks with certificate of keystrength from 512 to 1024 due to the blocking of the browser.

    The solution:

    sure emctl console - portfolio -key_strength 1024

    Restart the WHO

    I've been careless.

    Everything works fine now.

    LACI

  • Integration with the secure web service IS deployed on EBS

    Hello experts,

    I have a REST webservice deployed to an Instance of the EBS. I try to call the web service using a mobile application in the ADF. However, the web service is secure and requires security settings to be sent in the request header.

    Anyone can recall or explain how I can add a custom header to the object of the application for the REST web service? Any help will be appreciated.

    Thank you

    Abhishek

    Hi Abhishek,

    You can do the following:

    String theUsername = "abc";

    String thePassword = "pass";

    String userPassword = theUsername + ': ' + thePassword.

    String encoding = new sun.misc.BASE64Encoder () .encode (userPassword.getBytes ());

    restServiceAdapter.addRequestProperty ("Authorization", "Basic" + coding);

    If you use Webservice DataControl, then automatically the connection information in the login form is injected into the webservice framework.

    Kind regards

    Deepak

  • Could not contact the Flickr web service

    In recent weeks, I am unable to upload pictures directly from LR on Flickr.

    The message I get:

    "Cannot update this collection.

    Could not contact the Flickr web service. Please check your Internet connection. »


    LR version 2015.1.1

    Generation 1032027


    Flickr Pro account.


    Any advice? I'm happy test the beta fix only if available.


    I used to use the plugin to Jeffrey, and it's (I think still is) a fantastic product. Again, having a built-in feature delivered with LR has won my heart.

    BTW: it seems that the issue is on the side of Flickr and relates to their limitation (IP based) network. I don't understand why they do it and why too drastic. Try again potentially additional native plugin LR Flickr could help.

    It was enough for me to activate VPN to route traffic through a server in San Francisco and it's all very well now. My original traffic was from London.

    Boring, but has less there is a workaround.

  • Specific VirtualMachine counters through the Web Services SDK

    Hello

    I'm developing a monitorapp in c# with the web services SDK.

    I am able to get a list of all the performance with the PerformanceManager counters.

    ObjectContent [oCont] is getPropertyContent ("PerformanceManager", "perfCounter", _serviceContent.perfManager);.

    I ask this directly to an ESX 4.

    The answer I'll be of return contains all of the available counters, but there is no division between the host and the virtual-counter Machine.

    For example, cpu.utilization is available for the host and not a VM.

    Is it possible to know somehow what counters are specific to vm?

    I am able to get object references managed virtual machines if that's any help...

    Thanks in advance!

    Glenn

    Hi Glenn,.

    The property "perfCounter" PerformanceManager fetch all of the counters that are available in the host or vCenter. It provides no mechanism to filter counters. In order to obtain the available counters specific to a managed entity (VM, host, etc.) you must use the QueryAvailablePerfMetric method. Calling this method against MOR of the virtual machine, you will get all the ID counter for this virtual machine.

    http://www.VMware.com/support/developer/VC-SDK/visdk41pubs/ApiReference/Vim.PerformanceManager.html#queryAvailableMetric

    I hope this helps!

    Neha

  • the closing force of the vSphere web client session after 10 minutes of inactivity.

    To meet the requirements of security, a user admin with a vCenter Server Appliance must

    the closing force of the vSphere web client session after 10 minutes of inactivity.

    That the administrator must do to meet the requirement?

    This much help

    Edit: var/lib/vmware/vsphere-client/webclient.properties, change session.timeout = 10

  • The OPA Web services return no values

    I tried to get the OPA web services to provide a decisive result, but it seems as if my values are not received correctly. I reduced my application to simple terms to see if I can get anything to come back, and maybe to see if someone can point out what is happening, or what Miss me.  The following transactions should bounce at least values, correct?

    Credits:

    Request:

    "< soapenv:Envelope xmlns:soapenv ="http://schemas.xmlsoap.org/soap/envelope/"xmlns:typ ="http://oracle.com/determinations/server/10.4/rulebase/assess/types">" "

    < soapenv:Header / >

    < soapenv:Body >

    < type: evaluate request >

    < type: global instance >

    < typ:attribute id = "applicationClass' type = 'text' deducted ="false"result-style ="single value"unknown-result-style ="single value"known-result-style ="single value">

    < typ:text - val > A < / typ:text - val > < / typ:attribute >

    < / typ: global instance >

    < / typ: evaluate request >

    < / soapenv:Body >

    < / soapenv:Envelope >

    Answer:

    "" < SOAP - ENV:Envelope xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:i18n ="http://www.w3.org/2005/09/ws-i18n" xmlns:typ = "http://oracle.com/determinations/server/10.4/rulebase/assess/types" >. "

    < SOAP - ENV:Header >

    < i18n:international >

    en_US < i18n: local > < / i18n: local >

    < i18n:tz > GMT-0400 < / i18n:tz >

    < / i18n:international >

    < / SOAP - ENV:Header >

    < SOAP - ENV:Body >

    < type: assessment / response >

    < type: global instance >

    < typ:attribute id = "applicationClass' type = 'text' deducted ="false">

    < typ:unknown - val / >

    < / typ:attribute >

    < / typ: global instance >

    < / typ: assess / answer >

    < / SOAP - ENV:Body >

    < / SOAP - ENV:Envelope >

    Specific:

    Request:

    "< soapenv:Envelope xmlns:soapenv ="http://schemas.xmlsoap.org/soap/envelope/"xmlns:typ ="http://oracle.com/determinations/server/10.4/DriverRoadtestEligibility_Excel/assess/types">" "

    < soapenv:Header / >

    < soapenv:Body >

    < type: evaluate request >

    < type: global instance >

    <! - you can enter the following 37 items in any order-->

    < typ:applicationClass type = "text" deducted = "false" result-style = "single value" unknown-result-style = "single value" known-result-style = "single value" >

    < typ:text - val > A < / typ:text - val >

    < / typ:applicationClass >

    < / typ: global instance >

    < / typ: evaluate request >

    < / soapenv:Body >

    < / soapenv:Envelope >

    Answer:

    "" < SOAP - ENV:Envelope xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:i18n ="http://www.w3.org/2005/09/ws-i18n" xmlns:typ = "http://oracle.com/determinations/server/10.4/DriverRoadtestEligibility_Excel/assess/types" >. "

    < SOAP - ENV:Header >

    < i18n:international >

    en_US < i18n: local > < / i18n: local >

    < i18n:tz > GMT-0400 < / i18n:tz >

    < / i18n:international >

    < / SOAP - ENV:Header >

    < SOAP - ENV:Body >

    < type: assessment / response >

    < type: global instance >

    < typ:applicationClass type = "text" deducted = "false" >

    < typ:unknown - val / >

    < / typ:applicationClass >

    < / typ: global instance >

    < / typ: assess / answer >

    < / SOAP - ENV:Body >

    < / SOAP - ENV:Envelope >

    Thank you

    It's very strange sound. It might be a problem caused by unnecessary attributes sent in the query. Try the following (generic example application).

    http://schemas.xmlsoap.org/SOAP/envelope/"xmlns:typ ="http://oracle.com/determinations/server/10.4/rulebase/assess/types">."

    A

    This application is the most correct for the following reasons:

    • You should not set the attributes type and deducted . These attributes are usually returned in the response and cannot be defined by the application.
    • You should not set the style of the result of an attribute that you provide the value of. It must always be returned in the response.

    That said, these points do not explain why the applicationClass value is returned as unknown. Perhaps the additional attributes in the query is triggering some bad server behavior of determinations which is the cause not to define the attribute.

    This regulation, if any, that you have associated with modules? You have any customization of the server determination or modules?

  • Connect to the HTTPS web service

    When you try to build the secure web service partner link (URL starts with https://...) I got an error about the lack of certificate? How to provide the cert file < I have a good, but do not know how to enter Web Logic server.

    http://download.Oracle.com/docs/CD/E12840_01/WLS/docs103/secmanage/identity_trust.html

  • Using a soap Web service

    Hello

    I want to use a soap Web service.

    So far, I tried (without success) wws and am now explore gSOAP (http://www.cs.fsu.edu/~engelen/soap.html)

    It generated classes with success and I don't get any errors displayed (I just added all generated classes in the src folder), but the generation fails with:

    [...]

    CC: C:/BB10NDK/host/win32 / x 86/usr/bin/ntoarm-ld caught signal 1
    make [2]: * [o.le - v7/hellocascades] error 1
    make [1]: * [release-all] error 2
    make: * [device] error 2

    no idea how I can get the code to compile?

    Or is - what someone else has experience using a Web SOAP with the NDK?

    I managed to build the project.
    has taken about four hours with two other C developers to get all libraries and files in place.
    I'll try to run a Web service, if it is all passed, I'll write a guide

  • Runtime error in workflow using the API Web service with a VC:VirtualMachine parameter

    Hello

    I took the example for the execution of a workflow using powershell via the site Web of Joerg Lew Web service API and changed to pass an input parameter to the name of the Virtual Machine.

    I have no error in powershell, but when I check the events for the workflow in Orchestrator I see it failed with the error "Validation error for the parameter"vm". It's using out of the box "Start virtual machine and wait" stream  Is a problem with a virtual machine name is paid as a string? I tried to use the full name of the virtual machines and the ID.  I have provided the code below.  Can someone help with how to get this working?

    $vcoWS = new-WebServiceProxy-VCO, VCO - Namespace - Uri of the class http://192.168.1.65:8280 / vmware-vmo-webcontrol/webservice? WSDL
    $workflows = $vcoWS.getWorkflowsWithName ("Start the virtual machine and wait", "vcoadmin", "vcoadmin")
    $workflow = $workflows [0]
    # print the input parameters
    $workflow.inParameters
    # generates the table with input parameters (WorkflowTokenAttribute - objects)
    $inparams = @)
    # fill in the table, an entry for each input parameter
    $inparams += new-Object - TypeName VCO. WorkflowTokenAttribute
    $inparams [0] .name = "VM".
    $inparams [0] .Guy = "VC:VirtualMachine."
    $inparams [0] .value = "vm-113.
    #... turns on and off (use $null on $inparams if the workflow has no input parameter
    #... und implement
    $workflowToken = $vcoWS.executeWorkflow ($workflow.id, $inparams, "vcoadmin", "vcoadmin")

    Thank you

    David

    Hi David,

    > game $inparams [0] = "VC:VirtualMachine".

    This means that the type of entry for this workflow is an object of type 'VC:VirtualMachine '. So, passing the name of the virtual machine would not work. The expected value for such an entry is the string representation of an object which, in the case of the vCO is a unique object identifier. The object id unique vCO looks like this:

    dunes://service.dunes.ch/CustomSDKObject?ID= "15.23.34.34/vm-590'&dunesName='VC:VirtualMachine".

    but you don't need to know this (technically, if you know the ip address of the vCenter and the id of the virtual machine can be built but is not a recommended practice).

    The right way to find the string representation of the object "VC:VirtualMachine" with the name you need to do a few more things. I'll do the example in java and it should be easy to turn into powershell.

    QueryResult result = vcoWS.find ("VC:VirtualMachine", "xpath:name = \" vm-113\ "", username, password);

    String stringObjectRepresentation = null;

    If (result.getTotalCount () > 0) {}

    FinderResult = result.getElements () FinderResult [0];

    stringObjectRepresentation = finderResult.getDunesUri ();

    }

    Thus, the stringValue should be attributed to the line:

    $inparams [0] .value = stringObjectRepresentation

    Hope it will help.

    Without doubt, Joerg would be able to illustrate this solution with powershell later ;-)

  • Could not get the native web service response to Oracle using a PL/SQL &lt; Message &gt; function &lt;! [CDATA [component "WS_CALC" must be said]] &gt; &lt; / Message &gt;

    Hi, we have a problem with oracle native web service access using a PL/SQL function. We are running out of ideas how to solve the problem. Someone would be so nice to take a look at our case. Thank you much in advance. Best regards, Smiljana

    CREATE TABLE for_web_info (some_hello_text VARCHAR2 (150), when_inserted DATE, we_are_from VARCHAR2 (30));

    INSERT INTO for_web_info VALUES ('HI everyone :-) ', SYSDATE, 'Ljubljana, Slovenia');

    CREATE OR REPLACE

    PACKAGE ws_calc AUTHID CURRENT_USER AS

    FUNCTION CalcProduct (a NUMBER by DEFAULT 1,

    b in on NUMBER,

    g NUMBER of OUTPUT)

    RETURN NUMBER;

    END ws_calc;

    /

    CREATE OR REPLACE

    PACKAGE ws_calc AS BODY

    FUNCTION CalcProduct (a NUMBER by DEFAULT 1,

    b in on NUMBER,

    g NUMBER of OUTPUT)

    RETURN NUMBER IS

    product NUMBER;

    BEGIN

    SELECT SUM (1) IN the for_web_info OF g;

    product: = a * b;

    RETURN any product;

    END;

    END;

    /

    Our two DBA done all the steps described in the manual Oracle® XML DB's Guide Developer, 11 g Release 2 (11.2), E23094-04, February 2014, section using Oracle DB native XML Web Services.

    Access us two wsdl with browser without problem and get two of them. We also receive web serivce response which databese of query table.

    http://our_db:8080 / orawsv? WSDL

    http://our_db:8080 / orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT? WSDL

    ---------------

    | First WSDL.

    ---------------

    <? XML version = "1.0"? >

    " < name definitions = targetNamespace"orawsv"=" http://xmlns.Oracle.com/orawsv "" "

    " xmlns =" http://schemas.xmlsoap.org/wsdl/ "

    ' xmlns:tns = ' http://xmlns.Oracle.com/orawsv "" "

    ' xmlns:soap = ' http://schemas.xmlsoap.org/WSDL/SOAP/ "

    " container = ' http://www.w3.org/2001/XMLSchema "

    " xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    " xsi: schemaLocation =" http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/"> ".

    < types >

    < xsd: Schema

    " targetNamespace = ' http://xmlns.Oracle.com/orawsv "" "

    elementFormDefault = "qualified" >

    < xsd: element name = "query" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: element name = "DDL_text" type = "xsd: String".

    minOccurs = "0" maxOccurs = "unbounded" / >

    < xsd: element name = 'query_text' >

    < xsd: complexType >

    < xsd:simpleContent >

    < xsd:extension base = "XSD: String" >

    < xsd: attribute name = "type" >

    < xsd:simpleType >

    < xsd:restriction base = "xsd:NMTOKEN" >

    < value xsd: Enumeration = "SQL" / >

    < value xsd: Enumeration = "XQUERY" / >

    < / xsd:restriction >

    < / xsd:simpleType >

    < / xsd: attribute >

    < / xsd:extension >

    < / xsd:simpleContent >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: Choice minOccurs = "0" maxOccurs = "unbounded" >

    < xsd: element name = "bind" >

    < xsd: complexType >

    < xsd:simpleContent >

    < xsd:extension base = "XSD: String" >

    < xsd: attribute name = "name" type = "xsd: String" / >

    < / xsd:extension >

    < / xsd:simpleContent >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: element name = "bindXML" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: all / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < / xsd: Choice >

    < xsd: element name = "null_handling" minOccurs = "0" >

    < xsd:simpleType >

    < xsd:restriction base = "xsd:NMTOKEN" >

    < value xsd: Enumeration = "DROP_NULLS" / >

    < value xsd: Enumeration = "NULL_ATTR" / >

    < value xsd: Enumeration = "EMPTY_TAG" / >

    < / xsd:restriction >

    < / xsd:simpleType >

    < / xsd: element >

    < xsd: element name = "max_rows" type = "positiveInteger" minOccurs = "0" / >

    < xsd: element name = "skip_rows" type = "positiveInteger" minOccurs = "0" / >

    < xsd: element name = "pretty_print" type = "xsd: Boolean" minOccurs = "0" / >

    < xsd: element name = "indentation_width" type = "positiveInteger" minOccurs = "0" / >

    < xsd: element name = "rowset_tag" type = "xsd: String" minOccurs = "0" / >

    < xsd: element name = "row_tag" type = "xsd: String" minOccurs = "0" / >

    < xsd: element name = "item_tags_for_coll" type = "xsd: Boolean" minOccurs = "0" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: element name = "queryOut" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: all / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < / xsd: Schema >

    < / types >

    < name of message = "QueryInput" >

    < name of part = element "body" = "tns:query" / >

    < / message >

    < name of the message 'XMLOutput' = >

    < name of part = element "body" = "tns:queryOut" / >

    < / message >

    < portType name = "ORAWSVPortType" >

    < operation name = "XMLFromQuery" >

    < input message = "tns:QueryInput" / >

    < output message = "tns:XMLOutput" / >

    < / operation >

    < / portType >

    < connection name = "ORAWSVBinding" type = "tns:ORAWSVPortType" >

    " < style: soap = transport = 'document' binding ' http://schemas.xmlsoap.org/SOAP/HTTP "/>

    < operation name = "XMLFromQuery" >

    " < soap: operation soapAction = ' http://our_db:8080 / orawsv "/>

    < input >

    < use of soap: body = "literal" / >

    < / Entry >

    < output >

    < use of soap: body = "literal" / >

    < / output >

    < / operation >

    < / binding >

    < service name = "ORAWSVService" >

    < documentation > Oracle Web Service < / documentation >

    < name of port = "ORAWSVPort" binding = "tns:ORAWSVBinding" >

    " < soap: address location = ' http://our_db:8080 / orawsv "/>

    < / port >

    < / service >

    < / definitions >

    ----------------

    | Second WSDL.

    ----------------

    <? XML version = "1.0"? >

    < name of definitions = "CALCPRODUCT."

    " targetNamespace = ' http://xmlns.Oracle.com/orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT "" "

    " xmlns =" http://schemas.xmlsoap.org/wsdl/ "

    ' xmlns:tns = ' http://xmlns.Oracle.com/orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT "" "

    " container = ' http://www.w3.org/2001/XMLSchema "

    ' xmlns:soap = ' http://schemas.xmlsoap.org/WSDL/SOAP/ ">

    < types >

    " < xsd: Schema targetNamespace = ' http://xmlns.Oracle.com/orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT "" "

    elementFormDefault = "qualified" >

    < xsd: element name = "SNUMBER-CALCPRODUCTInput" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: element name = "G-NUMBER-OUT" >

    < xsd: complexType / >

    < / xsd: element >

    < xsd: element name = "B-NUMBER-INOUT" type = "xsd: double" / >

    < xsd: element name = "A-NUMBER-IN" minOccurs = "0" maxOccurs = "1" type = "xsd: double" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: element name = "CALCPRODUCTOutput" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: element name = "RETURN" type = "xsd: double" / >

    < xsd: element name = "G" type = "xsd: double" / >

    < xsd: element name = "B" type = "xsd: double" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < / xsd: Schema >

    < / types >

    < name of message = "CALCPRODUCTInputMessage" >

    < name of part = "parameters" element = "tns:SNUMBER - CALCPRODUCTInput" / >

    < / message >

    < name of message = "CALCPRODUCTOutputMessage" >

    < name of part = "parameters" element = "tns:CALCPRODUCTOutput" / >

    < / message >

    < portType name = "CALCPRODUCTPortType" >

    < operation name = "CALCPRODUCT" >

    < input message = "tns:CALCPRODUCTInputMessage" / >

    < output message = "tns:CALCPRODUCTOutputMessage" / >

    < / operation >

    < / portType >

    < connection name = "CALCPRODUCTBinding".

    Type = "tns:CALCPRODUCTPortType" >

    " < style: soap = transport = 'document' binding ' http://schemas.xmlsoap.org/SOAP/HTTP "/>

    < operation name = "CALCPRODUCT" >

    < soap: operation

    soapAction = "CALCPRODUCT" / >

    < input >

    < soap body parts: = 'settings' use = "literal" / >

    < / Entry >

    < output >

    < soap body parts: = 'settings' use = "literal" / >

    < / output >

    < / operation >

    < / binding >

    < service name = "CALCPRODUCTService" >

    < documentation > Oracle Web Service < / documentation >

    < name of port = "CALCPRODUCTPort" binding = "tns:CALCPRODUCTBinding" >

    < address soap:

    " location = ' http://our_db:8080 / orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT "/>

    < / port >

    < / service >

    < / definitions >

    -----------------

    | SQL Developer |

    -----------------

    SET serveroutput ON

    -------------

    | First WS.

    -------------

    DECLARE

    V_SOAP_REQUEST XMLTYPE: = XMLTYPE (' <? xml version = "1.0"? > < env:Envelope xmlns:env = "http://www.w3.org/2002/06/soap-envelope " > < env:Body > < query xmlns = "http://xmlns.oracle.com/orawsv" > < type of the argument texte_requete = "SQL" > <!) ([CDATA [SELECT * FROM for_web_info WHERE the INSTR (UPPER (we_are_from),: e) > 0]] > < / query_text > < link name 'e' = > SLOVENIA < / bind > < false pretty_print > < / pretty_print > < / query > < / env:Body > < / env:Envelope > ');

    V_SOAP_REQUEST_TEXT CLOB: = V_SOAP_REQUEST.getClobVal ();

    V_REQUEST UTL_HTTP. REQ;

    V_RESPONSE UTL_HTTP. RESP;

    V_BUFFER VARCHAR2 (1024);

    URL VARCHAR2 (4000): = ' http://our_db:8080 / orawsv ';

    BEGIN

    V_REQUEST: = UTL_HTTP. BEGIN_REQUEST (URL = > URL, METHOD = > 'POST');

    UTL_HTTP. SET_AUTHENTICATION (R = > V_REQUEST, username = > 'OUR_U', PASSWORD = > 'OUR_P'); -not case-sensitive

    V_REQUEST. METHOD: = 'POST';

    UTL_HTTP. SET_HEADER (R = > V_REQUEST, NAME = > 'Content-Length', VALUE = > DBMS_LOB.) GETLENGTH (V_SOAP_REQUEST_TEXT));

    UTL_HTTP. WRITE_TEXT (R = > V_REQUEST, DATA = > V_SOAP_REQUEST_TEXT);

    V_RESPONSE: = UTL_HTTP. GET_RESPONSE (V_REQUEST);

    LOOP

    UTL_HTTP. READ_LINE (V_RESPONSE, V_BUFFER, TRUE);

    DBMS_OUTPUT. PUT_LINE (V_BUFFER);

    END LOOP;

    UTL_HTTP. END_RESPONSE (V_RESPONSE);

    EXCEPTION

    WHEN UTL_HTTP. END_OF_BODY THEN

    UTL_HTTP. END_RESPONSE (V_RESPONSE);

    END;

    anonymous block filled

    " <? xml version ="1.0"? > < envelope soap: xmlns:soap = ' http://www.w3.org/2002/06/SOAP-envelope ' > < soap: Body > < queryOut xmlns = " http://xmlns.Oracle.com/orawsv "> "

    < set of LINES > < ROW > < SOME_HELLO_TEXT > HI everybody :-) < / SOME_HELLO_TEXT > < WHEN_INSERTED > 03.10.14 < / WHEN_INSERTED > < WE_ARE_FROM > Ljubljana, Slovenia < / WE_ARE_FROM > < / ROW > < / rowset > < / queryOut > < / soap: Body > < / envelope soap: >

    --------------

    | Second WS.

    --------------

    DECLARE

    V_SOAP_REQUEST XMLTYPE: = XMLTYPE ("<?") XML version = "1.0"? > < soap envelope: xmlns:soap = "http://www.w3.org/2002/06/soap-envelope" > < soap: Body > < xmlns SNUMBER-CALCPRODUCTInput = ""http://xmlns.oracle.com/orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT"(> < A-NUMBER-IN > 2 < / A-NUMBER-IN > < B-NUMBER-INOUT > 3 < / B-NUMBER-INOUT > < R-NUMBER-OUT / > < / SNUMBER-CALCPRODUCTInput > < / soap: Body > < / SOAP: envelope > '); "

    V_SOAP_REQUEST_TEXT CLOB: = V_SOAP_REQUEST.getClobVal ();

    V_REQUEST UTL_HTTP. REQ;

    V_RESPONSE UTL_HTTP. RESP;

    V_BUFFER VARCHAR2 (1024);

    URL VARCHAR2 (4000): = ' http://our_db:8080 / orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT ';

    BEGIN

    V_REQUEST: = UTL_HTTP. BEGIN_REQUEST (URL = > URL, METHOD = > 'POST');

    UTL_HTTP. SET_AUTHENTICATION (R = > V_REQUEST, username = > 'OUR_U', PASSWORD = > 'OUR_P'); -not case-sensitive

    V_REQUEST. METHOD: = 'POST';

    UTL_HTTP. SET_HEADER (R = > V_REQUEST, NAME = > 'Content-Length', VALUE = > DBMS_LOB.) GETLENGTH (V_SOAP_REQUEST_TEXT));

    UTL_HTTP. WRITE_TEXT (R = > V_REQUEST, DATA = > V_SOAP_REQUEST_TEXT);

    V_RESPONSE: = UTL_HTTP. GET_RESPONSE (V_REQUEST);

    LOOP

    UTL_HTTP. READ_LINE (V_RESPONSE, V_BUFFER, TRUE);

    DBMS_OUTPUT. PUT_LINE (V_BUFFER);

    END LOOP;

    UTL_HTTP. END_RESPONSE (V_RESPONSE);

    EXCEPTION

    WHEN UTL_HTTP. END_OF_BODY THEN

    UTL_HTTP. END_RESPONSE (V_RESPONSE);

    END;

    anonymous block filled

    <? XML version = "1.0"? >

    " < envelope soap: xmlns:soap = ' http://www.w3.org/2002/06/SOAP-envelope/ ">

    < soap: Body >

    < soap: Fault >

    < Code: soap >

    < soap: value > SOAP: sender < / SOAP: value >

    < / Code: soap >

    entry processing < soap: reason > error < / SOAP: reason >

    < soap: detail >

    " < OracleErrors xmlns =" http://xmlns.Oracle.com/orawsv/faults "> "

    So OracleError >

    < ErrorNumber > ORA-19202 < / ErrorNumber >

    < message > <! [CDATA [error has occurred in the processing of XML]] > < / Message >

    < / OracleError >

    So OracleError >

    < ErrorNumber > ORA-06550 < / ErrorNumber >

    < message > <! [CDATA [line 1, column 24:]] > < / Message >

    < / OracleError >

    So OracleError >

    < ErrorNumber > PLS-00302 < / ErrorNumber >

    < message > <! [CDATA [component "WS_CALC" must be said]] > < / Message >

    < / OracleError >

    So OracleError >

    < ErrorNumber > ORA-06550 < / ErrorNumber >

    < message > <! [CDATA [line 1, column 7:]]

    [[PL/SQL: statement ignored]] > < / Message >

    < / OracleError >

    < / OracleErrors >

    < / Details: soap >

    < / soap fault: >

    < / soap: Body >

    < / envelope soap: >

    With reference APEX web service, the response is exactly the same and apex_web_service.make_request also work.

    Thanks again.

    The SOAP request is not correct.

    must be:

    So again, it does not solve the problem:

    -Which user you are using to authenticate on the other side?

    If it's another user the owner of the package, then of course you must grant the execute privilege appropriate to this user (and possibly one explicit SELECT on the table referenced too privilege).

Maybe you are looking for