Hi, I'm using jbossws-native-2.0.1 (default for the AS 4.2.2.GA). I've used ws-consume on a wsdl from a thirdparty (see attached file).
When I try the create the service Service service = Service.create(getWsdlUrl(), getServiceName()); I get an error Caused by: org.jboss.ws.WSException: Cannot deploy null policy! | at org.jboss.ws.extensions.policy.deployer.PolicyDeployer.deployClientSide(PolicyDeployer.java:146) | at org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.deployPolicyClientSide(PolicyMetaDataBuilder.java:310) | at org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.deployPolicy(PolicyMetaDataBuilder.java:277) | at org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.processPolicies(PolicyMetaDataBuilder.java:236) | at org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.processPolicyExtensions(PolicyMetaDataBuilder.java:193) | at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:93) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:131) | at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61) | at javax.xml.ws.Service.<init>(Service.java:83) | at javax.xml.ws.Service.create(Service.java:721) | at nl.denhaag.gbd.services.ebus.attachmentservice.client.AttachmentServiceClient.initEndpoint(AttachmentServiceClient.java:63) | ... 43 more When I use the same code on a webservice that does not use MTOM everything is working fine. What should I do to provide a policy for MTOM on the clientside? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242434#4242434 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242434 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user