asp.net 会员 API 与 php 集成
对此相当陌生,所以放轻松;-)
只是在寻找一些一般性建议。我目前正在创建一个前端系统,以与其他人创建的后端系统集成。我的前端系统只包含一个网站、一个客户可以注册的注册表单。这是与我们的支付合作伙伴集成的,并通过 PHP 完成(这是我最了解的语言)。到目前为止,我还没有看到后端,所以我一直在使用 mysql 数据库来测试我的脚本等。
所以现在我需要在后端更新数据库才能设置用户帐户。我很傻,以为这就像使用插入语句一样简单。后端是用asp.net c# 完成的,并使用sql server。为了创建新用户,编写后端的人使用了 asp.net 会员 API。这会创建用户,但也会在数据库中创建很多表。
有谁知道我应该如何整合这两者?有什么我可以使用 PHP 来与 asp.net 会员 api 配合使用的东西吗?
任何建议表示赞赏!
Fairly new to this so go easy ;-)
Just looking for some general advice really. I'm currently creating a front end system to integrate with a back end system that someone else has created. My front end system just consists of a website, a sign up form where customers can register. This is integrated with our payment partners and is done through PHP (this is the language I know best). Up until now, I have not seen the back end, so I have been using a mysql database to test my scripts etc.
So now I'm at the point where I need to update the database at the back end in order to set up the user accounts. Silly me for thinking this would just be as simple as using an insert statement. The backend is done in asp.net c# and uses sql server. In order to create new users, the guy who wrote the backend uses the asp.net membership api. This creates the user but also creates a LOT of tables in the database.
Does anyone know how I should go about integrating these two? Is there anything I can use PHP-wise that will work with the asp.net membership api?
Any advice is appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果 php 和 asp.net 代码都在后端显示来自同一数据库的信息,那么这应该不是问题。
asp 成员资格被设计为易于使用,为了确保您提取正确的信息,请使用 .net 框架在您的 php 代码中为您生成的生成的存储过程...这将导致 asp 生成的原始数据.net 安全对象使用以相同的格式返回。
然后您如何使用这些数据完全取决于您。
您可以要求创建 asp.net 组件的人为您创建一个简单的 Web 服务吗? ...这将导致以标准驱动的肥皂格式连接到他的 asp.net 组件的接口...但我认为数据库中的存储过程应该为您提供所需的所有信息。
希望您可以在 sql 数据库上进行存储过程调用...据我了解,这与 php 上的 mysql 调用没有什么不同:)
If both the php and the asp.net code are displaying information from the same database at the back end this should not be a problem.
asp membership is designed to be simple to use, to be sure you pull the right information use the generated stored procedures that the .net framework would have generated for you in your php code ... this will result in the raw data that the asp.net security objects uses being returned in the same format.
how you then use that data is entirely up to you.
You could ask the guy that created the asp.net components to create a simply web service for you ? ... that would result in an interface in to his asp.net components in a standards driven soap format ... but i think the stored procedures in the database should give you all the information you need.
Hopefully you're ok with making stored procedure calls on a sql db ... as i understand it it's not all that different to mysql calls on php :)