Hi guys, I'm trying to define a service with this services.xml
<service> <name>GwRepositoryService</name> <namespace>http://www.accv.es/jlibrary_gateway/GwRepositoryService</namespace> <serviceClass>es.accv.jlibrarygateway.GwRepositoryService</serviceClass> <style>wrapped</style> <scope>application</scope> </service> and getting my client like this: XFire xfire = XFireFactory.newInstance().getXFire(); XFireProxyFactory xfirePF = new XFireProxyFactory(xfire); ServiceFactory factory = new ObjectServiceFactory(); Service serviceModel = factory.create(cInterfaz, serviceName, nameSpace, null); Object service = xfirePF.create(serviceModel, serviceUrl + serviceName); Client client = ((XFireProxy) Proxy.getInvocationHandler(service)).getClient(); client.setProperty(HttpTransport.CHUNKING_ENABLED, "true"); This is running correctly, but i think it would to run better if i could turn on SOAP 1.2, CHUNKING, MTOM and GZip compression at the same time, Am I right? In my tests, I didn't manage to activate the MTOM support with SAOP 1.1, but as it's a new thing for soap 1.2 I though it was normal. I didn't have found no examples of soap 1.2 client creation, I've just read the class ObjectServiceFactory works with Soap 1.1 by default but without clues about SOAP 1.2 In previous versions I've read that we can to set the SOAP version just with the tag <soapVersion/> in the services.xml but it has been replaced by the bindings. I've changed my services XML like this: <service> <name>GwRepositoryService</name> <namespace>http://www.accv.es/jlibrary_gateway/GwRepositoryService</namespace> <serviceClass>es.accv.jlibrarygateway.GwRepositoryService</serviceClass> <style>wrapped</style> <scope>application</scope> <createDefaultBindings>false</createDefaultBindings> <bindings xmlns:e="urn:GwRepositoryService"> <soap12Binding name="e:GwRepositoryServiceSoap12Binding" transport="http://www.w3.org/2003/05/soap/bindings/HTTP/" allowUndefinedEndpoints="true"/> </bindings> </service> But it doesn't run ok, throwing me this exception: org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not find an appropriate Transport Binding to invoke. org.codehaus.xfire.fault.XFireFault: Could not find an appropriate Transport Binding to invoke. at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31) at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28) at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111) at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Client.onReceive(Client.java:382) at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139) at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48) at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75) at org.codehaus.xfire.client.Client.invoke(Client.java:335) at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77) at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) Any idea? Can anyone help me? Thank you in advance. Javier --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
