Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 16053 invoked from network); 6 Dec 2004 09:33:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Dec 2004 09:33:56 -0000 Received: (qmail 89247 invoked by uid 500); 6 Dec 2004 09:33:42 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 89228 invoked by uid 500); 6 Dec 2004 09:33:42 -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: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 89215 invoked by uid 99); 6 Dec 2004 09:33:42 -0000 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=FORGED_RCVD_HELO,HTML_20_30,HTML_MESSAGE,NORMAL_HTTP_TO_IP,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from rtpsfimr001.gsk.com (HELO rtpsfimr001.glaxo.com) (192.58.204.11) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 06 Dec 2004 01:33:40 -0800 Received: from rtpsasmtp04.glaxo.com ([143.193.73.235]) by rtpsfimr001.glaxo.com with ESMTP id iB69UPU5025966 for ; Mon, 6 Dec 2004 04:30:25 -0500 (EST) Received: from us9n52.glaxo.com (us9n52.glaxo.com [143.193.73.217]) by rtpsasmtp04.glaxo.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id iB69XMrc029403 for ; Mon, 6 Dec 2004 04:33:37 -0500 Received: from 143.193.73.233 by us9n53.glaxo.com with ESMTP (Tumbleweed SMTP Relay); Mon, 06 Dec 2004 04:33:34 -0400 Received: from sbhsnsm1.sb.com (sbhsnsm1.sb.com [166.71.155.16]) by rtpsasmtp02.glaxo.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id iB69XLw5008275 for ; Mon, 6 Dec 2004 04:33:34 -0500 In-Reply-To: <41B1312A.60003@shaw.ca> To: axis-user@ws.apache.org Subject: Re: WSDL2JAVA Problem MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.0 September 26, 2002 Message-ID: From: tony.q.weddle@gsk.com Date: Mon, 6 Dec 2004 09:33:00 +0000 X-MIMETrack: Serialize by Router on SBHSNSM1/SERVERS/SB_PLC(Release 5.0.10 |March 22, 2002) at 06/12/2004 09:33:32, Serialize complete at 06/12/2004 09:33:32 X-WSS-ID: 6DAAF8E43359230-01-01 Content-Type: multipart/alternative; boundary="=_alternative 0034867C80256F62_=" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a multipart message in MIME format. --=_alternative 0034867C80256F62_= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm guessing that Axis is replacing any characters that might be confused with XML markup, hence "<" is being replaced with "<" and so on. I'm not sure why this wouldn't get changed back again at the server side. Perhaps you can try defining the parameter as a CDATA section, in your XML schema. Tony Conrad wrote on 04/12/2004 03:38:18: > I am having problems with the following. > I have used WSDL2Java to generate client code. I am not able to send a > xml document without > the following problem. > I am sending but the code sends > > <help></help> > > here is the code > > Object part = (Object) " javax.xml.rpc.Service service = new Service(); > URL endpointURL = new > URL("http://192.168.7.100:8080/retsclientapp/services/RETSWS"); > RETSWSSoapBindingStub callme = new > RETSWSSoapBindingStub(endpointURL,service); > callme.handleMessage(part); > > Of couse the other end is not seeing the " <help></help> " > as a xml element > > The web service is a document style web service. > > How do I prepare the xml document so the generated axis code sends the > document with <> tags not < or & gt; > > Conrad > --=_alternative 0034867C80256F62_= Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
I'm guessing that Axis is replacing any characters that might be confused with XML markup, hence "<" is being replaced with "&lt;" and so on. I'm not sure why this wouldn't get changed back again at the server side. Perhaps you can try defining the parameter as a CDATA section, in your XML schema.

Tony

Conrad <cagotzmann@shaw.ca> wrote on 04/12/2004 03:38:18:

> I am having problems with the following.
> I have used WSDL2Java to generate client code. I am not able to send a
> xml document without
> the following problem.
> I am sending <help></help> but the code sends
>
> &lt;help&gt;&lt;/help&gt;
>
> here is the code
>
> Object part = (Object) "<help></help";
> javax.xml.rpc.Service service = new Service();
> URL endpointURL  = new
> URL("http://192.168.7.100:8080/retsclientapp/services/RETSWS");
> RETSWSSoapBindingStub callme = new
> RETSWSSoapBindingStub(endpointURL,service);
> callme.handleMessage(part);
>
> Of couse the other end is not seeing the  " &lt;help&gt;&lt;/help&gt; "
> as a xml element
>
> The web service is a document style web service.
>
> How do I prepare the xml document so the generated axis code sends the
> document with <> tags not &lt or & gt;
>
> Conrad
>
--=_alternative 0034867C80256F62_=--