therompster Posted June 17, 2009 Share Posted June 17, 2009 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 More sharing options...
pkedpker Posted June 17, 2009 Share Posted June 17, 2009 IDK man but google found this.. http://www.phpbuilder.com/manual/en/function.soap-soapclient-construct.php all i know is i'd do it the hard way by using a xml parser Link to comment https://forums.phpfreaks.com/topic/162649-soap-in-php-5-attributes/#findComment-858405 Share on other sites More sharing options...
therompster Posted June 17, 2009 Author Share Posted June 17, 2009 What do you mean? Link to comment https://forums.phpfreaks.com/topic/162649-soap-in-php-5-attributes/#findComment-858417 Share on other sites More sharing options...
pkedpker Posted June 17, 2009 Share Posted June 17, 2009 ignore what I said.. I do stuff the hard way.. using fsockopen.. (not the official way) and they parsing xml.. and crafting my own xml and sending it.. so ignore me Link to comment https://forums.phpfreaks.com/topic/162649-soap-in-php-5-attributes/#findComment-858426 Share on other sites More sharing options...
therompster Posted June 17, 2009 Author Share Posted June 17, 2009 Can anyone help me out???? Link to comment https://forums.phpfreaks.com/topic/162649-soap-in-php-5-attributes/#findComment-858431 Share on other sites More sharing options...
therompster Posted June 17, 2009 Author Share Posted June 17, 2009 No one knows? Link to comment https://forums.phpfreaks.com/topic/162649-soap-in-php-5-attributes/#findComment-858448 Share on other sites More sharing options...
therompster Posted June 17, 2009 Author Share Posted June 17, 2009 COME ON GUYS!!!! NO ONE?!?!?!?!?! Link to comment https://forums.phpfreaks.com/topic/162649-soap-in-php-5-attributes/#findComment-858500 Share on other sites More sharing options...
therompster Posted June 18, 2009 Author Share Posted June 18, 2009 please help..... Link to comment https://forums.phpfreaks.com/topic/162649-soap-in-php-5-attributes/#findComment-858544 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.