CA Service Management

 View Only
  • 1.  Erro 1000 - create change order SOAP Webservice

    Posted Jun 29, 2020 02:32 PM
    Hi everyone,

    I'm trying to create a change order from SOAP webservice, and this is my first try. I'm getting the error 1000.

    I know that it's meaning bad parameter. But can anyone help me to find where I"m doing wrong?

    Follow the XML:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
    <soapenv:Header/>
    <soapenv:Body>
    <ser:createChangeOrder>
    <sid>1877406716</sid>
    <creatorHandle>cnt:EE726A89006EC74A8ED014E829AC3F9F</creatorHandle>
    <attrVals>
    <!--1 or more repetitions:-->
    <string>requestor</string>
    <string>cnt:EE726A89006EC74A8ED014E829AC3F9F</string>
    <string>affected_contact</string>
    <string>cnt:EE726A89006EC74A8ED014E829AC3F9F</string>
    <string>category</string>
    <string>chgcat:401038</string>
    <string>status</string>
    <string>chgstat:6001</string>
    <string>priority</string>
    <string>pri:503</string>
    <string>summary</string>
    <string>Atualização de versão da aplicação XPTO</string>
    <string>description</string>
    <string>Atualização de versão da aplicação XPTO</string>
    <string>sched_start_date</string>
    <string>06/30/2020 09:00:00</string>
    <string>sched_duration</string>
    <string>02:00:00</string>
    <string>justification</string>
    <string>Teste de abertura de ticket via Webservice</string>
    </attrVals>
    <propertyValues>
    <!--1 or more repetitions:-->
    <string>SDM</string>
    </propertyValues>
    <!--<template>?</template> -->
    <attributes>
    <!--1 or more repetitions:-->
    <string>chg_ref_num</string>
    </attributes>
    <newChangeHandle>?</newChangeHandle>
    <newChangeNumber>?</newChangeNumber>
    </ser:createChangeOrder>
    </soapenv:Body>
    </soapenv:Envelope>

    ------------------------------
    Regards,
    Felipe Nunes
    ------------------
    IT Analyst
    Prodabel
    ------------------------------


  • 2.  RE: Erro 1000 - create change order SOAP Webservice

    Posted Jun 30, 2020 02:18 AM
    Hi,
    had a similar problem getting error 1000 times ago.
    Please have a look at your login-operator or your global dataset login credentials.
    The userName used for login should be written as it is defined (case sensitive).
    Login works also when letters are all writen lower case even there are upper letters in username.
    BUT
    all the following operator calls with this sid do not work (error 1000).

    When I had the problem I solved it using the username's correct writing.
    Regards,
    Peter

    ------------------------------
    Senior Technical Consultant
    Fujitsu Services
    ------------------------------



  • 3.  RE: Erro 1000 - create change order SOAP Webservice

    Posted Jun 30, 2020 02:34 PM
    Hi Peter,

    I'm using my credencials to test. I'm adminstrator user. So I guess it isn't the problem. I used to create request/incident normally.

    I guess the problem is about the template that I created.

    Any way, thanks for your support.

    ------------------------------
    Regards,
    Felipe Nunes
    ------------------
    IT Analyst
    Prodabel
    ------------------------------



  • 4.  RE: Erro 1000 - create change order SOAP Webservice

    Broadcom Employee
    Posted Jun 30, 2020 03:01 PM
    Are you able to create requests/incidents via SOAP?

    ------------------------------
    Paul Coccimiglio
    Principal Support Engineer
    Broadcom Inc.
    ------------------------------



  • 5.  RE: Erro 1000 - create change order SOAP Webservice

    Posted Jul 02, 2020 07:42 AM
    Hi Paul,

    I thought I was able to open request/incidents because I can use the method DOSELECT and works fine.
    Trying to open a request, I wasn't able create and get the same error: 1000

    I'm using the SOAP UI program. Do you think the program is the problem?

    Is there other way to test?

    Thanks.

    ------------------------------
    Regards,
    Felipe Nunes
    ------------------
    IT Analyst
    Prodabel
    ------------------------------



  • 6.  RE: Erro 1000 - create change order SOAP Webservice
    Best Answer

    Posted Jul 01, 2020 12:30 AM
    Hi Felipe,
    there are two issues that I can see:
    1. Dates (sched_start_date) are integers - e.g. 1596168324 which is approximately 31/07/2020
    2. Remove the question marks from these:
    <newChangeHandle>?</newChangeHandle>
    <newChangeNumber>?</newChangeNumber>
    After fixing those and changing your change category to one that is valid on my sandbox, with one 'property', that payload happily creates a change in my sandbox - with updated SID, of course.
    Hope that helps!
    Regards,
    James

    ------------------------------
    Consultant
    IDC Technologies
    ------------------------------