CA Service Management

 View Only
  • 1.  Web Services Knowledge Management Search Method

    Posted Dec 11, 2017 06:33 PM

    hi guys, any of you has tried to get knowledge documents through web services using the search method? I tried using this documentation but always return a faulty error code, can you help me?

     

     

    thank you.



  • 2.  Re: Web Services Knowledge Management Search Method

    Broadcom Employee
    Posted Dec 11, 2017 07:29 PM

    Hi Walter,

     

    Can you please confirm the version and patch level of Service Desk you are using.

     

    Also, please check the stdlog file in NX_ROOT\log and see if any messages are generated when you make the web services call.

     

    Regards,

    Gordon.



  • 3.  Re: Web Services Knowledge Management Search Method
    Best Answer

    Posted Dec 12, 2017 03:28 AM

    Hi Walter,

     

    1. See a similar post\thread:

     

    Problem with WebServices and KT 

     

    2. I also noted that your sortBy property\attribute seems to be incorrect. It should be RELEVANCE not RELVANCE. This is probably why you get the 'bad name' error

     

    ===

    Kind Regards,

    Brian



  • 4.  Re: Web Services Knowledge Management Search Method

    Posted Dec 18, 2017 02:17 PM

    Thanks, It works 

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
       <soapenv:Header/>
       <soapenv:Body>
          <ser:search>
             <sid>772481748</sid>
            <problem>internet</problem>
            <resultSize>10</resultSize>
            <properties>TITLE,DOC_TYPE_ID,HITS</properties>
            <sortBy>RELEVANCE</sortBy>
            <descending>1</descending>
            <relatedCategories>1</relatedCategories>
            <searchType>1</searchType>
            <matchType>0</matchType>
            <searchField>15</searchField>
            <categoryPath>1</categoryPath>
            <whereClause></whereClause>
            <maxDocIDs>10</maxDocIDs>
    </ser:search>
       </soapenv:Body>
    </soapenv:Envelope>