如何在HTTPService中使用带有特殊字符的请求参数 - Flex
目前我有:
<mx:HTTPService id="userLogin" url="https://api.localhost/api/user/login/" method="POST" resultFormat="e4x" result="doSomeThing(event)">
<mx:request>
<email>{loginUser}</email>
<password>{loginPassword}</password>
</mx:request>
</mx:HTTPService>
而不是这个,我有像 userCredentials.email 和 userCredentials.password 这样的参数。 我尝试过这个,但它不起作用。
<mx:HTTPService id="userLogin" url="https://api.localhost/api/user/login/" method="POST" resultFormat="e4x" result="doSomeThing(event)">
<mx:request>
<userCredentials.email>{loginUser}</userCredentials.email>
<userCredentials.password>{loginPassword}</userCredentials.password>
</mx:request>
</mx:HTTPService>
Currently I have :
<mx:HTTPService id="userLogin" url="https://api.localhost/api/user/login/" method="POST" resultFormat="e4x" result="doSomeThing(event)">
<mx:request>
<email>{loginUser}</email>
<password>{loginPassword}</password>
</mx:request>
</mx:HTTPService>
instead of this I have params like userCredentials.email and userCredentials.password.
I tried this but it odesnt work.
<mx:HTTPService id="userLogin" url="https://api.localhost/api/user/login/" method="POST" resultFormat="e4x" result="doSomeThing(event)">
<mx:request>
<userCredentials.email>{loginUser}</userCredentials.email>
<userCredentials.password>{loginPassword}</userCredentials.password>
</mx:request>
</mx:HTTPService>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
让我们知道它是否适合您:
您是否也从 http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_5.html :
我的意思是这个 mx:request 结构?
let us know if its work for you:
also did you see this from http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_5.html :
i mean this mx:request structure?