我有XML请求格式,我需要发送到wsdl中的transunion api。那我怎么能通过PHP代码来做呢?
这是XML请求格式
<?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>
请帮帮我......