It may happen because:
 * the target jbi endpoint is not yet activated when the http
components tries to create the wsdl (you can use the jmx console to
stop / start the http component, which should recreate the wsdl)
 * the target endpoint is not found (this means that when you send a
message, it will fail)
 * the wsdl port is not found: if the target wsdl defines a service,
it should be the same than  the jbi target service / endpoint.

If none of this solution works, send the wsdl generated by the jsr181
component .

Cheers,
Guillaume Nodet


On 5/16/06, bgoetzmann <[EMAIL PROTECTED]> wrote:

Thank you Guillaume,

Having do so with the following servicemix.xml modified, I've the same
incorrect behavior.
And when I use the URL http://localhost:8194/Service/?.wsdl from a browser,
I get
the message "No wsdl is available for this service" and the URL is changed
to http://localhost:8194/Service/main.wsdl.

Have you any idea ?



<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0";
xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";
xmlns:http="http://servicemix.apache.org/http/1.0";
xmlns:test="http://servicemix.org/test/";>
        <!-- Le conteneur JBI -->
        <sm:container id="jbi">
                <!-- property name="useMBeanServer" value="true"/>
                <property name="createMBeanServer" value="true"/>
                <property name="dumpStats" value="true"/>
                <property name="statsInterval" value="10"/ -->
                <sm:activationSpecs>

                        <sm:activationSpec>
                                <sm:component>
                                        <jsr181:component>
                                                <jsr181:endpoints>
                                                        <jsr181:endpoint 
pojoClass="TestService" annotations="none"
service="test:Hello" endpoint="testService"/>
                                                </jsr181:endpoints>
                                        </jsr181:component>
                                </sm:component>
                        </sm:activationSpec>

                        <sm:activationSpec>
                                <sm:component>
                                        <http:component>
                                                <http:endpoints>
                                                        <http:endpoint 
service="test:Hello" endpoint="testService"
role="consumer" defaultOperation="echo"
locationURI="http://localhost:8194/Service/";
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"; soap="true"/>
                                                </http:endpoints>
                                        </http:component>
                                </sm:component>
                        </sm:activationSpec>

                </sm:activationSpecs>
        </sm:container>
</beans>

--
View this message in context: 
http://www.nabble.com/Getting-WSDL-from-a-JSR181-POJO-Service-t1626322.html#a4408097
Sent from the ServiceMix - User forum at Nabble.com.




--
Cheers,
Guillaume Nodet

Reply via email to