Endpoint ServiceEndpoint has a service description,but no matching endpoint
jayasreeb Jul 15, 2008 2:31 AMHi,
I have developed and deployed external web service in Axis1.4 using Tomcat. By giving following external web service location (http://localhost:8080/axis/services/fibonacci?wsdl) in browser I am able to see the generated wsdl file.
My requirement is to write a client in servicemix and call a method in external web service and get response from it.I have followed following steps..
1.I have created service unit (cxf-se) and placed the fib.wsdl(external webservice wsdl) under (main\src\resource) and generated the client stubs required to call the external webservice from service mix.
2. I have written following client program in cxf-se service unit to call this external web service.Its under (main\src\java)
package org.apache.servicemix.samples.webservice;
import org.apache.servicemix.samples.fibonacci.*;
import java.io.File;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class FibonacciClient{
private static final Log log = LogFactory.getLog(FibonacciClient.class);
public static void main(String args[])
{
log.info("inside Fuse Fibonacci Client Program");
QName serviceName = new QName("urn:fibonacci", "FibonacciService");
Service s = Service.create(serviceName);
QName portName = new QName("urn:fibonacci", "fibonacci");
s.addPort(portName, "http://schemas.xmlsoap.org/soap/", "http://localhost:8080/axis/services/fibonacci");
Fibonacci proxy = s.getPort(portName, Fibonacci.class);
//Quote quote = proxy.calculateFibonacci(3);
log.debug("Calculated Fibonacci in Client--->"+proxy.calculateFibonacci(3));
}
}
3. My xbean.xml of service unit(cxf-se) has following entries
6. After this I created service assembly and successfully able to deploy it in service mix.
7. In service mix i got the following trace::
Jul 15, 2008 11:34:55 AM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service FibonacciClientService from class org.ap
ache.servicemix.samples.webservice.FibonacciClient
Jul 15, 2008 11:34:56 AM org.apache.cxf.configuration.spring.ConfigurerImpl getBeanName
INFO: Could not determine bean name for instance of class org.apache.cxf.transport.jbi.JBIDestination.
Jul 15, 2008 11:34:56 AM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be jbi://ID-10-66-177-114-11b2537ebfe-20-0
INFO - ServiceUnitLifeCycle - Starting service unit: fuse-client-http-bc
INFO - WSDL1Processor - Endpoint ServiceEndpoint[service=FibonacciService,endpoin
t=FibonacciClient] has a service description, but no matching endpoint found in
*)Can you help me in resolving this?
*)Whether the steps followed for calling external web service from service mix client is correct?
*) How can I test in service mix whether the method of external web service is returning proper value? I mean how to perform the test?
Its urgent please help me in resolving this..
Jayasree.B