5 messages in org.apache.xmlbeans.userXmlBeans behaving different in service
FromSent OnAttachments
Alex RayanOct 17, 2007 3:24 pm 
Jacob DannerOct 17, 2007 3:45 pm 
Alex RayanOct 17, 2007 4:06 pm 
Cezar AndreiOct 18, 2007 1:06 pm 
Alex RayanOct 23, 2007 1:58 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:XmlBeans behaving different in serviceActions
From:Alex Rayan (alex@gmail.com)
Date:Oct 17, 2007 3:24:08 pm
List:org.apache.xmlbeans.user

Hi ,

I'm using org.apache.xmlbeans.2.3.0. Using Eclipse/maven2/OSGI for development/deployment.

I've generated the java classes from the xsd document. And using those classes I generate my request XML.

This works fine when I run this within Eclipse.

But when I deploy my application as a service in a OSGI container, the xml generated doesnt have the xsi:type in the XML.

Server is external and it rejects the xml without this xsi:type.

XML generated when run as standalone .

<entry xsi:type="userAddition" xmlns:user="http://www.abc.com/schemas/user "> <user:firstName>Beena</user:firstName> <user:lastName>Nambiar</user:lastName> </entry>

XML generated when deployed as a service

<entry xmlns:user="http://www.abc.com/schemas/user"> <user:firstName>Beena</user:firstName> <user:lastName>Nambiar</user:lastName> </entry>

My pom file has these dependencies currently listed

org.apache.xmlbeans xmlbeans xmlbeans-qname xmlbeans-xpath xmlbeans-xmlpublic

Any idea why the behavior is different in standalone environment and container ? Any other dependencies I need to add to make this work in a service environment. ? Thanx

-Alex