it looks like the code for soap 1.2 handling is missing in the current code.
i'll take a look at it to see what's happening.
regards, aki


2013/5/22 srinivas thallapalli <[email protected]>

> 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.
>

Reply via email to