Loading ...
Sorry, an error occurred while loading the content.

9720Re: [soapbuilders] Re: Parsing soap response in PHP

Expand Messages
  • Dietrich Ayala
    Jan 14, 2004
    • 0 Attachment
      this list is for interoperability issues only, so i'll reply to you
      off-list.

      -d



      aimlion11 wrote:

      > I am using NuSOAP. Could you tell me where on the site I would find
      > some instructions for doing what I need to?
      >
      > Thanks
      >
      >
      > --- In soapbuilders@yahoogroups.com, Dietrich Ayala <dietrich@g...>
      > wrote:
      >
      >>you can do this using NuSOAP [http://dietrich.ganx4.com/nusoap/]
      >>
      >>or Pear::SOAP [http://pear.php.net/]
      >>
      >>hth,
      >>
      >>-d
      >>
      >>aimlion11 wrote:
      >>
      >>>I have create a .net webservice, and am using a PHP page to
      >
      > consume
      >
      >>>it. I get the soap response back, but what do I do now? How to
      >
      > I
      >
      >>>parse the soap response so I can work with the data? In the
      >>>Microsoft world we use the ActiveX Dom object. How do you do it
      >
      > in
      >
      >>>PHP?
      >>>
      >>>=================
      >>>Link to client page
      >>>================
      >>>http://www.astro-matchmaker.com/php_samples/Get_Profile.php
      >>>
      >>>
      >>>================
      >>>php code in the client page
      >>>================
      >>><?
      >>>$strDB = "members_demo"; // [members | members_demo]
      >>>$strTokenID = "xxx111111x"; // xxx111111x forces
      >>>connection to demo database.
      >>>$strErrors = "";
      >>>$strWhere = "";
      >>>$xml_file = 'f:\home\nomax\astro-
      >
      > matchmaker.com\www\databases\az.xml';
      >
      >>>if(isset($_POST['SubmitGetProfile'])) {
      >>> $strWhere = $_POST['strWhere'];
      >>> //echo $strWhere;
      >>> $SoapMsg = "";
      >>> $SoapMsg = $SoapMsg . "<Get_Profile
      >>>xmlns='ns.www.astromatchmaker.com'>";
      >>> $SoapMsg = $SoapMsg . "<strTokenID>" .
      >>>$strTokenID . "</strTokenID>";
      >>> $SoapMsg = $SoapMsg . "<strDB>" . $strDB . "</strDB>";
      >>> $SoapMsg = $SoapMsg . "<strWhere>" .
      >>>$strWhere . "</strWhere>";
      >>> $SoapMsg = $SoapMsg . "</Get_Profile>";
      >>>
      >>> include("NuSOAP/nusoap-0.6.1/nusoap.php");
      >>> $soapclient = new soapclient('http://www.astro-
      >>>matchmaker.com/aspnet_samples/MatchMaker.asmx?wsdl',true);
      >>> $params = array($SoapMsg);
      >>> $result = $soapclient -> call("Get_Profile", $params);
      >>>
      >>>echo $SoapMsg;
      >>>echo $result;
      >>>
      >>>
      >>>print_r($result);
      >>>
      >>>
      >>>//Display the request and response
      >>>echo '<h2>Request</h2>';
      >>>echo '' . htmlspecialchars($soapclient->request, ENT_QUOTES) . '';
      >>>echo '<h2>Response</h2>';
      >>>echo '' . htmlspecialchars($soapclient->response,
      >
      > ENT_QUOTES) . '';
      >
      >>> // kill object
      >>> unset($soapclient);
      >>>}
      >>>
      >>>
      >>>?>
      >>>
      >>>
      >>>-----------------------------------------------------------------
      >>>This group is a forum for builders of SOAP implementations to
      >
      > discuss implementation and interoperability issues. Please stay on-
      > topic.
      >
      >>>
      >>>Yahoo! Groups Links
      >>>
      >>>To visit your group on the web, go to:
      >>> http://groups.yahoo.com/group/soapbuilders/
      >>>
      >>>To unsubscribe from this group, send an email to:
      >>> soapbuilders-unsubscribe@yahoogroups.com
      >>>
      >>>Your use of Yahoo! Groups is subject to:
      >>> http://docs.yahoo.com/info/terms/
      >>>
      >>>
      >>>
      >>>
      >
      >
      >
      > -----------------------------------------------------------------
      > This group is a forum for builders of SOAP implementations to discuss implementation and interoperability issues. Please stay on-topic.
      >
      >
      > Yahoo! Groups Links
      >
      > To visit your group on the web, go to:
      > http://groups.yahoo.com/group/soapbuilders/
      >
      > To unsubscribe from this group, send an email to:
      > soapbuilders-unsubscribe@yahoogroups.com
      >
      > Your use of Yahoo! Groups is subject to:
      > http://docs.yahoo.com/info/terms/
      >
      >
      >
      >
    • Show all 4 messages in this topic