I am trying to invoke a webservice (soap 1.2 based) from my workflow and I am getting an error java.lang.UnsupportedOperationException: Only document-style SOAP 1.1 http are supported for auto-selection of endpoint; none were found. at org.apache.cxf.endpoint.ClientImpl.findEndpoint(ClientImpl.java:217) at org.apache.cxf.endpoint.ClientImpl.<init>(ClientImpl.java:156) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:255) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:198) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:191) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:146) at com.test.WsDelegate.execute(WsDelegate.java:23)
yes it is identical. and what I think the reason for the error (found on google) is probably the webservice I am trying to invoke is a soap 1.2 compliant and I am using the JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance(); Client client = dcf.createClient(wsdlString);
which is for soap 1.1 compliant…Hence the error !! So my question is what is activiti way of invoking a soap 1.2 compliant webservice?
One of the options is to do it from java like in the example but use the cxf soap 1.2 way… But I think you already figured that out, tried it and failed, right?