I have a http-consumer that looks like 

<beans xmlns:http="http://servicemix.apache.org/http/1.0";
       xmlns:jsr="urn:barnes:jsr">


  <http:endpoint service="jsr:TestService"
                 endpoint="myProvider"
                 role="consumer"
                 targetEndpoint="jsr:TestServiceJBIPort" 
                 locationURI="http://0.0.0.0:8192/TestService/";
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                 soap="true"
                 />             
</beans>

and a jsr-181 bean 

<beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";
       xmlns:jsr="urn:barnes:jsr">

    <jsr181:endpoint endpoint="testEndPoint"
pojoClass="barnes.jsr.TestService"/>

</beans>

with an annotated web service

@WebService(name = "TestService", targetNamespace = "urn:barnes:jsr")
public class TestService {

        @WebMethod
        public String sayHello(String name) {
                return "Hello "+name;
        }
}

In my jconsole i get endpoints that are 
{urn_barnes_jsr}TestServicemyProvider
{urn_barnes_jsr}TestServicetestEndPoint

but when i go to http://localhost:8192/TestService I get unable to find
requested resource 
RequestURI=/TestService/main.wsdl

In the wsdl-first example I see there is a wsdl file in the project that I
dont have.  Shouldnt the jsr-bean auto generate the wsdl and allow me to
point at it using targetService or targetEndpoint and why is it looking for
main.wsdl.  Thanks for any help.











-- 
View this message in context: 
http://www.nabble.com/jsr181-auto-generation-tp21128607p21128607.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to