Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

issues with axis1.4 deserialization

 
Ajaya Kumar Swain
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using axis1.4 for webserivce and doclitral approach

in schema, one element is declared as:
<element name="title" type="tns1:length_200" maxOccurs="1"
minOccurs="1">
</element>
Given below is the same node in my request xml, where i am facing issues

scenario 1.

if I am passing like <pol:title>${#TestSuite#uniqueTitleStringRiskComponent}</pol:title>

then value of title becomes null

scenario 2.

if I am passing like <pol:title>${#TestSuite#uniqueTitleStringRiskComponent</pol:title> (i.e no "}" at the end )

then

fault string i am getting
<faultstring>org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.</faultstring>

scenario 3.

if I am passing like <pol:title>{#TestSuite#uniqueTitleStringRiskComponent}</pol:title> (i.e no "$ at the beginning" )

then

title contains the passed value i.e "{#TestSuite#uniqueTitleStringRiskComponent}"

scenario 4.

if I am passing like <pol:title>$#TestSuite#uniqueTitleStringRiskComponent}</pol:title> (i.e no "{ at the beginning" )

then

title contains the passed value i.e "{#TestSuite#uniqueTitleStringRiskComponent}"

My Observation:

may be When axis deserialization happens it interpits "${some string}" as null value or may be empty tag..

can some body suggest how can i get the proper attribute(title) value


Thanks in advance.

Ajaya


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic