Hi Jaskin, You have to use HTTP POST request for SOAP. I have never used HTTP GET for SOAP messages.
The other thing I noticed is the endpoint address. It should be http://localhost:8081/axis2/services/sample03 You have added an extra "?wsdl" to the message. This will return the wsdl of the service. So remove the end "?wsdl" and try with the POST request. Regards, Dimuthu http://wso2.org On Tue, 2007-07-24 at 11:56 +0800, Jaskin wrote: > Hi, > The soap body/header is empty and the following is the extract from > TCPMon. > > Request: > GET /axis2/services/sample03?wsdl HTTP/1.0 > Host: localhost:8081 > > And, response returns entire WSDL message. > > On the other hand, fault/exception should be thrown if security header > is empty or auth failed. > > Thanks, > Jaskin > > > > > ______________________________________________________________________ > > Subject: RE: Axis2 - Invoking Rampart UsernameToken-service using > client written in PHP > > From: [EMAIL PROTECTED] > > To: [email protected] > > Date: Tue, 24 Jul 2007 07:27:22 +0530 > > > > Hi Jaskin, > > > > > > > On TCPMon, the request is oddly empty but the response returns the > > > wsdl message. > > > > Does this mean the SOAP body is empty or security header is empty? > > > > Regards, > > Dimuthu > > > > > > On Mon, 2007-07-23 at 21:02 +0800, Jaskin wrote: > & gt; > Hi Dimuthu, > > > Appreciate your reply on this matter. > > > For your information, I am using sample03's service as a test > case. > > > Basically, I followed the sample guide by starting the sample03's > > > service and run the sample03's client, which is running just fine. > > > > > > But, when using client written in PHP to access sample03's > service, > > > the problems occured (as described in previous email) and I am > agreed > > > with you that failure should be thrown if auth failed or security > > > header is not processed correctly. > > > > > > On TCPMon, the request is oddly empty but the response returns the > > > wsdl message. > > > > > > > > > Thanks, > > > Jaskin > > > > > > > > > > > > > Subject: Re: Axis2 - Invoking Rampart UsernameToken-service > using > > > client written in PHP > > > > Fro m: [EMAIL PROTECTED] > > > > To: [email protected] > > > > Date: Mon, 23 Jul 2007 14:05:09 +0530 > > > > > > > > Hi Jaskin, > > > > > > > > Can u please check whether the UsernameToken is included in the > > > > SecurityHeader by looking at the message on the wire. You can > use > > > the > > > > TCPMonitor[1] to do this. > > > > > > > > Security Header is a "Must Understand" header. I think if it is > not > > > > processed properly a "Must Understand" failure must be thrown > > > without > > > > invoking the service. > > > > > > > > But also check whether you have configured the service properly. > > > Have > > > > you engaged rampart at the server side by editing the > services.xml > > > file. > > > > Please have a look at sample03/services.xml > > > > > > > > I t has engaged rampart using <module ref="rampart"/> element > and > > > > specified security items. > > > > > > > > Regards, > > > > Dimuthu > > > > > > > > [1]http://ws.apache.org/commons/tcpmon/ > > > > > > > > On Mon, 2007-07-23 at 15:40 +0800, Jaskin wrote: > > > > > Hi, > > > > > I am trying out UsernameToken (plain text) authentication with > > > > > Axis2-Rampart. > > > > > However, I am encountered some issue on the CallbackHandler > when > > > > > in voking the service (Rampart’s sample03). > > > > > > > > > > - The handle() method is not execute at all when invoking the > > > service > > > > > using client written in PHP > > > > > > > > > > - This has caused the service to be invoked although the user > > > > > name/password is inc orrect. > > > > > > > > > > On the other hand, the client sample03 provided able to > > > authenticate > > > > > correctly. > > > > > Appreciate any help/info from you guys. > > > > > > > > > > Thanks, > > > > > Jaskin > > > > > > > > > > > > > > > > > > > > > > > > ______________________________________________________________________ > > > > > Get 2GB of storage space with the new Windows Live Hotmail. > Get it > > > > > now! > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] he.org > > > > > > > > > > > > > _______________ > _______________________________________________________ > > > Get 2GB of storage space with the new Windows Live Hotmail. Get it > > > now! > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > ______________________________________________________________________ > Windows Live Spaces is here! It’s easy to create your own personal Web > site. Check it out! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
