On Wed, Feb 9, 2011 at 7:17 PM, Richard Yao <[email protected]> wrote:
> *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* > > > Hi Your config looks right at first glance. From the output "Binding.ws JAXWS provider" it looks like you're using the RI based ws binding runtime. I'll have to try and see if that does process ?wsdl properly. I mostly use binding-ws-axis2-runtime as that version is the one that passes the OASIS compliance tests. You you try switching to that and see if that works for you? Regards Simon -- Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com
