cwmiller / broadworks-connector

Simple library for connecting to BroadWorks OCI-P API
MIT License
8 stars 5 forks source link

[Error 6004] OCI XML Request validation error #39

Closed TwinMist closed 5 years ago

TwinMist commented 5 years ago

hi when trying to assign a user service iam getting [Error 6004] OCI XML Request validation error $serviceName = array('VOICE_MESSAGING_USER'); $request = (new UserServiceAssignListRequest()) ->setuserId($userId) ->setserviceName(UserService::$serviceName);

any idea where iam going wrong? this sort of worked but only for one service in the array ->setserviceName(array(UserService::$serviceName()))

thanks

TwinMist commented 5 years ago

->setserviceName(array(UserService::$serviceName())) does not work when you have more than 1 value in the array get the msg: Uncaught Error: Function name must be a string in any ideas

thanks

cwmiller commented 5 years ago

$serviceName = array(UserService::VOICE_MESSAGING_USER());
$request = (new UserServiceAssignListRequest())
->setUserId($userId)
->setServiceName($serviceName);
TwinMist commented 5 years ago

what about if you wanted to assign more that 1 service within the same request?

cwmiller commented 5 years ago

Just add them to the array:


$serviceName = array(
  UserService::VOICE_MESSAGING_USER(),
  UserService::VOICE_MESSAGING_USER_VIDEO(),
  UserService::THREE_WAY_CALL()
);
fastcloudza commented 3 years ago

Hi, I get the same error when I try to add a mobileIdentity using UserBroadWorksMobilityModifyRequest21. $request1 = (new UserBroadWorksMobilityModifyRequest21()) ->setUserId($userId) ->setMobileIdentity($mobileIdentity); $mobileIdentity = array('0731234567'); Thanks