Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise. Mobile platform > WSDefinitions problems

Forum

Search UsersRules
WSDefinitions problems
#1
Active user
Points:: 0
Joined:: Dec 4, 2015

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;

Profile
#2
Guest
Points::
Joined::

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.

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



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.