axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nandana Mihindukulasooriya" <nandana....@gmail.com>
Subject Re: [Axis2] Axis-fault
Date Fri, 15 Feb 2008 06:48:13 GMT
Hi Aditya,
       Yes, can you please try with Rampart 1.3.  Go through the basic
samples to get an understanding about the concepts. But don't worry
too much about the configurations. There are two approaches to
configure Rampart.
1.) Parameter based configuration
2.) Policy based configuration
       Basic samples explore the parameter based configuration where
as policy samples explore the policy based configuration. And it is
always recommended to use the policy based configuration as parameter
based configuration is deprecated. So use policy based samples to
learn about the configuration.

thanks,
/nandana

On Fri, Feb 15, 2008 at 10:00 AM, Aditya Anad <Aditya_Anad@infosys.com> wrote:
> Hi Nandana,
>
>  No I am using Rampart1.2... should I try with rampart 1.3?
>
>  Regards
>  Aditya
>
>
>
>  -----Original Message-----
>  From: Nandana Mihindukulasooriya [mailto:nandana.cse@gmail.com]
>  Sent: Thursday, February 14, 2008 10:29 PM
>  To: axis-user@ws.apache.org
>  Subject: Re: [Axis2] Axis-fault
>
>  Hi Aditya,
>         Are you using  Rampart 1.3 release ?
>
>  regards,
>  /nandana
>
>  On 2/14/08, Aditya Anad <Aditya_Anad@infosys.com> wrote:
>  >
>  > Hi,
>  >
>  > I am new to axis2 and web services. I was trying to execute the the basic=
>  > sample example given with Rampart. I am getting following request and=
>  > responses. Can you tell me where I am going wrong.
>  >
>  >
>  >
>  > Request:
>  >
>  >
>  >
>  > POST /axis2/services/sample02 HTTP/1.1
>  >
>  >
>  >
>  > Content-Type: text/xml; charset=3DUTF-8
>  >
>  >
>  >
>  > SOAPAction: "urn:echo"
>  >
>  >
>  >
>  > User-Agent: Axis2
>  >
>  >
>  >
>  > Host: 127.0.0.1:8081
>  >
>  >
>  >
>  > Transfer-Encoding: chunked
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  > 49a
>  >
>  >
>  >
>  > <?xml version=3D'1.0' encoding=3D'UTF-8'?><soapenv:Envelope xmlns:soapenv=
>  > =3D"http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header>
>  >
>  > <wsse:Security xmlns:wsse=
>  >
>  > =3D"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-sece=
>  >
>  > xt-1.0.xsd" soapenv:mustUnderstand=3D"1"><wsu:Timestamp xmlns:wsu=
>  > =3D"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-util=
>  >
>  > ity-1.0.xsd" wsu:Id=
>  >
>  > =3D"Timestamp-25610032"><wsu:Created>2008-02-14T07:30:23.018Z</wsu:Created>=
>  >
>  > <wsu:Expires>2008-02-14T07:35:23.018Z</wsu:Expires></wsu:Timestamp><wsse:Us=
>  >
>  > ernameToken xmlns:wsu=
>  >
>  > =3D"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-util=
>  >
>  > ity-1.0.xsd" wsu:Id=
>  >
>  > =3D"UsernameToken-3860801"><wsse:Username>bob</wsse:Username><wsse:Password=
>  >
>  >  Type=
>  >
>  > =3D"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-=
>  >
>  > profile-1.0#PasswordDigest">Ojbn0fGTA3w6A9MMdCGAI4w+7D4=
>  >
>  > =3D</wsse:Password><wsse:Nonce>IayhqO7tNWK2XtGnI2G3CQ=3D=
>  >
>  > =3D</wsse:Nonce><wsu:Created>2008-02-14T07:30:23.002Z</wsu:Created></wsse:U=
>  >
>  > sernameToken></wsse:Security></soapenv:Header><soapenv:Body><ns1:echo=
>  >
>  >  xmlns:ns1=3D"http://sample02.samples.rampart.apache.org/xsd"><param0>Hello=
>  >
>  >  world</param0></ns1:echo></soapenv:Body></soapenv:Envelope>
>  >
>  >
>  >
>  > 0
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  > Response:
>  >
>  >
>  >
>  > HTTP/1.1 500 Internal server error
>  >
>  >
>  >
>  > Date: Thu, 14 Feb 2008 07:30:23 GMT
>  >
>  >
>  >
>  > Server: Simple-Server/1.1
>  >
>  >
>  >
>  > Transfer-Encoding: chunked
>  >
>  >
>  >
>  > Content-Type: text/xml; charset=3DUTF-8
>  >
>  >
>  >
>  > Connection: Close
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  > 6d0
>  >
>  >
>  >
>  > <?xml version=3D'1.0' encoding=3D'UTF-8'?><soapenv:Envelope xmlns:soapenv=
>  > =3D"http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header=
>  >
>  >  /><soapenv:Body><soapenv:Fault><faultcode></faultcode><faultstring></fault=
>  >
>  > string><detail><Exception>org.apache.axis2.AxisFault&#xd;
>  >
>  >                 at=
>  >
>  >  org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.=
>  >
>  > java:100)&#xd;
>  >
>  >                 at=
>  >
>  >  org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72)&#=
>  >
>  > xd;
>  >
>  >                 at=
>  >
>  >  org.apache.axis2.engine.Phase.invoke(Phase.java:383)&#xd;
>  >
>  >                 at=
>  >
>  >  org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203)&#xd;
>  >
>  >                 at=
>  >
>  >  org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:131)&#xd;
>  >
>  >                 at=
>  >
>  >  org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(=
>  >
>  > HTTPTransportUtils.java:279)&#xd;
>  >
>  >                 at=
>  >
>  >  org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:216)&#x=
>  >
>  > d;
>  >
>  >                 at=
>  >
>  >  org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpS=
>  >
>  > ervice.java:275)&#xd;
>  >
>  >                 at=
>  >
>  >  org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisH=
>  >
>  > ttpService.java:184)&#xd;
>  >
>  >                 at=
>  >
>  >  org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServic=
>  >
>  > eProcessor.java:74)&#xd;
>  >
>  >                 at=
>  >
>  >  edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.r=
>  >
>  > unTask(ThreadPoolExecutor.java:665)&#xd;
>  >
>  >                 at=
>  >
>  >  edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.r=
>  >
>  > un(ThreadPoolExecutor.java:690)&#xd;
>  >
>  >                 at java.lang.Thread.run(Thread.java:534)&#xd;
>  >
>  > Caused by: java.lang.NullPointerException&#xd;
>  >
>  >                 at=
>  >
>  >  org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.ja=
>  >
>  > va:329)&#xd;
>  >
>  >                 at=
>  >
>  >  org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.=
>  >
>  > java:91)&#xd;
>  >
>  >                 ... 12 more&#xd;
>  >
>  > </Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>  >
>  >
>  >
>  > 0
>  >
>  >
>  >
>  > **************** CAUTION - Disclaimer *****************
>  > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
>  > for the use of the addressee(s). If you are not the intended recipient,
>  > please notify the sender by e-mail and delete the original message. Further,
>  > you are not to copy, disclose, or distribute this e-mail or its contents to
>  > any other person and any such actions are unlawful. This e-mail may contain
>  > viruses. Infosys has taken every reasonable precaution to minimize this
>  > risk, but is not liable for any damage you may sustain as a result of any
>  > virus in this e-mail. You should carry out your own virus checks before
>  > opening the e-mail or attachment. Infosys reserves the right to monitor and
>  > review the content of all messages sent to or from this e-mail address.
>  > Messages sent to or from this e-mail address may be stored on the Infosys
>  > e-mail system.
>  > ***INFOSYS******** End of Disclaimer ********INFOSYS***
>
>
>  --
>  Nandana Mihindukulasooriya
>  Software Engineer
>  WSO2 inc.
>
>  http://nandana83.blogspot.com/
>  http://nandanasm.wordpress.com/
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>  For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>  For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message