Page 1 of 1

SOAP Request & Response in PHP

Posted: Fri Jun 05, 2009 8:40 am
by rajan123
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"

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>
 
And Response:
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>
 
Any buddy please tell me how to send request & get response by using soap in PHP
Please help me !!

Re: SOAP Request & Response in PHP

Posted: Fri Jun 05, 2009 11:13 am
by Benjamin
:arrow: Moved to Miscellaneous

Re: SOAP Request & Response in PHP

Posted: Fri Jun 05, 2009 11:20 am
by mikemike
http://developer.apple.com/internet/web ... apphp.html

Check out the 'writing a client' section.

Re: SOAP Request & Response in PHP

Posted: Sat Jun 06, 2009 1:31 am
by rajan123
Thanks mikemike,

currently I am using nusoap.php
but I am wondering about parameters to call soap client.

Is nusoap class accept xml code or array?
If it accept array then what will be the array for above xml code.

thank you very much!!!


Thanks in advance.
Please give any idea.

Re: SOAP Request & Response in PHP

Posted: Sat Jun 06, 2009 7:30 pm
by hegelero
Hi im trying to send request http://test.iodeme.com/iodeme.asmx?op=GetBankList
I also tried nusoap and natural soap class but cant success. anyone help me ?

Re: SOAP Request & Response in PHP

Posted: Thu Oct 08, 2009 4:35 am
by bugmenot
Heyyy i am also having same question ..can any one tell me how can i send XML request using php ...please help me .. i have to do it as soon as possible! i have same XML format as rajan123 !

Re: SOAP Request & Response in PHP

Posted: Thu Oct 08, 2009 5:30 am
by bugmenot
heyyyyyyyyy can anyone help me please! :banghead: