|
Re: Authentification: msg#00107php.nusoap.general
When you use WSDL, the WSDL is read in the soapclient constructor. Therefore, specifying the authentication credentials with setCredentials happens too late in your situation. You must also put the credentials in the WSDL URL: $client = new soapclient( 'http://username:password@nior97:8080/bonita_ws/services/ProjectSoapXML?wsdl', 'wsdl'); $client->setCredentials('username', 'password'); Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "DOUILLARD David" <David.DOUILLARD@xxxxxxxxxxxxxxx> To: "Nusoap Mailing List (E-mail)" <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Friday, April 30, 2004 5:48 AM Subject: [Nusoap-general] Authentification Hi, I'm trying to call a web service deployed on Jboss Application server and created with axis technologies. I have an authentication error. I'm using $soapclient->setCredentials("administrator","password"); Debug soapclient: in serialize_val: Procedure, 0, , , soapclient: endpoint: http://nior97:8080/bonita_ws/services/ProjectSoapXML?wsdl, soapAction: , namespace: http://testuri.org soapclient: sending msg (len: 558) w/ soapaction ''... soapclient: transporting via HTTP soapclient: sending message, length: 558 soapclient: transport debug data... soap_transport_http: scheme = http soap_transport_http: host = nior97 soap_transport_http: port = 8080 soap_transport_http: path = /bonita_ws/services/ProjectSoapXML soap_transport_http: query = wsdl soap_transport_http: entered send() with data of length: 558 soap_transport_http: connection params: nior97, 8080 soap_transport_http: socket connected soap_transport_http: setting http auth credentials soap_transport_http: wrote data to socket soap_transport_http: received 898 bytes of data from server soap_transport_http: closed socket soap_transport_http: received incoming payload: 898 soap_transport_http: found proper separation of headers and document soap_transport_http: cleaned data, stringlen: 685 soap_transport_http: end of send() soapclient: got response, length: 685 soapclient: Entering parseResponse(), about to create soap_parser instance soapclient: soap_parser: Entering soap_parser() soap_parser: parse error: XML error on line 1: not well-formed (invalid token) soapclient: sent message successfully and got a(n) NULL back result : POST /bonita_ws/services/ProjectSoapXML?wsdl HTTP/1.0 User-Agent: NuSOAP/0.6.3 Host: nior97 Authorization: Basic YWRtaW46dG90bw==\r\nContent-Type: text/xml Content-Length: 558 SOAPAction: "" Procedure HTTP/1.1 401 Non-Autorisé WWW-Authenticate: Basic realm="bonita" Content-Type: text/html;charset=ISO-8859-1 Content-Language: fr-FR Date: Fri, 30 Apr 2004 08:40:12 GMT Server: Apache-Coyote/1.1 Connection: close Etat HTTP 401 - type Rapport d''état message description La requête nécessite une authentification HTTP (). Apache Tomcat/4.1.29 David Douillard Direction des systèmes d'information et de télécommunication Tél : 05.49.78.74.47 Fax : 05.49.78.73.73 http://www.vivre-a-niort.com ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id?66&op=ick _______________________________________________ Nusoap-general mailing list Nusoap-general@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id?66&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | nusoap.php 1.74: 00107, Scott Nichol |
|---|---|
| Next by Date: | failure notice: 00107, MAILER-DAEMON |
| Previous by Thread: | Authentificationi: 00107, DOUILLARD David |
| Next by Thread: | Setcredential: 00107, DOUILLARD David |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |