You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jay <my...@gmail.com> on 2013/06/07 15:49:05 UTC

ServiceMIX - JAXB issue

Hi i have generated a WSDL file from java using cxf (java2ws) when i open a
an wsdl file in SOAP UI it looks as follow:

i used the webparam annotation in for a method in class.

<web:analyze xmlns:web="http://webservice.connect.xxx.xx/">
<server>?</server>
<user>?</user>
<pass>?</pass>
<port>?</port>
<guid>?</guid>
</web:analyze>

My requirement is to decode the xml file and read the parameter values.
 wrote a jaxb code to decode the above but it is throwing an parser
exception.. (i doubt about the prefix (web:analyze why it has generated the
prefix)) - 
Can some one please let us know your views?

String request =" the above xml file"
JAXBContext jc = JAXBContext.newInstance(xxxBean.class); // i annotated the
xml elements in the bean.

Unmarshaller um = jc.createUnmarshaller();

ConfigBean configBean = (ConfigBean) um.unmarshal(new
StringReader(request.toString()); // i am getting exception in this line.

I appreciate your views on the below..



--
View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMIX-JAXB-issue-tp5716976.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: ServiceMIX - JAXB issue

Posted by jay <my...@gmail.com>.
All - This has been sorted out..



--
View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMIX-JAXB-issue-tp5716976p5716977.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.