2011/5/19 Rajan, Nihar <[email protected]>:
> < h t m l > < h e a d > < m e t a h t t p - e q u i v = " C o n t e n t - T
> y p e " c o n t e n t = " t e x t / h t m l ; c h a r s e t = u t f - 1 6 "
>> < / h e a d > < b o d y >
> Sorry for sending wrong generated files.
>
> My main problem is I have sipxecs server installed in 10.8.2.11 and I m
> running client in diffrent PC. How I will inform client that I need to sent
> packets to 10.8.2.11 instead of localhost by default set?
>
> Also how to pass the authentication part?
>

Didn't try but I assume it should work..

ConfigImplService configService = new ConfigImplService();
UserService service = configService.getUserService();
BindingProvider bindingProvider = (BindingProvider) service;
Map<String,Object> requestContext = bindingProvider.getRequestContext();
requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,

"https://10.8.2.11:8443/sipxconfig/services/UserService";);
requestContext.put(BindingProvider.USERNAME_PROPERTY, "your_admin_user");
requestContext.put(BindingProvider.PASSWORD_PROPERTY, "your_admin_user_pass");
// Invoke the service.
service.addUser(AddUser....)

George
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/

Reply via email to