SOAP Request & Response in PHP
Posted: Fri Jun 05, 2009 8:40 am
Request:
POST /GatewayServices.asmx HTTP/1.1
Host: gateway.backgrounddatasolutions.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://schemas.turss.com/BDS/1.0/SubmitApplication"
And Response:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
Any buddy please tell me how to send request & get response by using soap in PHP
Please help me !!
POST /GatewayServices.asmx HTTP/1.1
Host: gateway.backgrounddatasolutions.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://schemas.turss.com/BDS/1.0/SubmitApplication"
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<SecurityHeader xmlns="http://schemas.turss.com/BDS/1.0/">
<CreateTime>string</CreateTime>
<Owner>string</Owner>
<HashKey>string</HashKey>
</SecurityHeader>
</soap:Header>
<soap:Body>
<SubmitApplication xmlns="http://schemas.turss.com/BDS/1.0/">
<newSearch>
<CurrentApplicant xmlns="http://schemas.turss.com/BDS/1.0/proxy">
<FirstName>string</FirstName>
<MiddleName>string</MiddleName>
<LastName>string</LastName>
<Suffix>string</Suffix>
<BirthDate>dateTime</BirthDate>
<SSN>string</SSN>
<Address>string</Address>
<City>string</City>
<State>string</State>
<PostalCode>string</PostalCode>
</CurrentApplicant>
<CurrentSearch xmlns="http://schemas.turss.com/BDS/1.0/proxy">
<IncludePreSelected>boolean</IncludePreSelected>
<AdditionalSearches>
<string>string</string>
<string>string</string>
</AdditionalSearches>
<ExcludeSearches>
<string>string</string>
<string>string</string>
</ExcludeSearches>
<EndUser>string</EndUser>
<ProfileID>int</ProfileID>
<CriminalCategories>
<char>char</char>
<char>char</char>
</CriminalCategories>
</CurrentSearch>
<CustomerRef xmlns="http://schemas.turss.com/BDS/1.0/proxy">string</CustomerRef>
<PermissiblePurpose xmlns="http://schemas.turss.com/BDS/1.0/proxy">Undefined or TenantScreening or Employment or GeneralCredit or Banking or WrittenAuthorization or ChildSupport or Collection or ConsumerInitiatedTransaction or ToAquireServiceOrInsureAccount or ConsumerDisclosure or InsuranceUnderwriting or ClaimsWithConsumerPermission or License or GovernmentBenefits</PermissiblePurpose>
</newSearch>
</SubmitApplication>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SubmitApplicationResponse xmlns="http://schemas.turss.com/BDS/1.0/">
<SubmitApplicationResult ="">
<CurrentApplication>
<ApplicationRef>string</ApplicationRef>
<CustomerRef>string</CustomerRef>
<EndUser>string</EndUser>
<PermissiblePurpose>string</PermissiblePurpose>
<Created>dateTime</Created>
<App_Applicant>
<FirstName>string</FirstName>
<MiddleName>string</MiddleName>
<LastName>string</LastName>
<Suffix>string</Suffix>
<BirthDate>dateTime</BirthDate>
<SSN>string</SSN>
<Address>string</Address>
<City>string</City>
<State>string</State>
<PostalCode>string</PostalCode>
</App_Applicant>
<App_Searches>
<SearchTX xsi:nil="true" />
<SearchTX xsi:nil="true" />
</App_Searches>
</CurrentApplication>
</SubmitApplicationResult>
</SubmitApplicationResponse>
</soap:Body>
</soap:Envelope>
Please help me !!