Re: [SOAP] Re: A general question

From: Date: Thu, 16 Mar 2006 17:21:23 +0000
Subject: Re: [SOAP] Re: A general question
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-2155@lists.php.net to get a copy of this message
hello....me again! Im doing well so far, i fixed the digest problem, just was something i was doing wrong at the time. My next question is to do with HTTP Digest authentication and Basic Authentication. What im trying to do is contrast the differences between using the two. The user selects if they want "basic" or "digest" authentication, and just sticking both methods in an If statement and executing one or the other authentication method depending on which the user selects. So far basic authentication works, but i cannot seem to use digest authentication. Im just following the samples from the php manual but digest auth doesnt seem to want to work: http://de3.php.net/manual/en/features.http-auth.php to put it in pseudo so you can see what im getting at: RESET all session variables IF digestAuth { do digest authentication } ELSE { do Basic Authentication } Any ideas? if it was the header i would be suprised seing as though the header info for Basic Auth works ok. At the moment it goes to the 401 error at the first die message. Laura ----- Original Message ----- From: "Liber" <liber@iproom.com> To: "'Laura Broughton'" <broughtonlaura@hotmail.com>; <soap@lists.php.net> Sent: Wednesday, March 15, 2006 2:29 AM Subject: RE: [SOAP] Re: A general question
Please check your php version between client and server. -----Original Message----- From: Laura Broughton [mailto:broughtonlaura@hotmail.com] Sent: Wednesday, March 15, 2006 4:01 AM To: soap@lists.php.net Subject: [SOAP] Re: A general question great stuff! Ive got something working and generated a WSDL file, but i had another question about hashing functions. I have a function on my server that holds an array of names, and will return this name digested using the MD5 algorithm. On the client, i can do the same function on the name entered, but comparing the two shows they are different. The idea is you enter a name via a form, this name gets past to client.php which will display the digest of the name, and the function on the server gets the name entered and performs its own digest and passes it back. (dont ask why, im just trying to play around and get a feel for things!). For example: "Laura" client digests as: 366427c8172edbb113e35e302ab1bc82 server returns digest of this name as digests: b6d767d2f8ed5d21a44b0e5886680cb9 Ive tried trim( ) but with no luck. Someone might have tried this before and perhaps knows the answer. Thanks Laura ----- Original Message ----- From: "Liber" <liber@iproom.com> To: "'Laura Broughton'" <broughtonlaura@hotmail.com>; <soap@lists.php.net> Sent: Tuesday, March 14, 2006 4:08 PM Subject: RE: [SOAP] A general question
I suggest you download the Zend Studio trial version to help you build out
a simple SOAP model. Because the studio can generate the WSDL file automatically. Step 1. Create a Class to be a soap server Step 2. Create the WSDL file of the Class. Step 3. Create a soap client and use the WSDL of the class (Studio will advise you the method of the class when you programming the client) Step 4. Setting the Web server to make the soap server php file can be run. Step 5. Run the client, and make sure the Location of soap server is right. -----Original Message----- From: Laura Broughton [mailto:broughtonlaura@hotmail.com] Sent: Tuesday, March 14, 2006 11:21 PM To: soap@lists.php.net Subject: [SOAP] A general question Hello I posted before but i think it was a bit of a stupid question. Im really not having much luck with this web services and SOAP thing and wondered if anyone could help me out. I might ask some pretty dumb things but thats because im not completely clued up about everything and im still trying to work it all out! When i try to build something, most of the tutorials i find seem to use services from the xmethods site, is this mandatory? How would i write something without them, can i just have my client, server and my own WSDL file? Does anyone know where i can start off writing something that is 100% mine instead of referring to xmethods?? Any help is very much appreciated, its hard starting out learning something new! Many thanks Laura -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.soap (#2155) next »