wood burning stoves 2.0*
The moose likes Web Services and the fly likes WebService Client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WebService Client" Watch "WebService Client" New topic
Author

WebService Client

mayur solanki
Greenhorn

Joined: Dec 28, 2007
Posts: 7
Hello Friends,

I am new to WebServices / Java, and i am trying to connect to a Java Webservice from a Client. Initially i faced issues with missing jars and stuff, but have progressed ahead, slowly and steadily and now am stuck at this point since last two days.

At least i am now touching the WS from my Web Service Client . I have tried with SOAP 1.1 AND 1.2 Schema version but with no progress. I read on internet saying the SOAP Message requrest/response should be binded with the schema which the WS Understands, but where to do this binding, in pom.xml, where to make the changes/config on the Client Side in Eclipse ? Can any one assist me on this please.


Exception in thread "main" org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve a binding forhttp://schemas.xmlsoap.org/wsdl/soap12/wsdl11soap12.xsd
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:349)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:251)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:147)
at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90)
at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:144)
at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:133)

Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap12/wsdl11soap12.xsdregistered.
at org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:120)


Many thanks in Advance, Kind Regards
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: WebService Client
 
Similar Threads
Axis2 Issue, Please Help!
JAX-WS web service - "Cannot find dispatch method"
webmethod of Doc/Lit bare style with only one header param generates part="" invalid wsdl soap:body
Spring-WS Client
.NET WSDL client generation