我正在使用joomla 3.1网站,php 5.3.27。 我将数据存储在通过wsdl soap Web服务移植的ms sql server 2008 r2数据库中。
在来自Web服务的xml中,有一个“服务”列表,每个服务都带有我需要提取的“ serviceid”和“ servicename”节点。
1
Training
... and some other nodes ...
2
Faculty/Staff Email
... and some other nodes ...
这些serviceid和servicename需要进入我的mvc结构中视图的default.xml文件。 现在,这些值已硬编码。
key = "Display a service from the catalog"
/>
Display a service from the catalog
addfieldpath="/administrator/components/com_content/models/fields">
label="COM_CONTENT_FIELD_SELECT_ARTICLE_LABEL"
required="true"
edit="true"
clear="false"
description="COM_CONTENT_FIELD_SELECT_ARTICLE_DESC"
default="36"
/>
label="Service ID"
required="true"
edit="true"
clear="false"
description="The service to display"
>
Training
Faculty/Staff Email
Email List Services
Mass Email Services
Email Encryption
等等...
我遇到问题的部分是将它从soap响应中获取到另一个xml文件中。 我可以创建一个可以遍历数组并创建选项标签的php文档,但是再次从xml到php再到xml似乎很愚蠢,再加上尝试将外部数据导入到右侧仍然会遇到相同的问题放置在此文件中。
长期潜伏,第一次招贴,所以如果我违反协议,请原谅,我将担任鞭f的职位。 让我知道我是否不清楚或是否需要更多信息。 提前致谢!