Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 54815 invoked from network); 15 Mar 2007 23:35:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2007 23:35:11 -0000 Received: (qmail 33288 invoked by uid 500); 15 Mar 2007 23:35:11 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 32832 invoked by uid 500); 15 Mar 2007 23:35:09 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 32821 invoked by uid 99); 15 Mar 2007 23:35:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 16:35:09 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [65.216.251.45] (HELO exbah01.e-Space.local) (65.216.251.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 16:34:58 -0700 Content-class: urn:content-classes:message Subject: RE: [axis2]HTTP Status code MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C7675A.7E8D05C8" Date: Thu, 15 Mar 2007 19:34:36 -0400 Message-ID: X-MIMEOLE: Produced By Microsoft Exchange V6.5.7226.0 X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: [axis2]HTTP Status code Thread-Index: AcdnPx7Ej7hURXAzRiGMSQjRid4jFwAG0Mmg From: "Punnoose, Roshan" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C7675A.7E8D05C8 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Did you delete the other install of Axis on your Tomcat? Because it might be holding onto an axis2-kernel.jar... maybe... other than that, I'm not completely sure. I would have to test the latest war. Roshan Punnoose Phone: 301-497-6039 -----Original Message----- From: Tammy Dugan [mailto:tdugan@regenstrief.org]=20 Sent: Thursday, March 15, 2007 4:18 PM To: axis-user@ws.apache.org Subject: Re: [axis2]HTTP Status code I downloaded the nightly build and built it. I expanded the war file and went to http://localhost:8080/axis2 and clicked on validate. The=20 validation seemed to work fine. When I clicked on the validation, I got=20 the following error in the tomcat console: org.apache.axis2.transport.http.AxisServlet doPost SEVERE: java.lang.NoSuchMethodError:=20 org.apache.axis2.context.MessageContext.getLogIDString()Ljava/lang/Strin g: null Is there a different build I can get that will not throw this error? Tammy Punnoose, Roshan wrote: > Yes, the latest Axis2 has fixed that issue. > > Roshan Punnoose > Phone: 301-497-6039 > > -----Original Message----- > From: Tammy Dugan [mailto:tdugan@regenstrief.org]=20 > Sent: Thursday, March 15, 2007 12:10 PM > To: axis-user@ws.apache.org > Subject: Re: [axis2]HTTP Status code > > I tried this and the resp variable is always null. Do I need to pull a > different version of axis2 down from the repository to get this to work? > > I am running the 1.1.1 release. I tried the following code in my service > > implementation class: > > HttpServletResponse response =3D (HttpServletResponse)=20 > MessageContext.getCurrentMessageContext(). > getProperty(HTTPConstants.MC_HTTP_SERVLETRESPONSE); > > and response is null. I need to manipulate the mime headers so if there=20 > is another way I should do it I will. > > Tammy > > Punnoose, Roshan wrote: > =20 >> MessageContext.getCurrentMessageContext() is returning most likely the >> Message_In MessageContext. That holds the HttpServletResponse going >> back, all I had to do was change the status code on this class. >> >> Code: >> >> HttpServletResponse resp =3D (HttpServletResponse) >> getCurrentMessageContext() >> .getProperty(HTTPConstants.MC_HTTP_SERVLETRESPONSE); >> if (resp !=3D null) { >> resp.setStatus(status); >> } >> >> Roshan Punnoose >> Phone: 301-497-6039 >> >> -----Original Message----- >> From: Tammy Dugan [mailto:tdugan@regenstrief.org]=20 >> Sent: Wednesday, March 14, 2007 1:04 PM >> To: axis-user@ws.apache.org >> Subject: Re: [axis2]HTTP Status code >> >> How did you get access to the MessageContext that got returned? >> >> Tammy >> >> Punnoose, Roshan wrote: >> =20 >> =20 >>> Sorry, I got this to work. I actually got the ServletResponse from >>> =20 > the > =20 >>> MessageContext and then changed the status code. Pretty simple :) >>> >>> Roshan Punnoose >>> Phone: 301-497-6039 >>> >>> -----Original Message----- >>> From: Punnoose, Roshan [mailto:punnooser@bah-systems.com]=20 >>> Sent: Wednesday, March 14, 2007 12:58 PM >>> To: axis-user@ws.apache.org >>> Subject: [axis2]HTTP Status code >>> >>> Is there anyway to change the status code of the return? I have a web >>> service that returns custom SOAP faults, but it always returns it >>> =20 > with > =20 >>> the status code of 200, I want to change that to 500? Any way? >>> >>> Roshan Punnoose >>> Phone: 301-497-6039 >>> >>> -----Original Message----- >>> From: Punnoose, Roshan [mailto:punnooser@bah-systems.com]=20 >>> Sent: Wednesday, March 14, 2007 11:30 AM >>> To: axis-user@ws.apache.org >>> Subject: RE: [axis2]REST requests failing >>> >>> Looks like the RESTUtil is sending the inputStream as null in the >>> processURLRequest, which will break the TransportUtils class either >>> =20 >>> =20 >> way. >> =20 >> =20 >>> What can we do? >>> >>> Roshan Punnoose >>> Phone: 301-497-6039 >>> >>> -----Original Message----- >>> From: Punnoose, Roshan [mailto:punnooser@bah-systems.com]=20 >>> Sent: Wednesday, March 14, 2007 11:24 AM >>> To: axis-user@ws.apache.org >>> Subject: [axis2]REST requests failing >>> >>> I have a REST GET request, and I keep getting this error: >>> >>> java.lang.NullPointerException. >>> java.lang.NullPointerException >>> at java.io.Reader.(Reader.java:61) >>> at >>> =20 > java.io.InputStreamReader.(InputStreamReader.java:80) > =20 >>> at >>> >>> =20 >>> =20 > org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersFromReq > =20 >> =20 >> =20 >>> uest(XFormURLEncodedBuilder.java:123) >>> at >>> >>> =20 >>> =20 > org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURL > =20 >> =20 >> =20 >>> EncodedBuilder.java:77) >>> at >>> >>> =20 >>> =20 > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti > =20 >> =20 >> =20 >>> ls.java:120) >>> at >>> >>> =20 >>> =20 > org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil > =20 >> =20 >> =20 >>> .java:98) >>> at >>> >>> =20 >>> =20 > org.apache.axis2.transport.http.AxisServlet$ProcessRESTRequest.processUR > =20 >> =20 >> =20 >>> LRequest(AxisServlet.java:767) >>> at >>> >>> =20 >>> =20 > org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:236) > =20 >> =20 >> =20 >>> Any ideas? >>> >>> Roshan Punnoose >>> Phone: 301-497-6039 >>> >>> =20 >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >>> For additional commands, e-mail: axis-user-help@ws.apache.org >>> =20 >>> =20 >> =20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >> For additional commands, e-mail: axis-user-help@ws.apache.org >> =20 > > =20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org --=20 Tammy Dugan Computer Programmer Regenstrief Institute, Inc. 1050 Wishard Blvd., RG5 Indianapolis, IN 46202 (317) 630 - 7346 Confidentiality Notice: The contents of this message and any files transmitted with it may contain confidential and/or privileged information and are intended solely for the use of the named addressee(s). Additionally, the information contained herein may have been disclosed to you from medical records with confidentiality protected by federal and state laws. Federal regulations and State laws prohibit you from making further disclosure of such information without the specific written consent of the person to whom the information pertains or as otherwise permitted by such regulations. A general authorization for the release of medical or other information is not sufficient for this purpose. =20 If you have received this message in error, please notify the sender by return e-mail and delete the original message. Any retention, disclosure, copying, distribution or use of this information by anyone other than the intended recipient is strictly prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org ------_=_NextPart_001_01C7675A.7E8D05C8 Content-Type: text/x-vcard; name="Punnoose, Roshan.vcf" Content-Transfer-Encoding: base64 Content-Description: Punnoose, Roshan.vcf Content-Disposition: attachment; filename="Punnoose, Roshan.vcf" QkVHSU46VkNBUkQNClZFUlNJT046Mi4xDQpOOlB1bm5vb3NlO1Jvc2hhbg0KRk46UHVubm9vc2Us IFJvc2hhbg0KQURSO1dPUks6OzIxMTUNCkxBQkVMO1dPUks6MjExNQ0KRU1BSUw7UFJFRjtJTlRF Uk5FVDpwdW5ub29zZXJAYmFoLXN5c3RlbXMuY29tDQpSRVY6MjAwNTA0MTNUMTgzMjA3Wg0KRU5E OlZDQVJEDQo= ------_=_NextPart_001_01C7675A.7E8D05C8 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org ------_=_NextPart_001_01C7675A.7E8D05C8--