Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 30847 invoked from network); 24 Feb 2005 06:07:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Feb 2005 06:07:50 -0000 Received: (qmail 29696 invoked by uid 500); 24 Feb 2005 06:07:48 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 29664 invoked by uid 500); 24 Feb 2005 06:07:48 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 29648 invoked by uid 99); 24 Feb 2005 06:07:48 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 23 Feb 2005 22:07:48 -0800 Received: (qmail 30801 invoked by uid 65534); 24 Feb 2005 06:07:47 -0000 Message-ID: <20050224060747.30799.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: svnmailer-1.0.0-dev Date: Thu, 24 Feb 2005 06:07:47 -0000 Subject: svn commit: r155174 - webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/providers/RawXMLProvider.java To: axis-cvs@ws.apache.org From: hemapani@apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Author: hemapani Date: Wed Feb 23 22:07:44 2005 New Revision: 155174 URL: http://svn.apache.org/viewcvs?view=3Drev&rev=3D155174 Log: better error message for the doc-lit style when using the RawXMLProvider in= case the SOAPAction is missing Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/provi= ders/RawXMLProvider.java Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis= /providers/RawXMLProvider.java URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core= /src/java/org/apache/axis/providers/RawXMLProvider.java?view=3Ddiff&r1=3D15= 5173&r2=3D155174 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/provi= ders/RawXMLProvider.java (original) +++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/provi= ders/RawXMLProvider.java Wed Feb 23 22:07:44 2005 @@ -18,6 +18,7 @@ import org.apache.axis.Constants; import org.apache.axis.context.MessageContext; import org.apache.axis.context.SessionContext; +import org.apache.axis.description.AxisOperation; import org.apache.axis.description.AxisService; import org.apache.axis.engine.AxisFault; import org.apache.axis.engine.Provider; @@ -131,8 +132,12 @@ =20 // find the WebService method Class ImplClass =3D obj.getClass(); - String methodName =3D - msgContext.getOperation().getName().getLocalPart(); + =20 + AxisOperation op =3D msgContext.getOperation(); + if(op =3D=3D null){ + throw new AxisFault("Operation is not located, if this is = doclit style the SOAP-ACTION should specified via the SOAP Action to use th= e RawXMLProvider"); + } + String methodName =3D op.getName().getLocalPart(); Method[] methods =3D ImplClass.getMethods(); for (int i =3D 0; i < methods.length; i++) { if (methods[i].getName().equals(methodName)) {