Hi all, I am new to web service and xfire. I am using xfire 1.2.4, I need my web service to accept an file. Is Soap attachment the prefer way to do it?
I use the schema first approach and use jaxb binding, i followed the xfire doco http://xfire.codehaus.org/JAXB+2.0 everything works fine if i put the base64 encoded file in the "attachment" tag. It makes the xml instance very hard to read so i think it will be cool if i can do soap attachment. But I can't find any info about exposing a soap attachment web service, so my question is how can i tell xfire to generate a wsdl for me which specify the soap message must contains an attachment? my schema is <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://bmw/new" xmlns:lead="http://bmw/new"> <complexType name="bmwNewLeadV1_1"> <sequence> <element name="version" type="string" fixed="1.1"/> <element name="attachment" type="base64Binary"/> </sequence> </complexType> <element name="bmwNewLead" type="lead:bmwNewLeadV1_1"/> </schema> and my web service interface is @WebService(name = "IBMWLeadService", targetNamespace = "http://bmw/new") @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) public interface BMWLeadWebService { @WebMethod BmwLeadResponse addLeadV1_1(@WebParam(name = "bmwNewLeadV1_1") BmwNewLeadV11 lead); } thanks Wai -- View this message in context: http://www.nabble.com/How-to-expose-a-web-service-with-soap-attachment-tf3756913.html#a10618232 Sent from the XFire - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
