In by vCO obecjts sdk via web services

Hello

I'm working on a PowerShell script that interacts with a workflow of vCO. I have no problems passing strings, but now I need to move an object in the inventory, a plan object vCAC is more precisely. But I can't understand how to include the SDK software-object information in the body of the Web request.

' $body = ' <-xmlns = execution context " http://www.VMware.com/VCO "> "

< Parameters >

< = 'description' type parameter name = "string" >

vCO < string > Hello, I am PS < / string >

< / parameter >

< name of parameter = "blueprint" type = "vCAC:Blueprint" >

" < sdk-object > href = ' :8281/API/Catalog/vCAC/Blueprint/59a8b719-b5b6-4676-ACAA-f9c89402a3c5%252Ffad8e332-0C5B-4110-a7c8-58890e246d48/ https://xxxxxx "id="59a8b719-b5b6-4676-acaa-f9c89402a3c5/fad8e332-0c5b-4110-a7c8-58890e246d48"< / object-sdk >

< / parameter >

< / Parameter >

< / execution context > '

Invoke-WebRequest-uri https://XXXXXX:8281/api/stream/516bb2af-213e-420e-9d93-b2babcdd5621/executions / -Headers $headers - body $body - ContentType "application/xml" - Post method

Invoke WebRequest: status of HTTP 409 - type parameter: vCAC:Blueprint had no objectRef or id.

type of status report

message of type parameter: vCAC:Blueprint had no objectRef or id.

Description of the request could not be completed because of a conflict with the current state of the resource.

VMware vFabric tc DURATION

Any help on how to pass the object on-demand reference Web is appreciated.

Kind regards

Juan.

Hello Juan, you're going to hate you

You closed the tag sdk-object when you weren't supposed to... Compare your body to what works for me:


    





Note that the

If your code should actually be:


            
                
                    Hello vCO, I am PS
                
                
                    
                
            
         

Post edited by: Burke Azbill - added corrected XML for original post...

Tags: VMware

Similar Questions

  • Download files via web services

    Hi experts,

    We are trying to make the old migration of a set of data in siebel ondemand. There are approximately 1 million records. Don't you think that it is possible to upload files via web services?

    (assuming that the profession of oracle service is off option because we don't have the budget)

    Thanks in advance, Sab

    SAB, Yes. However, the import file cannot be more than 30 000 records or more than 9 MB for the file size.

  • Download data via Web Service

    Hi all

    We have an obligation to download data from the SAP system to our Oracle database. Problem is that we will not be able to connect to SAP DB. They weill provide a webservice and we should use that in passing parameters.

    My query is, how do we do it in Oracle DB. I want to write a program unit and call the web service whenever necessary.

    In this regard any idea will be a great help.

    Thank you

    It can be dynamic enough easily - that Oracle has a flexible set of functionality to create dynamic XML on the fly.

    A few years ago that I build a dynamic interface in a 3rd party web service system - a very awkward thing that you should first determine the entity you want, determine the useful to the entity attributes, select those of interest, convert these digital IDs and construct a web call. Which in turn returned a dynamic data set based on specified attribute identifiers and the provided filter criteria.

    The PL/SQL itself package that did it was to a few 100 lines of code and used dynamics processing (send and retrieve) via UTL_HTTP. The 3rd third party provider has actually expressed an interest in the package it has helped an interactive test of their web service (complicated and complex) interface.

    So, personally, I'm very uncomfortable with the help of UTL_HTTP as transport interface - as it allows me complete control and management of sending 'transaction' and HTTP payload and received.

  • Reload via Web Services with ESXi?

    Is it possible to restart a virtual machine running on ESXi using Web Services?  I tried the sample code provided with the SDK, but I get an error. RestrictedVersion.summary. ideas?

    Thank you

    ARIN

    PS. I also tried the scrip poweroff_suspend_vm.pl with the same results.

    To use the API or remote CLIs with ESXi, you must have a paid license. If you use the free version of ESXi, you will not be able to take advantage of the APIs or CLIs

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

    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".

  • Update password user via Web Services

    Hello. I'm trying to update the password for a user via the web services of management of rights, https://{mydomain} / SOAP/services/RightsManagementService? wsdl & lc_version = 9.0.1, using .NET 4.0 (c#).

    Here's the function I wrote. When I run the code it always returns false. I have searched the documentation and the forumns but found nothing. Can anyone provide any ideas on how I can update a user password in LiveCycle via exposed web services?

    public bool UpdateUserPassword (string userName, string password)

    {

    Boolean result = false;

    WebServices.RightsManagement. user UserImpl = new WebServices.RightsManagement. UserImpl ();

    User.UserID = username;

    user.canonicalName = username;

    user.domainName = DefaultPolicySets. DefaultDomain;

    user.principalType = 'USER';

    User.local = true;

    User.Locked = false;

    User.Disabled = false;

    User.System = false;

    Console. WriteLine (this. rmSvc.resetExternalUserPassword (user, password));

    returns the results;

    }

    The answer to this question was to use another function exposed by Web services of management directory, {domain} / SOAP/services/DirectoryManagerService? WSDL & lc_version = 9.0.1.

    The function in question is called updateLocalUser().

    You can find more information here http://help.adobe.com/en_US/livecycle/9.0/programLC/javadoc/com/adobe/idp/um/api/Directory Manager.html#updateLocalUser%28com.adobe.idp.um.api.infomodel.User,%20java.lang.String%29.

  • How to check the total of the data sent and received via Web Service

    Hi guys

    I develop an application that receives data on about from server using the Web Service. Any fast way I can find total data sent to the server and the total of the data received from the server by my application?

    Any help would be much appreciated.

    Pinsard

    Check this thread:

    http://supportforums.BlackBerry.com/T5/Java-development/calculate-data-usage-for-particular-applicat...

    It could be that useful...

  • Sales stage Id error during OpportunityInsert via Web Services

    I encounter the following error when I try to insert an object of opportunity without charging sales stage Id

    Mandatory field is missing from the instance of the component of integration 'Opportunity' with the user key ":" < field > opportunity ~ sales stage Id < / field > ' is a required field. " Please enter a value for the field.
    (SBL-DAT-00498) (SBL-EAI-04389).

    When I put the property with an arbitrary value, the following error is raised.

    System.Web.Services.Protocols.SoapException: Can not find the entry '-1UCSVH' in the list of choices merely for the "Sales stage Id" field in the integration component ' Opportunity'(SBL-EAI-04401).

    What are the acceptable values for sales stage Id?

    You can watch these values by adding the sales stage field in the page design possibilities and creating a new opportunity, then you can look these values to display the selection list.
    The default values:
    Qualified lead
    Short list
    Closed / Won
    Closed/lost

  • [COMICS] BlackBerry Web services - create e-mail profiles

    Hello world

    The web service provides a method to create profiles of e-mail for users. However, it is not possible to create a profile of electronic mail user which replaces the default values for the name of the account, email address, username and domain.

    The CreateUserEmailProfilesRequest of Web Services for the Administration of the BlackBerry Business Gets a list of the new e-mail profiles to create such specified by NewUserEmailProfile. The NewUserEmailProfile contains the user settings, the e-mail profile and the specific settings of the user account name, e-mail address, user name and domain. If these user specific settings are specified, they have no effect because there is no parameter to set the parameter "Placeholders Microsoft Active Directory" which is available at the BOTTOM. Without this parameter, the user by email always default profile values in Active Directory instead of using the parameters in the query.

    Request:

    "http://schemas.xmlsoap.org/soap/envelope/" xmlns:adm="http://ws.rim.com/enterprise/admin">
    
    
    
    
    en_US
    6.2.0.20
    0
    
    
    
    53
     
    
    2
     
     DEV-EX@test.com
     DEV-EX@test.com
     DEV-EX
    test.local
                
             
          
        
    Response:
    "http://schemas.xmlsoap.org/soap/envelope/">
       
       
          "http://ws.rim.com/enterprise/admin">
             
                2794992300
                ad0a8300-e425-4f4d-a773-e223786a91ce
             
             >
                SUCCESS
                
             
             
                0-53-2
                
                   SUCCESS
                   
                
             
          
        
    

    Result of the GetUserDetails for this user, after the execution of the request of CreateUserEmailProfiles:

    
    "http://schemas.xmlsoap.org/soap/envelope/">
       
       
          "http://ws.rim.com/enterprise/admin">
             
                1550463700
                c8171dce-ce85-4435-b44e-3f53fa7ae6c8
             
             
                SUCCESS
                
             
             
                53
                
                  SUCCESS
                   
                
                
                   53
                   ...                
                      0-53-2
                      0
                      2
                      DEV-EX@wrongdomain.com
                      DEV-EX@wrongdomain.com
                      DEV-EX
                      wrongdomain.local
                   
                   ...             
             
          
        
    

    And it seems that there is no possibility to change the Email profile later via Web services. Does anyone have a solution for adding a user without using the default settings of the mail profile or workaround?

    I just got confirmation that the ability to override the parameters of AD is not currently available through BWS, but it adds up to a future version.

  • Basic of Web Services question

    Hello

    We are on Oracle 11 G and we got a request from one of our external suppliers to send the data via web services. They use the MS .net technology to their end.

    I am not quite aware of the web service or their mode of operation. Could someone explain in simple English on what we need to do starting end 11 G from Oracle to send data via a Web Service.

    I don't know what questions I need to ask the seller, because they ask us to send data in XML format.

    Assistance or direction on this front is greatly appreciated.

    Thank you

    Aravind

    In simple terms, a Web service possesses two elements

    Service-the one hosting the service and is available over http via endpoint, she understands and accepts data in accordance with the agreement (contract)

    Consumer/customer - will search for the Service and calls or sends a request to the Service according to the contract (wsdl).

    (Optional) request and Responses are defined in the WebService WSDL contract (hosted by the Service)

    In your case, if you need to send the data in XML format via http to the seller, then

    1. the seller must be hosting Webservice, so ask for the WSDL document

    2. try to access the WSDL in a browser and understand the request and response structures and what she expected

    3 create a Web Service client in accordance with this contract (WSDL) and call the Web service passing the query in XML data

    4. the vendor that hosts the service responds with a reply or an acknowledgment (everything that is defined in the WSDL document)

    Go through these

    Web service - Wikipedia, the free encyclopedia

    Web Services tutorial

  • How to send data to a Web service

    Hello everyone. I have a very simple example of sending data (2222) to an existing Web service as follows:

     topmostSubform.Page1.SEND::click - (JavaScript, client)
    var url="http://Localhost:8080/4DWSDL";
    var serv = SOAP.connect(url);
    app.alert("hello ");
    serv.MethodeSOAP(2222);
    app.alert("hello 2");
    
     
    

    However, it works fine in Acrobat, but not in the drive. Is it possible to make it work?

    In addition, although in this example, the data to be sent are only worth 2222, but my goal is to send all the information from the form to a Web service. Someone has tried it before, or is there an other way easier to do? I would appreciate any suggestion on your part thanks

    Hello

    Via web service calls data connections will not work in the drive, unless the form has been activated in LC Reader Extensions ES2 to drive:

    I have a summary here:

    http://www.assuredynamics.com/index.php/2010/11/using-LiveCycle-Forms-in-Acrobat-and-Reade r.

    Hope that helps,

    Niall

    Ensure the dynamics

  • CRMOD insert web service does not

    I'm trying to insert a new CRMOD account via web services with different external system but ID the same name and location. On these accounts "duplicate", I get the following error:

    "System.Web.Services.Protocols.SoapException: example of the integration component 'Account', with the user key", a record with identical values already exists in the database of Siebel.""

    Is there a setting that I can add to the web service to only watch the external system id when it is inserted.

    Any suggestions?

    Hello

    No, there is no setting that can force you to make sure that only ExternalSystemID is meant and not the account name field and location.

    This is the data of the Account object model, to manage the uniqueness of the amongst files CRM expects that account name and location is different from existing records.

    Usually these cases can happen by consequence system autour with the location field by making it unique every time.

    Hope this helps

  • Problem running the report with the Web Service and BI Publisher

    Hello

    In fact, I'm trying to run a report of Bi Publisher via the Web Service.
    I use the following documents:
    -http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/bip_webservice_101331.htm
    -"How to integrate Oracle BI Publisher via Web Services in the form of Oracke.

    Everything works fine. But when I try to copy the file on the local computer is 0 length. I use the method of "getReportBytes".
    Here's the code I tried with:

    String userName = "Administrator";
    String password = "Administrator";

    System.out.println ("calling" + myPort.getEndpoint ());
    System.out.println (myPort.validateLogin (username, Password));

    ReportRequest repReq = new ReportRequest();
    RepRes ReportResponse = new ReportResponse();

    repReq.setAttributeFormat ("pdf");
    repReq.setAttributeLocale("en-US");
    repReq.setAttributeTemplate ("sales world");
    repReq.setReportAbsolutePath ("/ Sales Manager/World Sales/World Sales.xdo");

    repRes = myPort.runReport (repReq, userName, passWord);
    System.out.println (repRes.getReportContentType ());

    Byte [] binaryBytes = repRes.getReportBytes ();
    OutputStream out = new FileOutputStream ("D:
    out.pdf");
    out. Write (binaryBytes);
    out. Close();
    System.out.println ("success for performance report');

    Thanks in advance.

    Hello

    I assume you are using 10.1.3.4. Otherwise, my index is not relevant to you...

    There is a new parameter in the web service API to set the size of the segment. HéLas is by default not so, the behavior is as in versions (not size segment... the entire document at once). If you set the size of segment-1, you should get your document. So, try adding
    repRequest.setSizeOfDataChunkDownload(-1);

    concerning
    Rainer

  • Batch using the Web Service deletion

    Hi experts,

    We expect batch to delete test data in siebel ondemand web service.

    If on average, we have about 100 records for each record type, say custom of sections 1, 2, 3, opportunity, campaign, account, contact, opportunity and service request. What is the best estimated to complete the job? assuming that we have 2 FTE technicians have experience in the web service.


    Appreciate for your advice.

    SAB.

    Hello!

    I think that if you can easily create a list that contains only the test data, don't waste time with WebServices just for this work. You can remove them with the massive deletion feature. It won't take more than an hour for less than 1,000 records...

    But if you do it via Web services, I think that 5 days of development are required and an hour for the program do the work... But I do not recommend!

    I hope this will help, do not hesitate to ask for more!

    Max

  • Is it possible to set configuration options VMsafe via vSphere Web Service SDK?

    Is it possible to define VMsafe configuration options via the web service of vSphere SDK?

    I noticed that the options in question are 'OptionValue's contained in the property config.extraConfig of the virtual machine, so I tried to edit them using the method ReconfigVM_Task of the SOAP API.

    This fails however, even if the SOAP request appears to be valid:

    & lt;? XML version = "1.0"? & gt;

    " & lt; env:Envelope xmlns:env = ' http://schemas.xmlsoap.org/SOAP/envelope/ "& gt; .

    & lt; env:header / & gt;

    & lt; env:body & gt;

    & lt; N1:ReconfigVM_Task xmlns:n1 = "urn: vim25" & gt;

    & lt; N1:_this type = 'VirtualMachine' & gt; VM - 448 & lt; / n1:_this & gt;

    & lt; N1:spec xsi: type = "VirtualMachineConfigSpec" & gt;

    & lt; N1:extraConfig xsi: type = "n1:OptionValue" & gt;

    & lt; N1:key & gt; vmsafe.enable & lt; / n1:key & gt;

    & lt; N1: value & gt; FAKE & lt; / n1: value & gt;

    & lt; / n1:extraConfig & gt;

    & lt; / n1:spec & gt;

    & lt; / n1:ReconfigVM_Task & gt;

    & lt; / env:Body & gt;

    & lt; / env:Envelope & gt;

    This query generates the following error:

    & lt;? XML version = "1.0" encoding = "UTF-8"? & gt;

    " & lt; soapenv:Envelope xmlns:soapenc = ' http://schemas.xmlsoap.org/SOAP/encoding/ "xmlns:soapenv =" " http://schemas.xmlsoap.org/SOAP/envelope/ "container =" " http://www.w3.org/2001/XMLSchema "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance "& gt; .

    & lt; soapenv:body & gt;

    & lt; soapenv:fault & gt; & lt; faultcode & gt; ServerFaultCode & lt; / faultcode & gt; & lt; faultstring & gt; invalid argument: value & lt; / faultstring & gt; & lt; retail & gt; & lt; InvalidRequestFault xmlns = "urn: vim25" xsi: type = "InvalidRequest" / & gt; & lt; / detail & gt; & lt; / soapenv:Fault & gt;

    & lt; / soapenv:Body & gt;

    & lt; / soapenv:Envelope & gt;

    For help in resolving this issue will be greatly appreciated.

    I'm glad it worked! Don't forget awareness useful or correct points

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

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

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

    http://Twitter.com/lamw

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

  • BlackBerry, call web services via the SSL protocol

    Hi guys,.

    We are developing an application BlackBerry to OS 4.1 and we test it on the 8330.  This application calls several web services on a remote server via the SSL Protocol (side).  There is a valid certificate from Entrust installed on the remote server - it works properly with all major desktop browsers.  The certificate has not been installed on the BES - is it necessary?  Some BlackBerry devices will be linked to a company BES, others not.

    When the application calls the web service, a window opens with the following message: "you try to open a secure connection, but the server certificate is not approved."  Continue to push works fine, but the window opens again a few moments later.  Pushing view certificate indicates that the certificate is considered invalid ('unverifiable Cert chain').  The same information is given when you navigate to the certificates of the aircraft.  Certificate trust pushing watch a 2nd window asking you the key Store password, which we are not aware of.

    You guys can help us with this?

    Thank you!

    We have solved the problem.  It seems that the BlackBerry device is having a hard time with a certificate signed by the Entrust 2048 bit root certificate.  Give us a new intermediate certificate signed by their 1024-bit root certificate, which we have installed on our Apache server.  While the window 'certificate is not approved' arises at once, pushing "Continue" worked and it never came up again.  To do this, it will probably install the certificate on the BES, something we don't have yet.

    Thank you for taking the time to answer!

Maybe you are looking for