AnsweredAssumed Answered

How to pass UUID values in CallServerMethod SOAP Web Services

Question asked by stitch626 on Jul 17, 2018
Latest reply on Jul 20, 2018 by pier-olivier.tremblay

I'm trying to use the CallServerMethod to use the SPEL API insert_object method. Everything worked fine callind the function, but one of the parameters it requires is the UUID of the user. Since the definition of the method has string as parameters it will reject it saying that string is not valid for a UUID.I've tried using the cnt:*** or U'***' format, but the problem is related to the type defined as string in the xml. I've also tried changing string to handle as per a recommendation of another forum but that did not work as well.

 

This is the example code:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
<soapenv:Header/>
<soapenv:Body>
<ser:callServerMethod>
<sid>839479796</sid>
<methodName>insert_object</methodName>
<factoryName>api</factoryName>
<formatList></formatList>
<parameters>
<string>cnt:BA7DE0ADD82EEC40A907CD132BE64D9B</string>
<string>NULL</string>
<string>0</string>
<string>obj_id</string>
<string>cr:1544588</string>
<string>wait_time</string>
<string>5</string>
<string>event_tmpl</string>
<string>evt:400505</string>
</parameters>
</ser:callServerMethod>
</soapenv:Body>
</soapenv:Envelope>

 

Response:

 

<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:Client</faultcode>
<faultstring>Bad arguments. Does not match signature.</faultstring>
<faultactor/>
<detail>
<ErrorMessage>Bad arguments. Does not match signature.</ErrorMessage>
<ErrorCode>5</ErrorCode>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

Outcomes