I am trying to deploy a web service and I have it all configured, but my service is not found when I invoke it. My service is slightly different then the wsdl-first example. In that example there is an existing WSDL and the classes are generated from that. In my case, I have a web service impl and I have defined the interface in java myself. I can get the http su to show me my web service in the deployed services list like this:
Error 404 - Not Found. No service matched or handled this request. Known services are: http://10.0.1.2:8192/PersonService/ http://10.0.1.2:8192/SonicService/ But when I click on my SonicService WSDL I get resource not found. My question is how do I hook up the http consumer so it targets my jsr181 service properly, or is that even my problem? I am having a hard time figuring out how the messages generated by the http-su get targetted to the jsr 181 service. For reference, here are my two xbean files: http-su: <beans xmlns:http="http://servicemix.apache.org/http/1.0" xmlns:sonic="http://ws.sonic.com/Sonic"> <http:endpoint service="sonic:SonicService" endpoint="soap" targetService="sonic:SonicService" role="consumer" locationURI="http://10.0.1.2:8192/SonicService/" defaultMep="http://www.w3.org/2004/08/wsdl/in-out" soap="true"/> </beans> jsr181-su: <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0" xmlns:ws-sonic-jsr181="urn:servicemix:ws-sonic-jsr181"> <jsr181:endpoint pojoClass="com.sonic.ws.SonicImpl" /> </beans> And here is the Sonic class: @WebService( serviceName = "SonicService", targetNamespace = "http://ws.sonic.com/Sonic", endpointInterface = "com.sonic.ws.Sonic" ) public interface Sonic { String echo(String message); } and finally my SonicImpl class: public class SonicImpl implements Sonic { static { System.out.println("SonicImpl version 1.2"); } public String echo(String message) { return "You said \"" + message + "\""; } } Some of the stuff, like the namespaces, service name and target service I just made up because I don't know what they are. -- View this message in context: http://www.nabble.com/Web-service-using-HTTP-JSR181-services-w-o-a-wsdl-tf4965955s12049.html#a14225502 Sent from the ServiceMix - User mailing list archive at Nabble.com.