Login 钛合金登录模块

Login 钛合金登录模块,login,titanium,Login,Titanium,任何人都有使用ProviderService.Src开发登录模块的经验 我需要使用Tianium Appcelerator开发一个带有webservice的登录模块。它需要两个字符串(用户名和密码)并返回true/false。我需要通过web服务发送输入的登录名和密码,并接收true/false。Web服务是 http://46.18.8.42/FareBids.Service/FareBids.ServiceLayer.ProviderService.svc 请有人指导我如何创建一个登录模块

任何人都有使用ProviderService.Src开发登录模块的经验

我需要使用Tianium Appcelerator开发一个带有webservice的登录模块。它需要两个字符串(用户名和密码)并返回true/false。我需要通过web服务发送输入的登录名和密码,并接收true/false。Web服务是

http://46.18.8.42/FareBids.Service/FareBids.ServiceLayer.ProviderService.svc
请有人指导我如何创建一个登录模块与它?我得到信息说我要用肥皂水。有人能帮我写代码吗(如果可能的话)
非常感谢您的帮助。谢谢。

使用webservice http客户端。这应该可以做到,您必须将其调整到您的特定Web服务,并且显然要从用户那里收集数据,但是如何做到这一点在


请查看webservice链接。我没有任何数据库在那里。。。仅使用此url,请告诉我如何使用登录模块。我得到一些信息,使用suds.js我们可以继续。但不知道怎么做。如果有人成功了,请告诉我代码。谢谢。当我尝试使用这里的代码时,它说[INFO][TiAPI(688)]webservice失败,消息:无法处理消息,因为内容类型“application/x-www-form-urlencoded”不是预期的类型“application/soap+xml”;字符集=utf-8'。关于内容类型,请帮助我。谢谢
    var loginSrv = Ti.Network.createHTTPClient({
        onload : function(e) {
             // If the service returns successfully : true, or false
             var isUserAllowed = this.responseText; 
        },
        onerror : function(e) {
            // Web service failed for some reason
            Ti.API.info(this.responseText);
            Ti.API.info('webservice failed with message : ' + e.error);
        }
    });
    loginSrv.open('POST', 'http://46.18.8.42/FareBids.Service/FareBids.ServiceLayer.ProviderService.svc');
    // you may have to change the content type depending on your service
    loginSrv.setRequestHeader("Content-Type", "application/json");

    var sendObj = {loginid : 'someid', pwd : 'somepassword'};
    loginSrv.send(obj);