WSDefinitions problems

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

People who like this:0Yes/0No
Active user
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".

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

People who like this:0Yes/0No
Timofey Bugaevsky


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.

Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.