1) how can i get access to web services via URL, for example, if wsdl file
here http://localhost:8080/services/bookstore?wsdl i want to use url
http://localhost:8080/services/bookstore/getBooks for get all books, but i
can't do it.
2) how can i write client for standalone application for this web service???
--
View this message in context: http://www.nabble.com/CXF-example-http%3A--www.mulesource.org-display-CXF-Bookstore%2BExample-tf4937454.html#a14132753
Sent from the Mule - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
Or inside mule:
http://www.mulesource.org/display/CXF/Client+Outbound+Endpoint
- Dan
--
Dan Diephouse
MuleSource
http://mulesource.com | http://netzooid.com/blog
--
View this message in context: http://www.nabble.com/CXF-example-http%3A--www.mulesource.org-display-CXF-Bookstore%2BExample-tf4937454.html#a14145878
Sent from the Mule - User mailing list archive at Nabble.com.
JaxWsProxyFactoryBean pf = new JaxWsProxyFactoryBean();
pf.setServiceClass(Bookstore.class);
pf.setAddress("http://localhost:8080/services/bookstore");
Bookstore bookstore = (Bookstore) pf.create();
Collection<Book> books = bookstore.getBooks();
and run in on client (mule-publisher-demo) it throw exception:
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Could not
find conduit initiator for transport http://schemas.xmlsoap.org/soap/http
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:175)
at $Proxy33.getBooks(Unknown Source)
at org.mule.example.bookstore.publisher.Main.main(Main.java:21)
Caused by: java.lang.RuntimeException: Could not find conduit initiator for
transport http://schemas.xmlsoap.org/soap/http
at
org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:148)
at
org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:73)
at
org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:61)
at
org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:417)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:251)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:205)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
... 2 more
how can i use this service from client?
--
View this message in context: http://www.nabble.com/CXF-example-http%3A--www.mulesource.org-display-CXF-Bookstore%2BExample-tf4937454.html#a14146150
Sent from the Mule - User mailing list archive at Nabble.com.