简体   繁体   中英

Send XML request to wsdl in php

I have XML request format which I need to send to transunion api which is in wsdl. so how can I do it through PHP code?

This is the XML Request format

<?xml version="1.0" encoding="utf-16"?>
<DCRequest xmlns="https://www.test.transuniondecisioncentre.co.in/DC/XYZ.Wrapper.ExternalService/XYZWrapperService.svc">
<Authentication type="OnDemand">
<UserId>Username</UserId>
<Password>Password</Password>
</Authentication>
<RequestInfo>
<SolutionSetId>884</SolutionSetId>
<SolutionSetVersion>24</SolutionSetVersion>
<ExecutionMode>NewWithContext</ExecutionMode>
</RequestInfo>
<UserData></UserData>
<Fields>
<Field key="EnvironmentType">U</Field>
<Field key="Title">sri</Field>
<Field key="FirstName">sdfsdfdsf</Field>
<Field key="MiddleName">AMEYA</Field>
<Field key="LastName">DAWARE</Field>
<Field key="DateOfBirth">23/09/1988</Field>
<Field key="Gender">MALE</Field>
<Field key="PanNo">BSLPD6648B</Field>
<Field key="EmailID">ruelosjoel@gmail.com</Field>
<Field key="ResidenceAddress1">B/404 BLDG NO.3 SHIV SHAKTI COMPLEX  ACH</Field>
<Field key="ResidenceAddress2">OLE RD NALLASOPARA EAST</Field>
<Field key="ResidenceAddress3"></Field>
<Field key="ResidencePincode">401203</Field>
<Field key="ResidenceCity">THANE</Field>
<Field key="ResidenceState">MAHARASHTRA</Field>
<Field key="ResidenceSTDCode"></Field>
<Field key="ResidencePhone"></Field>
</Fields>
</DCRequest>

Please help me.....

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM