CA Service Management

 View Only
  • 1.  WebService SC UserService?wsdl

    Posted Apr 06, 2015 02:38 PM

    I'm using SoapUI application for testing in the Service Catalog WSDL;
    Evoking the WSDL http://9.9.9.9:8080/usm/services/UserService?wsdl, Operation logIn the wsdl returned back to section ID (logInReturn):

     

    
    
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soapenv:Body>
          <ns1:logInResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://services.soap.usm.ca.com">
             <logInReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">d11e9ed9ecc0235846a1636c1c2998a2f264dcd5</logInReturn>
          </ns1:logInResponse>
       </soapenv:Body>
    </soapenv:Envelope>
    

     

    when trying to use the ID findUsers operator, it returns me the following error:


    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soapenv:Body>
          <soapenv:Fault>
             <faultcode>soapenv:Server.generalException</faultcode>
             <faultstring>:query cannot be null</faultstring>
             <detail>
                <ns1:exceptionName xmlns:ns1="http://xml.apache.org/axis/">com.ca.usm.soap.axisInterfaces.PropertyNotSetException</ns1:exceptionName>
                <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">hostnameSC</ns2:hostname>
             </detail>
          </soapenv:Fault>
       </soapenv:Body>
    </soapenv:Envelope>
    


    I do not understand what property has not been set, as not in the SOAP request is nothing to consume beyond sessionID:


    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.soap.usm.ca.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
       <soapenv:Header/>
       <soapenv:Body>
          <ser:findUsers soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
             <sessionID xsi:type="soapenc:string">d11e9ed9ecc0235846a1636c1c2998a2f264dcd5</sessionID>
             <filterBeanArr xsi:type="urn:ArrayOfFilterBean" soapenc:arrayType="urn:FilterBean[]" xmlns:urn="urn:usmUserService"/>
          </ser:findUsers>
       </soapenv:Body>
    </soapenv:Envelope>
    


  • 2.  Re: WebService SC UserService?wsdl

    Posted Apr 08, 2015 06:41 PM

    Doesn't that method require a query in the filterBeanArr to specify which user(s) you want returned?

     

    <impl:findUsers xmlns:impl="urn:usmUserService">

      <impl:sessionID>sessionID__</impl:sessionID>

      <impl:filterBeanArr>filterBeanArr__</impl:filterBeanArr>

    </impl:findUsers>