SOAP Request & Response in PHP

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
rajan123
Forum Newbie
Posts: 2
Joined: Fri Jun 05, 2009 8:32 am

SOAP Request & Response in PHP

Post 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 !!
Last edited by Benjamin on Fri Jun 05, 2009 11:14 am, edited 1 time in total.
Reason: Added [code=xml] tags.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: SOAP Request & Response in PHP

Post by Benjamin »

:arrow: Moved to Miscellaneous
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: SOAP Request & Response in PHP

Post by mikemike »

http://developer.apple.com/internet/web ... apphp.html

Check out the 'writing a client' section.
rajan123
Forum Newbie
Posts: 2
Joined: Fri Jun 05, 2009 8:32 am

Re: SOAP Request & Response in PHP

Post 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.
hegelero
Forum Newbie
Posts: 2
Joined: Sat Jun 06, 2009 6:36 am

Re: SOAP Request & Response in PHP

Post 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 ?
bugmenot
Forum Newbie
Posts: 23
Joined: Fri Oct 10, 2008 11:44 am

Re: SOAP Request & Response in PHP

Post 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 !
bugmenot
Forum Newbie
Posts: 23
Joined: Fri Oct 10, 2008 11:44 am

Re: SOAP Request & Response in PHP

Post by bugmenot »

heyyyyyyyyy can anyone help me please! :banghead:
Post Reply