Hi Guzmán, Not sure how your client program looks and what problem you are having there.
And which version of CXF are you using? I just noticed that your generated code has a very old and unique version string. /** * This class was generated by Apache CXF 2.2.12-patch-04 * regards, aki 2014-03-21 4:29 GMT+01:00 Guzmán Llambías <[email protected]>: > Hi guys! > > I'm trying to use the cxf.xml config on my client without success. Could > anybody point me what am I doing wrong? > > here's my cxf.cml > > <jaxws:client id="mtomClient" > serviceClass="test.mtom.MTOMSampleImplService" > address="http://localhost:8080/WSAddressing/MTOMSampleImpl"> > <jaxws:properties> > <entry key="mtom-enabled" value="true"/> > </jaxws:properties> > </jaxws:client> > > below is the MTOMSampleImplService class > > thanks in advance > Guzmán > > package test.mtom; > > import java.net.MalformedURLException; > import java.net.URL; > import javax.xml.namespace.QName; > import javax.xml.ws.WebEndpoint; > import javax.xml.ws.WebServiceClient; > import javax.xml.ws.WebServiceFeature; > import javax.xml.ws.Service; > > /** > * This class was generated by Apache CXF 2.2.12-patch-04 > * Thu Mar 20 22:50:14 GFT 2014 > * Generated source version: 2.2.12-patch-04 > * > */ > > > @WebServiceClient(name = "MTOMSampleImplService", > wsdlLocation = > "http://localhost:8080/WSAddressing/MTOMSampleImpl?wsdl", > targetNamespace = "http://mtom.test/") > public class MTOMSampleImplService extends Service { > > public final static URL WSDL_LOCATION; > public final static QName SERVICE = new QName("http://mtom.test/", > "MTOMSampleImplService"); > public final static QName MTOMSampleImplPort = new > QName("http://mtom.test/", "MTOMSampleImplPort"); > static { > URL url = null; > try { > url = new > URL("http://localhost:8080/WSAddressing/MTOMSampleImpl?wsdl"); > } catch (MalformedURLException e) { > System.err.println("Can not initialize the default wsdl from > http://localhost:8080/WSAddressing/MTOMSampleImpl?wsdl"); > // e.printStackTrace(); > } > WSDL_LOCATION = url; > } > > public MTOMSampleImplService(URL wsdlLocation) { > super(wsdlLocation, SERVICE); > } > > public MTOMSampleImplService(URL wsdlLocation, QName serviceName) { > super(wsdlLocation, serviceName); > } > > public MTOMSampleImplService() { > super(WSDL_LOCATION, SERVICE); > } > > > /** > * > * @return > * returns MTOMSample > */ > @WebEndpoint(name = "MTOMSampleImplPort") > public MTOMSample getMTOMSampleImplPort() { > return super.getPort(MTOMSampleImplPort, MTOMSample.class); > } > > /** > * > * @param features > * A list of {@link javax.xml.ws.WebServiceFeature} to configure on > the proxy. Supported features not in the <code>features</code> parameter > will have their default values. > * @return > * returns MTOMSample > */ > @WebEndpoint(name = "MTOMSampleImplPort") > public MTOMSample getMTOMSampleImplPort(WebServiceFeature... features) { > return super.getPort(MTOMSampleImplPort, MTOMSample.class, features); > } > > } >
