Jump to content

Search the Community

Showing results for tags 'nusoap'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 4 results

  1. Hello I am looking for a way to log all incoming requests to a nusoap web service to a file.. any suggestions? Thanks
  2. Hey guys,I am trying to use purorlators webservice with nuSoap, however I keep getting this php error: : Class 'SoapHeader' not found My code: <?php require_once('nusoap.php'); $client = new SoapClient( "EstimatingService.wsdl", array ( 'trace' => true, //Development (dev) 'location' => "https://devwebservices.purolator.com/PWS/V1/Estimating/EstimatingService.asmx", //Production //'location' => "https://webservices.purolator.com/PWS/V1/Estimating/EstimatingService.asmx", 'uri' => "http://purolator.com/pws/datatypes/v1", 'login' => PRODUCTION_KEY, 'password' => PRODUCTION_PASS ) ); //Define the SOAP Envelope Headers $headers[] = new SoapHeader ( 'http://purolator.com/pws/datatypes/v1',<-----I get the error here 'RequestContext', array ( 'Version' => '1.3', 'Language' => 'en', 'GroupID' => 'xxx', 'RequestReference' => 'Rating Example' ) ); //Apply the SOAP Header to your client $client->__setSoapHeaders($headers); return $client; And the line I get the error is here : $headers[] = new SoapHeader ( 'http://purolator.com/pws/datatypes/v1',<-----I get the error here So I assume SoapHeaders are not in nuSoap.php . How do I get headers working with nuSoap?
  3. hi we've two kinds of clients, web client and an application which works as a client. now our application simulates web requests by calling index.php as the web client does. we want to change it to calling web services via nusoap. but there's a problem. web services are session-less. for example, a web service is called to authenticate. the second service when called has no sense about the authentication and it's completely a separate call. someone told me that i may put something eg. a hash code in http headers to include the data provided via authentication so that the next web services read the data from header and realize the call has been for what session. this way something like session simulation occurs. i'm not so familiar with 'http headers'. i don't know how can i do that. in the whole, i like to know what may be the best solution and whether nusoap keeps something internally like sessions so that i may read the in web services? what's your suggestion? thx
  4. I'm having a problem putting together a XML file with the right format required by the webservice I want to use. I'm using the nusoap class to do it. The error I'm getting: Array ( [Reservation_Data] => Array ( [Reservation_Value] => 0 [status] => ERROR_Create_Internacional_Reservation: Object reference not set to an instance of an object. - 0 ) ) My request is: POST /Rentway_Internacional_Reservations_WS/Create_Reservation.asmx HTTP/1.0 Host: www.xxxxxxx.pt User-Agent: NuSOAP/0.9.5 (1.123) Content-Type: text/xml; charset=UTF-8 SOAPAction: http://www.xxxxxxx.pt/Rentway_Internacional_Reservations_WS/Create_Internacional_Reservation/Create_Internacional_Reservation Content-Length: 714 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3785="http://tempuri.org"> <SOAP-ENV:Body><Create_Internacional_Reservation xmlns="http://www.xxxxxxxxx.pt/Rentway_Internacional_Reservations_WS/Create_Internacional_Reservation"> <Reservation_Request> <MessageType>N</MessageType> <Group>01</Group> ........................... </Reservation_Request> </Create_Internacional_Reservation> </SOAP-ENV:Body> </SOAP-ENV:Envelope> My code is: require_once('nu-soap/nusoap.php'); require_once('config.php'); $client = new nusoap_client('http://www.xxxxxxxxxx.pt/Rentway_Internacional_Reservations_WS/Create_Reservation.asmx?wsdl', true); $param = array('Username'=>'xxx','Password'=>'xxx','MessageType'=>'N','Group'=>'01'); $result = $client->call('Create_Internacional_Reservation', array('Reservation_Request' => $param)); When getting information about the request on the webservice's manual which I was advised to use, the only difference I can find is: Where's: Code (XML): <Reservation_Request> <MessageType>N</MessageType> <Group>01</Group> ........................... </Reservation_Request> Should be: <Reservation_Request xmlns="http://www.xxxxxx.pt/Rentway_Internacional_Reservations_WS/Reservation_Request.xsd" > <MessageType>N</MessageType> <Group>01</Group> ........................... </Reservation_Request> How can I send (xmlns="http://www.xxxxxx.pt/Rentway_Internacional_Reservations_WS/Reservation_Request.xsd" ) inside Reservation_Request ?
×
×
  • 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.