Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 73874 invoked from network); 6 Jan 2004 06:52:22 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 Jan 2004 06:52:22 -0000 Received: (qmail 98180 invoked by uid 500); 6 Jan 2004 06:51:57 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 98151 invoked by uid 500); 6 Jan 2004 06:51:57 -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 98138 invoked from network); 6 Jan 2004 06:51:57 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 6 Jan 2004 06:51:57 -0000 Received: (qmail 73843 invoked by uid 1762); 6 Jan 2004 06:52:18 -0000 Date: 6 Jan 2004 06:52:18 -0000 Message-ID: <20040106065218.73842.qmail@minotaur.apache.org> From: hemapani@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/contrib/axismora/src/org/apache/axismora/soap BasicMessageContext.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hemapani 2004/01/05 22:52:18 Modified: contrib/axismora/src/org/apache/axismora/soap BasicMessageContext.java Log: fix the problem and make sure this code execute only for RPC Revision Changes Path 1.6 +6 -6 ws-axis/contrib/axismora/src/org/apache/axismora/soap/BasicMessageContext.java Index: BasicMessageContext.java =================================================================== RCS file: /home/cvs/ws-axis/contrib/axismora/src/org/apache/axismora/soap/BasicMessageContext.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- BasicMessageContext.java 2 Jan 2004 08:34:12 -0000 1.5 +++ BasicMessageContext.java 6 Jan 2004 06:52:18 -0000 1.6 @@ -147,7 +147,7 @@ /* serializer of the result */ private SerializationContext serializer; /* Service Style */ - private Style style; + private Style style = Style.RPC; private Writer w; @@ -509,11 +509,11 @@ this.soapEnvelope.addBodyElement(bo); -// NOt needed specific to rpc -// if (this.methodName != null) { -// bo.setName(this.methodName.getLocalPart() + "Response"); -// bo.setNamespaceURI(this.methodName.getNamespaceURI()); -// } + //needed specific to rpc + if (this.style == Style.RPC){ + bo.setName(this.methodName.getLocalPart() + "Response"); + bo.setNamespaceURI(this.methodName.getNamespaceURI()); + } /* ** registor our Serializer **