php soap转xml,如何创建PHP SOAP客户端并将结果xml存储在php变量中

我使用的是

PHP,之前从未使用过SOAP和

PHP.

我需要构建一个Soap PHP客户端,它从一个调用和检索信息

Soap服务器.NET Web服务.

我目前正致力于为荷兰医疗保健系统的医生提供信息

.对于在荷兰医疗保健系统注册的每位医生,您都可以检索

他的信息来自使用WSDL的SOAP Web服务的唯一唯一BIG ID(11位唯一编号).

所以当我调用SOAP服务器时:

(服务器链接如下)

进入这个测试网站(如soapclinet.com)

我的XML响应是正确的,看起来与下面的XML完全相同

括号中我想要在php中捕获的医生的信息.

200822

[Surname of the Doctor]

[Mailing name of the doctor]

[Initials of the doctor]

[Gender of the doctor]

[unique BIG ID]

1998-12-10T00:00:00

15

我需要构建一个PHP网页,它将执行完全相同的SOAP调用.

wsdl文件的地址是这样的:

webservices.cibg.nl/Ribiz/OpenbaarV2.asmx?wsdl.asmx?wsdl

我发送的SOAP消息是这样的:

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

Ribiz

[BIG ID number of the doctor]

(括号内是我们在SOAP服务器中发送的医生的BIG ID号)

如何将上述SOAP操作编写到PHP代码中并在PHP中存储我作为响应获取的XML变量?

我需要在php代码中存储的XML响应中的变量是这些……

200822

[Surname of the Doctor]

[Mailing name of the doctor]

[Initials of the doctor]

[Gender of the doctor]

Update1:​​这是var_dump的输出.其中xxxxxxx是我想要存储在php变量中的值!

object(stdClass)[2]

public 'ListHcpApprox' =>

object(stdClass)[3]

public 'ListHcpApprox3' =>

object(stdClass)[4]

public 'HcpNumber' => string 'xxxxxxxxx' (length=6)

public 'BirthSurname' => string 'xxxxxxxxxxx' (length=9)

public 'MailingName' => string 'xxxxxxxxxxxxxxxxxx' (length=18)

public 'Initial' => string 'xxxxxxxxxxxx' (length=8)

public 'Gender' => string 'x' (length=1)

public 'ArticleRegistration' =>

object(stdClass)[5]

...

public 'Specialism' =>

object(stdClass)[7]

...

public 'Mention' =>

object(stdClass)[9]

...

public 'JudgmentProvision' =>

object(stdClass)[10]

...

public 'Limitation' =>

object(stdClass)[11]

...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值