Discussions regarding 1C:Enterprise for mobile devices with Android, iOS, or Windows Phone.

#1
People who like this: 0 Yes / 0 No
Active user
1C:Professional
Rating: 3
Joined: Dec 4, 2015
Company: Smart ID Dynamics

Hello ! I am trying to call a method from a webservice.
On the desktop platform, it is working very well, but on the mobile platform I get this error : "Error calling constructur(WSDefinitions): User authentication failed. Service URL: ***url***".

Why is it working on desktop and not on mobile ? WSDefinition is available for mobile app( Server ).

My error is on the line with "New WSDefintions".

Code
Address = ***;
Username = "admin";
Password = "admin";              
URI = "***";
ServiceName = "MobileApp_Service";
EndPointName = "MobileApp_Port";
Try
Definitions = New WSDefinitions(Address, Username, Password,,,, True);      
Proxy = New WSProxy(Definitions, URI, ServiceName, EndPointName,,,,, True);
Proxy.User = Username;
Proxy.Password = Password;

 
#2
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Sebastian!

I suppose that the problem is that you set the UseOSAuthentication parameter to True and it works for you on Windows, but does not work on Android or iOS device.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)