axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: CDATA text getting lost during execution
Date Mon, 02 Oct 2006 22:46:39 GMT
Please create a JIRA issue. Sounds like a bug?

thanks,
dims

On 10/2/06, Dave Miller <dave.s.miller@gmail.com> wrote:
> Hello,
>
> Using Axis2... I created my stubs to consume the client with the Eclipse
> plugin.
>
> My client requires XML to be sent within the SOAPBody, so i have gone about
> creating the XML using a tree of OMElement and OMTexts.
>
> This:
>
> OMElement toFirstName = fac.createOMElement("ToFirstName", null);
> toFirstName.addChild(fac.createOMText(toFirstName, "Phil"));
>
> Creates:
>
> <ToFirstName>Phil</ToFirstName>
>
> This:
>
> OMElement fromEmailAddress = fac.createOMElement("FromEmailAddress", null);
> fromEmailAddress.addChild(fac.createOMText(fromEmailAddress,
> "Dsi.Chil@nc12.com ", XMLStreamConstants.CDATA));
>
> Creates:
>
> <FromEmailAddress><!CDATA[Dsi.Chil@nc12.com]]></FromEmailAddress>
>
> And this:
>
> OMElement emailAddress = fac.createOMElement("EmailAddress", null);
> OMTextImpl txt = new
> OMTextImpl("asd.tre@qwe.com",OMNode.CDATA_SECTION_NODE,fac);
>
> Creates:
>
> <EmailAddress>><!CDATA[ asd.tre@qwe.com]]></EmailAddress>
>
> I set the OMElement to my object, and get the above data.. this is all
> great.
>
> But then, when i go to call the remote method from the stub like:
>
> stub.updateEmail(email);
>
> The data in both CDATA sections is missing (I had to sniff the packets I was
> sending, as the object that i created and invoked with the stub was ok),
> like this:
>
> <FromEmailAddress><!CDATA[]]></FromEmailAddress>
> <EmailAddress>><!CDATA[]]></EmailAddress>
>
> This seems really strange.... ? Does anyone have any clues as to what is
> going on?
>
> Thanks,
>
> Dave.
>
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message