tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Yao" <Richard....@teranet.ca>
Subject Could not get wsdl from NodeFactory instance
Date Wed, 09 Feb 2011 19:17:59 GMT
Hi,

 

Do you know why I could not get the wsdl file using
http://localhost:8085/HelloWorld?wsdl - "404 Not Found: Invalid Request"
- for the following code?

 

The web service binding looks good from the log:

 

Log

Binding.ws JAXWS provider - Service URI:
http://localhost:8085/HelloWorld

Feb 9, 2011 1:51:37 PM
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryImpl
addEndpoint

INFO: Add endpoint - (@14633980)Endpoint:  URI =
HelloWorldComponent-WS#service-binding(HelloWorld/HelloWorld)

HelloWorldImpl.sayHello World

Hello World

Press any key to stop.

 

Test java

        String uri =
ContributionLocationHelper.getContributionLocation(HelloWorld.class);

        Contribution contribution = new Contribution("c1", uri);

        Node node =
NodeFactory.newInstance().createNode("HelloWorld.composite",
contribution);

        node.start();

        

        System.out.println("Press any key to stop.");

        System.in.read();

 

        node.stop();

 

Composite

    <component name="HelloWorldComponent-WS">

        <implementation.java class="ca.teranet.ras.HelloWorldImpl" />

        <service name="HelloWorld">

            <binding.ws uri="/HelloWorld" />

        </service>

    </component>

 

Thanks,
Richard Yao

 


Mime
View raw message