1

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.....

Himanshu
  • 11
  • 1
  • 3

1 Answers1

-1

Use soapclient

stackoverflow ref: How to make a PHP SOAP call using the SoapClient class

Community
  • 1
  • 1
Boy
  • 1,120
  • 1
  • 11
  • 25