Hi,
Having followed the cxf documentation on consuming a webservice, I can't get it to work with a : "org.apache.cxf.service.factory.ServiceConstructio nException: Could not find definition for service {http://service.mysite.msw.nl/}VatValidatorServiceService."
PHP Code:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
<jaxws:client id="vatClient"
serviceClass="nl.msw.mysite.service.VatValidatorService"
address="http://ec.europa.eu/taxation_customs/vies/services/checkVatService"
wsdlLocation="http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl"/>
</beans>
@WebService
public interface VatValidatorService {
public HashMap<String,Object> checkVat(String[] params);
}
public class TestClient{
private VatValidatorService;
@Autowired
public void setVatClient(VatValidatorService vatValidator) {
this.vatValidator = vatValidator;
}
[...]
}
Any ideas on this supposed piece of cake?
Kind regards,
Marc