How to dynamicaly invoke a Provider WebService without a WSDL
I have a provider based WebService that is not specified via a WSDL. Now I need a way to call this from Java 6. In .NET I only need to create an EndpointReference an all works fine.
I created a W3CEndpointReference in Java 6 that points to the URL of the WebService. If I try to create a Dispatch as follows:
// usally I insert the wsdlLocation here, but what if I don't have one ???
Service service = Servcie.create(new QName("",""));
EndpointReference epr = W3CEndpointReference(new StreamSource(new StringReader()));
dispatch = service.createDispatch(epr, SOAPMessage.class, new WebServiceFeature);
I get an error "WSDL metadata required for current operation"
thanks in advance