Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 88343 invoked from network); 31 Oct 2006 13:22:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2006 13:22:44 -0000 Received: (qmail 95775 invoked by uid 500); 31 Oct 2006 13:22:51 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 95715 invoked by uid 500); 31 Oct 2006 13:22:51 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 95704 invoked by uid 99); 31 Oct 2006 13:22:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2006 05:22:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2006 05:22:37 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0E9917142EC for ; Tue, 31 Oct 2006 05:22:17 -0800 (PST) Message-ID: <14062341.1162300937041.JavaMail.root@brutus> Date: Tue, 31 Oct 2006 05:22:17 -0800 (PST) From: "Dennis Sosnoski (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-1558) problem receiving escaped XML in payload In-Reply-To: <16216074.1162268607239.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/AXIS2-1558?page=comments#action_12445886 ] Dennis Sosnoski commented on AXIS2-1558: ---------------------------------------- I suspect this is not really a problem. If you read the text content of the element you should get the element text string you're expecting, with no replacements. When you print out the element as XML, on the other hand (which is what you appear to have done, since you're showing the actual start and end tags, along with attributes), you're seeing the proper replacement of '<' in content as required by XML. You don't see '>' replaced because that's not required in this case (though some frameworks do it anyway). Please try reading the text *content* of the element and see what you get. > problem receiving escaped XML in payload > ---------------------------------------- > > Key: AXIS2-1558 > URL: http://issues.apache.org/jira/browse/AXIS2-1558 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: om > Affects Versions: nightly > Environment: 32-bit Windows > Reporter: Tony Dean > > The following SOAP is sent from .NET to a org.apache.axis2.receivers.RawXMLINOutMessageReceiver Axis2 endpoint: > POST /axis2/services/myService HTTP/1.1 > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.42) > VsDebuggerCausalityData: uIDPoy26NIt2oGVMu3AaAaVfY/EAAAAAtJkH+jUVSkSoJtku7vQ/4n/vP3Qd2/BFs7BqUl9s3GUACAAA > SOAPAction: "" > Host: d4639:8080 > Content-Type: multipart/related; type="application/xop+xml"; boundary=--MIMEBoundary632978239375477793; start="<0.632978239375477793@example.org>"; start-info="text/xml; charset=utf-8" > Content-Length: 2018 > Expect: 100-continue > Connection: Keep-Alive > ----MIMEBoundary632978239375477793 > content-id: <0.632978239375477793@example.org> > content-type: application/xop+xml; charset=utf-8; type="text/xml; charset=utf-8" > content-transfer-encoding: binary > urn:uuid:3190bf5b-4944-4d5f-8362-fed2fdaf294chttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymoushttp://d4639:8080/axis2/services/myService wsu:Id="Timestamp-444822f9-5e62-401d-9537-85bff44e5248">2006-10-30T21:52:17Z2006-10-30T21:57:17Zhivalue130020014.51002006-10-1313:30:00.0000000-05:00hi152006-10-30<TABLE><InData><col1>1</col1><col2>2</col2></InData></TABLE> > ----MIMEBoundary632978239375477793-- > Notice that .NET escaped the contents of the element. > <TABLE><InData><col1>1</col1><col2>2</col2></InData></TABLE> > When I receive the contents of the element at runtime, I see that Axis2 has the following content: > <TABLE><InData><col1>1</col1><col2>2</col2></InData></TABLE> > Notice that < is still escaped, but the > are unescaped. When I ask the Axis2 engine for children, it thinks that it has none.
should be its one and only child element. > Can someone explain what's going on here? Why < remains escaped as < and > are unescaped. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org