首頁 > 後端開發 > php教程 > 请高手讲解一下PHP Web services 技术解决方案

请高手讲解一下PHP Web services 技术解决方案

WBOY
發布: 2016-06-13 10:24:05
原創
869 人瀏覽過

请高手讲解一下PHP Web services 技术
现在要做一个保险公司对接程序,保险公司给的是一个Web services

我对这个不懂,是不是就是PHP向他们发送一个get请求,然后返回一个xml,我重xml里抓取我需要的数据。

请高手帮个忙啊,谢谢!!!!

------解决方案--------------------
http://docs.php.net/manual/zh/class.soapclient.php
翻翻手册 照着例子依葫芦画瓢 相信你能弄出来的
实在不行把接口地址给出来~
------解决方案--------------------
你那个 services 需要用户名和口令,无法写出有效的代码

提供的方法
Array
(
[0] => StandardApprovalResponse standardApproval(StandardApprovalRequest $in0)
[1] => StandardApprovalResponse underwrite(StandardApprovalRequest $in0)
[2] => SoapBatchPolicyApplyResponse batchApply(SoapBatchPolicyApplyRequest $in0)
[3] => SoapBatchPolicyApplyResponse batchAllSuccessApply(SoapBatchPolicyApplyRequest $in0)
[4] => PolicyQueryResponse policyQuery(PolicyQueryRequest $in0)
[5] => PolicyQueryResponse20002 policyQuery20002(PolicyQueryRequest20002 $in0)
[6] => CheckingDetailResponse20011 checkingDetail20011(CheckingDetailRequest20011 $in0)
[7] => FinancialSummaryResponse20010 financialSummary20010(FinancialSummaryRequest20010 $in0)
[8] => FinancialSummaryResponse20020 financialSummary20020(FinancialSummaryRequest20020 $in0)
[9] => PolicyCancelResponse policyCancel(PolicyCancelRequest $in0)
[10] => PolicyBatchCancelResponse policyBatchCancel(PolicyBatchCancelRequest $in0)
[11] => SoapPolicyPremiumResponse policyPremium(SoapPolicyPremiumRequest $in0)
[12] => SoapAlterableApprovalResponse alterableApproval(SoapAlterableApprovalRequest $in0)
[13] => SoapTeamPolicyApplyResponse teamPolicyApply(SoapTeamPolicyApplyRequest $in0)
[14] => EPolicyDownloadResponse20012 epolicyDownload20012(EPolicyDownloadRequest20012 $in0)
[15] => SettleResponse30010 settle(SettleRequest30010 $in0)
[16] => SettleResultResponse30011 settleResult(SettleResultRequest30011 $in0)
[17] => ReapprovalResponse30012 reapproval(ReapprovalRequest30012 $in0)
[18] => PolicyCancelResponse30013 policyCancel30013(PolicyCancelRequest30013 $in0)
[19] => string standardApproval20003(string $in0)
)

数据结构
Array
(
[0] => struct WssUserInfo {
 string loginName;
 string password;
 int orgId;
}
[1] => struct Insurance {
 dateTime policyEndDate;
 string applicantName;
 string by4;
 string by3;
 string by2;
 string by1;
 string insurantNexus;
 dateTime applicantBirth;
 string insuredCercCode;
 double policyPremium;
 string productCode;
 dateTime policyBeginDate;
 string applicantCertType;
 string phoneNumber;
 string flightNo;
 string claimantCercCode;
 string applicantCercCode;
 string claimantName;
 dateTime insuredBirth;
 string insuredSex;
 string insuredName;
 string applicantSex;
 string claimantCertType;
 string insuredCertType;
}
[2] => struct StandardApprovalRequest {
 string outerOrderID;
 WssUserInfo userInfo;
 Insurance insuranceDetail;
}
[3] => struct SysMessage {
 string errorMsg;
 string returnNumber;
 string noteMsg;
}
[4] => struct StandardApprovalResponse {
 SysMessage sysMessage;
 string outerOrderID;
 string by2;
 string by1;
 string policyNo;
}
[5] => struct SoapBatchPolicyApplyRequest {
 string by5;
 string by4;
 WssUserInfo userInfo;
 string by3;
 string by2;
 string by1;
 string outerOrderID;
 string transID;

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板