Hi, Actually i have built a web service that is deployed in the service mix.Now the wsdl generated from deploying the project is used to generate the client stubs.I have written external java programm which interacts with these stubs and calls the method exposed by the web service.
Now i did the same thing that u told me and now i am not getting any error but while calling the method from the external client i am not getting the desired output. This is the implementation class of the web service package org.apache.servicemix.samples.webservice; import org.apache.servicemix.samples.hello.*; import javax.jws.WebService; import java.io.*; import javax.xml.bind.JAXBContext; import myJaxb.Customer; import javax.xml.bind.Unmarshaller; import java.io.File; //@WebService(targetNamespace = "http://swebservice.samples.servicemix.apache.org/") @WebService(targetNamespace ="http://swebservice.samples.servicemix.apache.org/", serviceName="HelloTestService",endpointInterface="org.apache.servicemix.samples.hello.HelloTest") public class HelloTestImpl implements HelloTest{ private String message = "HELLO!!!!!"; public String sayHello(File input) { String c=null; try{ c="hi"; JAXBContext jc = JAXBContext.newInstance("myJaxb"); Unmarshaller unmarshaller = jc.createUnmarshaller(); Customer b= (Customer) unmarshaller.unmarshal(new File("Address_Std.xml")); System.out.println(b.getCurrency()); return b.getCurrency(); }catch(Exception e){System.out.println(e);} return message+c; } } Now when i call this method, it should return me the value under the currency tab in the xml file but i am not getting that.Can u suggest where i am going wrong The output i am getting is Hello ........hi Reply soon. skg wrote: > > Hi, > How do we perform the parsing of an xml document in servicemix using JAXB. > kindly explain early. > -- View this message in context: http://www.nabble.com/Parsing-an-XML-document-in-service-mix-using-JAXB-tp18767847p18826524.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
