Note that there are some explanatory texts on larger screens.

plurals
  1. POCalling axis2 web service from xfire client: The endpoint reference (EPR) for the Operation not found
    primarykey
    data
    text
    <p>I need to call axis2 web service with ws-security (username token) from xfire client over https. I could do the exercise via <a href="http://xfire.codehaus.org/Dynamic+Client" rel="nofollow noreferrer">xfire dynamic client</a>, but no luck with wsdl base client (i.e. generate java stub from wsdl). Could anybody point me out what could be wrong (stub, ws-security something else)?</p> <p>Exception:</p> <blockquote> <p>Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: The endpoint reference (EPR) for the Operation not found is <a href="https://localhost/services/DataServiceSample2" rel="nofollow noreferrer">https://localhost/services/DataServiceSample2</a> and the WSA Action = org.codehaus.xfire.fault.XFireFault: The endpoint reference (EPR) for the Operation not found is <a href="https://localhost/services/DataServiceSample2" rel="nofollow noreferrer">https://localhost/services/DataServiceSample2</a> and the WSA Action =</p> </blockquote> <p>Code:</p> <pre><code>public static void main(String[] args) throws MalformedURLException { ProtocolSocketFactory easy = new EasySSLProtocolSocketFactory(); Protocol protocol = new Protocol("https", easy, 9443); Protocol.registerProtocol("https", protocol); ObjectServiceFactory serviceFactory = new ObjectServiceFactory(); serviceFactory.setStyle("message"); Service serviceModel = serviceFactory.create(DataServiceSample2PortType.class); XFireProxyFactory factory = new XFireProxyFactory(); DataServiceSample2PortType service = (DataServiceSample2PortType) factory.create(serviceModel, "https://localhost:9443/services/DataServiceSample2"); Client client = Client.getInstance(service); client.addOutHandler(new DOMOutHandler()); Properties properties = new Properties(); properties.setProperty(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN); properties.setProperty(WSHandlerConstants.USER, "admin"); properties.setProperty(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT); properties.setProperty(WSHandlerConstants.PW_CALLBACK_CLASS, PasswordHandler.class.getName()); client.addOutHandler(new WSS4JOutHandler(properties)); sab.TopCustomerResponse topCustomersInCalifornia = service.topCustomersInCalifornia(null); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload