Mitel Forums - The Unofficial Source
Mitel Forums => Mitel Software Applications => Topic started by: rajvar104 on June 06, 2022, 07:21:07 AM
-
Hi,We are facing issue with Register client API .When we hit api with only client name it gives us session id but when we try it with Authentication info it is showing internal server error always.
Request=<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.ShoreTel.com/ProServices/SDK/Web">
<soapenv:Header/>
<soapenv:Body>
<web:RegisterClient>
<!--Optional:-->
<web:clientName>ntester</web:clientName>
<!--Optional:-->
<web:userAuthenticationInfo>
<web:UserDN>2132</web:UserDN>
<web:UserID>ntester</web:UserID>
<web:UserPassword>122333</web:UserPassword>
</web:userAuthenticationInfo>
</web:RegisterClient>
</soapenv:Body>
</soapenv:Envelope>
Response:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode>s:Server</faultcode>
<faultstring xml:lang="en-US">Server error!</faultstring>
<detail>
<ShoreTelWebSDKErrorDetail xmlns="http://www.ShoreTel.com/ProServices/SDK/Web" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<errorCode>InternalError</errorCode>
<errorDescription>Server error!</errorDescription>
</ShoreTelWebSDKErrorDetail>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
///////////////////////////////////////////////////////without auth/////////////////
request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.ShoreTel.com/ProServices/SDK/Web">
<soapenv:Header/>
<soapenv:Body>
<web:RegisterClient>
<!--Optional:-->
<web:clientName>ntester</web:clientName>
<!--Optional:-->
</web:RegisterClient>
</soapenv:Body>
</soapenv:Envelope>
response:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<RegisterClientResponse xmlns="http://www.ShoreTel.com/ProServices/SDK/Web">
<RegisterClientResult>caf5eacac2ca4af19ec5d4cb16 48 3378</RegisterClientResult>
</RegisterClientResponse>
</s:Body>
</s:Envelope>