Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何通过php为以下格式的soap创建xml_Php - Fatal编程技术网

如何通过php为以下格式的soap创建xml

如何通过php为以下格式的soap创建xml,php,Php,我正在尝试将装运创建与一些wsdl集成,我必须根据下面的xml创建xml 下面是xml的格式 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:pos="someurl"> <soapenv:Header/> <soapenv:Body> <tem:Shipment_Creati

我正在尝试将装运创建与一些wsdl集成,我必须根据下面的xml创建xml

下面是xml的格式

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/" xmlns:pos="someurl">
<soapenv:Header/>
<soapenv:Body>
<tem:Shipment_Creation>
<tem:SHIPINFO>
<!--Conditional:->
<pos:AppointmentDate> If Customer has given exact date for delivery</pos:AppointmentDate>
<!--Conditional:-->
<pos:AppointmentFromTime> From Time </pos:AppointmentFromTime>
<!--Conditional:-->
<pos:AppointmentToTime> To Time</pos:AppointmentToTime>
<!--Conditional:-->
<pos:CashOnDelivery> Amount of Cash on Delivery</pos:CashOnDelivery>
<!--Conditional:-->
<pos:CashOnDeliveryCurrency> Currency of cash on delivery</pos:CashOnDeliveryCurrency>
<pos:ClientInfo>
<!--Required:-->
<pos:CodeStation> Posta Account Station Code </pos:CodeStation>
<!--Required:-->
<pos:Password> Shipper Account Password</pos:Password>
<!--Required:-->
<pos:ShipperAccount> Shipper Account No.</pos:ShipperAccount>
<!--Required:-->
<pos:UserName> Shipper Account Username</pos:UserName>
</pos:ClientInfo>
<Conditional>
<pos:CodeCurrency> Currency Code</pos:CodeCurrency>
<!--Required:-->


</tem:Shipment_Creation>
</soapenv:Body>
</soapenv:Envelope>

不时
按时
货到付款金额
货到付款货币
邮政帐户站代码
托运人帐户密码
托运人帐号。
发货人帐户用户名
货币代码

如果你有点懒,可以使用该项目(或在线)。你不会想知道如何发送请求和接收回复。

手册通常是一个很好的开始,在任何情况下,如果你不知道一些事情,那么可以看看手册。谢谢你,如果你有任何示例代码,那就更好了。我打赌,看看手册中的全部示例代码,或者用谷歌搜索教程。试着写点什么。如果你不能让它工作,因为你想然后回来与一些代码,我们可以帮助修复。我们不会为您编写代码