Jump to content

SOAP in PHP 5 / Attributes


therompster

Recommended Posts

Ok so i have this service description here :

POST /f/ContentRetrieval.asmx HTTP/1.1

Host: d2c.9squared.com

Content-Type: text/xml; charset=utf-8

Content-Length: length

SOAPAction: "http://www.9squared.com/ContentRetrieval/CreateTransaction"

 

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

    <CreateTransaction xmlns="http://www.9squared.com/ContentRetrieval">

      <TransactionRequest User="string" Password="string" xmlns="">

        <Product Id="int">

          <PricePoint Currency="USD or AED or AFA or ALL or AMD or ANG or AOR or ARS or AUD or AWG or AZN or BBD or BDT or BGN or BHD or BIF or BMD or BND or BOB or BRL or BSD or BTN or BWP or BYR or BZD or CAD or CDF or CHF or CLP or CNY or COP or CRC or CUP or CVE or CZK or DJF or DKK or DOP or DZD or EEK or EGP or ERN or ETB or EUR or FJD or FKP or GBP or GEL or GHS or GIP or GMD or GNF or GTQ or GYD or HKD or HNL or HRK or HTG or HUF or IDR or ILS or INR or IQD or IRR or ISK or JMD or JOD or JPY or KES or KGS or KHR or KMF or KPW or KRW or KWD or KYD or KZT or LAK or LBP or LKR or LRD or LSL or LTL or LVL or LYD or MAD or MDL or MGA or MKD or MMK or MNT or MOP or MRO or MUR or MVR or MWK or MXN or MYR or MZN or NAD or NGN or NIO or NOK or NPR or NZD or OMR or PAB or PEN or PGK or PHP or PKR or PLN or PYG or QAR or RON or RSD or RUB or RWF or SAR or SBD or SCR or SDG or SEK or SGD or SHP or SKK or SLL or SOS or SRD or STD or SVC or SYP or SZL or THB or TJS or TMM or TND or TOP or TRY or TTD or TWD or TZS or UAH or UGX or UYU or UZS or VEF or VND or VUV or WST or XAF or XAG or XAU or XCD or XDR or XFO or XFU or XOF or XPD or XPF or XPT or YER or ZAR or ZMK or ZWD" Value="decimal" />

        </Product>

        <Delivery Type="HTTP or SMS">

          <SmsAddress MDN="long" ServiceID="int" />

        </Delivery>

        <PartnerData HasData="boolean">

          <Data Value="string" Name="string" />

          <Data Value="string" Name="string" />

        </PartnerData>

      </TransactionRequest>

    </CreateTransaction>

  </soap:Body>

</soap:Envelope>

 

 

and I have no idea as to how to pass values to these attributes.... this is what i was trying....

##New SOAP Client Constructor

$vClient2 = new SoapClient ("9si.wsdl");

//var_dump($vClient2->__getFunctions());

 

##Call to CreateTransaction Method  

//$vResponse =  $vClient2->CreateTransaction(array('User'=>"QualutionTest",'Password'=>"test123"));

var_dump($vClient2->CreateTransaction->TransactionRequest(array('User'=>"QualutionTest",'Password'=>"test123")))

 

how do i pass values to the attrbiutes.  I need to populate ProductID, user, pass, and Delivery Type.

 

Link to comment
https://forums.phpfreaks.com/topic/162649-soap-in-php-5-attributes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.