Hi Alistair, I ran into a similar problem. Here's how I worked around the problem: 1)Note the "interface" webservice annotation in the service implementation : say SonOfPliersImpl.java 2)In the uhi-sonofpliers-http-su*.zip , unzip the archive, edit the META-INF/jbi.xml to have an interface-name attribute. Set the value to the one in step[1]. Repackage the edited archive into a zip again 3)Drop this zip into <Servicemix>/deploy directory. You shouldn't be seeing the annoying message again.
I couldn't see the WSDL either ; but then when I looked into http://localhost:8192/ , I could see the service listed and the wsdl uri displayed was : http://<my machine name>:8192/<something>/main.wsdl. Hope this helps. Eric. Alistair Young wrote: > > I turned on all logging and got this error which I have no idea how > to fix as I didn't create the file! > > Validation error on file:/Users/alistair/apps/apache-servicemix-3.1.1- > incubating/data/smx/service-assemblies/uhi-sonofpliers-sa/version_1/ > sus/servicemix-http/uhi-sonofpliers-http-su/META-INF/jbi.xml: > org.xml.sax.SAXParseException: cvc-complex-type.4: Attribute > 'interface-name' must appear on element 'consumes' > > <?xml version="1.0" encoding="UTF-8"?> > <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0"> > <services binding-component="false" xmlns:uhi="http://uhi.ac.uk"> > <consumes service-name="uhi:SonOfPliersService" endpoint- > name="getAccountStatus"/> > </services> > </jbi> > > how can I get the hello world se to work? > > thanks, > > Alistair > > > -------------- > mov eax,1 > mov ebx,0 > int 80h > > > > > On 23 Aug 2007, at 11:25, Alistair Young wrote: > >> Hi there, >> >> I'm new to Servicemix and was following the HelloWorld SE tutorial at: >> >> http://incubator.apache.org/servicemix/hello-world-se.html >> >> but it doesn't say how to test the HTTP endpoint, e.g. I have this >> installed/deployed: >> >> http://localhost:8192/Service/SonOfPliersService/ >> >> no WSDL is available (Error 404) >> >> and I've no idea how to actually use the service via simple HTTP >> GET. The end to end testing in the tutorial is empty. >> >> The JBI component is: >> >> <hwse:endpoint service="uhi:SonOfPliersService" >> endpoint="getAccountStatus"/> >> >> does anyone know how I can actually get output from the endpoint >> that the servicemix-http is proxying without using SOAP? i.e. I >> just want to send it a GET request and get the plain text back. >> >> http-su xbean.xml: >> <beans xmlns:http="http://servicemix.apache.org/http/1.0" >> xmlns:uhi="http://uhi.ac.uk"> >> <http:endpoint service="uhi:SonOfPliersService" >> endpoint="getAccountStatus" >> role="consumer" >> locationURI="http://sgarbh.smo.uhi.ac.uk:8192/ >> Service/SonOfPliersService" >> defaultMep="http://www.w3.org/2004/08/wsdl/in- >> out" /> >> </beans> >> >> su xbean.xml: >> <beans xmlns:hwse="http://uk.ac.uhi.provisioning.sonofpliers.se/1.0" >> xmlns:uhi="http://uhi.ac.uk"> >> <hwse:endpoint service="uhi:SonOfPliersService" >> endpoint="getAccountStatus"/> >> </beans> >> >> thanks, >> >> Alistair >> >> >> -------------- >> mov eax,1 >> mov ebx,0 >> int 80h >> >> >> >> > > > -- View this message in context: http://www.nabble.com/Testing-the-HelloWorld-SE-tf4316650s12049.html#a12426840 Sent from the ServiceMix - User mailing list archive at Nabble.com.
