Jump to content

danik69

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by danik69

  1. Hello I have looked all over for an answer but so far have had no luck in finding one so hopefully someone can help me here. I am using SOAP to connect to a CRM api. So here is my code below <?php //Connect To WebCrm API $client = new SoapClient("API addressl"); $result = $client->Authenticate(array('dbnCode' => 'jgljjldfjfljgljdl','userName' =>'blafahah','password' =>'hfhgfhfhgfg')); //This is just out putting the response var_dump($result); This is the dump of the response i get object(stdClass)#2 (1) { ["AuthenticateResult"]=> object(stdClass)#3 (2) { ["Message"]=> string(0) "" ["Code"]=> int(0) } } This is fine and I can access the values and do what i want with them however I need access to the SOAP header and have no idea how i get access to this? Below is the soap request and response using the api test SOAP REQUEST <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <Authenticate xmlns="CRM/"> <dbnCode>fhdhhdhddfhd</dbnCode> <userName>dhdfdhd</userName> <password>dhdhhf</password> </Authenticate> </soap12:Body> </soap12:Envelope> SOAP response <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Header> <TicketHeader xmlns="CRM"> <Guid>I NEED TO GET ACCESS TO THIS</Guid> </TicketHeader> </soap:Header> <soap:Body> <AuthenticateResponse xmlns="CRM"> <AuthenticateResult> <Message /> <Code>0</Code> </AuthenticateResult> </AuthenticateResponse> </soap:Body> </soap:Envelope> as you can see from the response i need access to the Guid tag in the ticket header. How do I access this? To sum it up i can access the body of the response but not the header. Any help really appreciated! Thanks
  2. Hi I am having a major problem with trying to get the HTML value attribute to display the a value stored in a array from SQL Query. So i have done an SQL query then outputted it all to the screen, but i cant set the value attribute on my HTML form to the variable $Name. Can anyone please tell me where i am going wrong? Thanks Nick while($nt=mysql_fetch_array($result)){ echo "$nt[photo_url] $nt[Name] $nt[Education] $nt[skills] $nt[Aboutme] <br>"; // name class and mark will be printed with one line break at the end } $Photo_url = $_POST["photo_url"]; $Name = $_POST["Name"]; $Education = $_POST["Education"]; $Skills= $_POST["Skills"]; $Aboutme = $_POST["Aboutme"]; ?> <form method="post" action="updateaboutme.php"> Photo Url:<input type="text" size="12" maxlength="12" name="Photo_url" value="<?php echo $nt['Name'] ?>" <br /> <input type="submit" value="submit" name="submit"> </form>
  3. Thankyou very much! Yeah i have used with a drop down box and it works superb! Thanks for your time! much appreciated. Nick
  4. Im basically want to output the details of any books that are linked to that readinglist so idcol in the book table is the book id so in the book2readinglist the book column is the idcol and then reading list column is whatever readinglist that book is on eg computing so i want all the books that are say on internet computing reading list
  5. hi, i have 3 tables table books mysql> select * from books; +-------+-------------------------------------------------+--------------------------+-----------+--------------------------+----------------------+------------+-------+ | idcol | title | author | category | cover | publisher | isbn | price | +-------+-------------------------------------------------+--------------------------+-----------+--------------------------+----------------------+------------+-------+ | 1 | C++ For Dummies | Stephen Radny Davis | Computing | c++fordummies.jpg | for Dummies | 1234567891 | 24.99 | | 2 | Servlets & JavaServer Pages | Marty Hall & Larry Brown | Computing | javaservletpages.jpg | Prentice Hall | 130092290 | 23.99 | | 3 | Macromedia Director MX 2004 Bible | Robert Martin | Computing | directorbible.jpg | Wiley | 764569902 | 31.99 | | 4 | Basic Statistics for Primer Biomedical Sciences | Olive Jean Dunn | Science | basicstatsbiomedical.jpg | Wiley Interscience | 471354228 | 49.99 | | 5 | Molecular Biology of the Cell | Bruce Alberts | Science | molecularbio.jpg | Garland Publishing | 815340729 | 39.75 | | 6 | Biochemistry 5th Ed | Lubert Stryer | Science | biochemistry.jpg | W H Freeman & Co Ltd | 716746840 | 41.99 | | 7 | Microbiology | Lancing Prescott | Science | microbilogy.jpg | William C Brown | 697293904 | 29.99 | +-------+-------------------------------------------------+--------------------------+-----------+--------------------------+----------------------+------------+-------+ table book2readinglist mysql> select * from book2readinglist; +-------+------+-------------+ | idcol | book | readinglist | +-------+------+-------------+ | 1 | 1 | 1 | +-------+------+-------------+ 1 row in set (0.00 sec) table readinglist mysql> select * from readinglist; +-------+----------------------+ | idcol | degree | +-------+----------------------+ | 1 | Internet Computing | | 2 | Bio-Medical Science | | 3 | Physical Geography | | 4 | General History | | 5 | Multimedia Computing | +-------+----------------------+ 5 rows in set (0.14 sec) i want to output all the books related to that readinglist eg the book number 1 is in readinglist 1 and is idcol 1 c++ for dummies How can i write a query to do this? Thankyou Nick
×
×
  • 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.