0 Replies Latest reply on May 9, 2006 11:49 AM by brad defnall

    for the newbies... php client in nusoap

    brad defnall Newbie

      this may or may not help anyone i dont know, but since there's not much on here about nusoap clients here's a code snippet.

      as you can see from the endpoint url, this client calls the jbossws samples document literal wrapped service. i run this from the command line. simple and short, and you can of course modify this to your own web service's needs.

      $param = array('String_1'=>"kermit",
      $client = new soapclient("http://localhost:8080/jbossws-samples-docstyle-wrapped?wsdl");
      $response = $client->call("purchase", $param, "http://org.jboss.ws/samples/docstyle/wrapped/types");
       echo "FAULT: Code:". $client-faultcode ."\n";
       echo "String: ". $client->faultstring;
      } else {
       echo $response . "\n";