• Post Reply Bookmark Topic Watch Topic
  • New Topic

CDATA  RSS feed

 
Ananth Ram
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to send some data as CDATA in my SOAP response.
So created a variable of String data type and trying to bind with style = "cdata" in binding xml. It is throwing exception.

private String sTest;

<value style="cdata" name="sTest" field="sTest" usage="optional" />

When I run the jibx compiler, it is not successful.

Please help me out.

Thanks in advance for help.

Ananth Ram
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Throwing exception"? "Not successful"? Please TellTheDetails.
 
Ananth Ram
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Typically below,

[bind] org.jibx.runtime.JiBXException: Binding binding.xml is unusable because of validation errors
[bind] at org.jibx.binding.Utility.loadBinding(Utility.java:369)
[bind] at org.jibx.binding.Utility.loadFileBinding(Utility.java:431)
[bind] at org.jibx.binding.Compile.compile(Compile.java:212)
[bind] at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
[bind] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[bind] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
[bind] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[bind] at java.lang.reflect.Method.invoke(Method.java:597)
[bind] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[bind] at org.apache.tools.ant.Task.perform(Task.java:348)
[bind] at org.apache.tools.ant.Target.execute(Target.java:357)
[bind] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[bind] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[bind] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[bind] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[bind] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[bind] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[bind] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[bind] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

Thanks,
Ananth Ram
 
Ananth Ram
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
name is not allowed in when using style="cdata".

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!