Hello,
I am trying to invoke a service which uses SOAP1.2 with below CXF client
code but it fails with exception
while creating the dynamic client object. I have attached the wsdl file for
reference here employeeservice.wsdl
<http://cxf.547215.n5.nabble.com/file/n5728096/employeeservice.wsdl> . can
anybody please help on this?
- Thanks
*Exception in thread "main" java.lang.UnsupportedOperationException: Only
document-style SOAP 1.1 http are supported for auto-selection of endpoint;
none were found.*
public class CXFClient {
public static void invokeDynamicClient() throws Exception {
System.out.println("Executing Dynamic Client.......");
JaxWsDynamicClientFactory dcf =
JaxWsDynamicClientFactory.newInstance();
//client to be created at application level
Client client =
dcf.createClient("http://localhost:8080/EmployeeServiceDataService5?WSDL");
Object[] response = client.invoke("getEmployeeDetails", 2);
System.out.println(response[0]);
client.destroy();
}
public static void main(String args[]) throws Exception {
invokeDynamicClient();
}
}
--
View this message in context:
http://cxf.547215.n5.nabble.com/Help-required-on-CXF-dynamic-client-Fails-to-invoke-SOAP1-2-service-tp5728096.html
Sent from the cxf-user mailing list archive at Nabble.com.