ok, thanks Guillaume. I'll take a look at exposing a service. many thanks,
Alistair -- mov eax,1 mov ebx,0 int 80h > On 8/24/07, Alistair Young <[EMAIL PROTECTED]> wrote: >> > http://incubator.apache.org/servicemix/should-i-create-my-own-jbi-components.html >> yes, I read that. I was just following the Hello World SE tutorial on >> the >> site but it seem too incomplete to get it to work. It doesn't mention >> anything about describing the endpoint. > > This is a hello world tutoria. Which means the purpose is to be simple > and > have a quick tutorial. If you want more in depth information, I'd suggest > to > take a look at the existing servicemix components. > >> >> > servicemix-jsr181 >> yes, that's really nice. I understand how the wsdl-first example works >> using this. I don't want SOAP requests though. I was just trying to >> access >> a service via HTTP GET. > > The whole point of JBI is to loosely couple the service. You can use a > jsr181 > pojo without soap, or change the implementation of the wsdl-first example > to > a drools endpoint, a script endpoint or whatever you want... > Try servicemix-jsr181 or servicemix-bean if you only want to expose a > service. > >> >> thanks for your help, >> >> Alistair >> >> >> -- >> mov eax,1 >> mov ebx,0 >> int 80h >> >> > >> > On Aug 24, 2007, at 2:11 PM, Alistair Young wrote: >> > >> >> thanks for that. There is no WSDL as I don't think you need one in >> >> this >> >> case? The docs don't say to create one. Then again the docs are >> >> incomplete >> >> so maybe you do. Not sure what to do. >> > >> > WSDL is optional. I'm quite sure the log entry you've seen is at >> > debug level, >> > so this is not to be considered as a problem per se, but just an >> > indication >> > of what happens. >> > >> >> >> >> With Apache Axis, Axis will generate WSDL if you don't supply it. >> Does >> >> ServiceMix do the same? >> > >> > Sure, but this is the role of servicemix-jsr181 to do that. If you >> > implement >> > your own SE, you have to figure what you want to do with the >> > endpoints you >> > control. Axis or servicemix-jsr181 use a deployed POJO to create a >> > WSDL. >> > In your case, there is no pojo and you need to describe the service >> > implemented >> > by your endpoint. There is nothing to generate a WSDL from :-( >> > >> > If the target endpoint has a WSDL description, servicemix-http will >> > use this one >> > to expose it on the HTTP server so you could browse it in your web >> > browser. >> > >> > Did you make sure you read http://incubator.apache.org/servicemix/ >> > should-i-create-my-own-jbi-components.html >> > and that you need to create you own SE ? You may want to use >> > servicemix-jsr181 >> > or servicemix-bean ... >> > >> > Cheers, >> > Guillaume Nodet >> > >> > >> >> >> >> Alistair >> >> >> >> >> >> -- >> >> mov eax,1 >> >> mov ebx,0 >> >> int 80h >> >> >> >>> The log entry means that there is no wsdl description for the >> >>> endpoint. >> >>> Which may be the case if your <hwse:endpoint /> does not expose one. >> >>> This should not prevent the whole flow to work though. >> >>> >> >>> -- >> >>> Cheers, >> >>> Guillaume Nodet >> >>> ------------------------ >> >>> Blog: http://gnodet.blogspot.com/ >> >>> >> >>> >> >>> On Aug 24, 2007, at 1:36 PM, Alistair Young wrote: >> >>> >> >>>> ok, the validation error is a bum steer - they all do that, even >> >>>> the ones >> >>>> that work. >> >>>> >> >>>> My problem seems to be: >> >>>> >> >>>> icemix.common.DefaultComponent 87 | No description found for >> >>>> {http://uhi.ac.uk}SonOfPliersService:getAccountStatus >> >>>> >> >>>> my xbean.xml are: >> >>>> >> >>>> su: >> >>>> <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> >> >>>> >> >>>> http-su: >> >>>> <beans xmlns:http="http://servicemix.apache.org/http/1.0" >> >>>> xmlns:hwse="http:// >> >>>> uk.ac.uhi.provisioning.sonofpliers.se/1.0" >> >>>> xmlns:uhi="http://uhi.ac.uk"> >> >>>> >> >>>> <http:endpoint service="uhi:SonOfPliersService" >> >>>> endpoint="getAccountStatus" >> >>>> role="consumer" >> >>>> locationURI="http://localhost:8192/ >> >>>> SonOfPliersService" >> >>>> defaultMep="http://www.w3.org/2004/08/wsdl/in- >> >>>> out" /> >> >>>> >> >>>> </beans> >> >>>> >> >>>> can anyone please point me in the right direction? >> >>>> >> >>>> thanks, >> >>>> >> >>>> Alistair >> >>>> >> >>>> >> >>>> -- >> >>>> mov eax,1 >> >>>> mov ebx,0 >> >>>> int 80h >> >>>> >> >>>>> 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 >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>> >> >>>>> >> >>>> >> >>> >> >>> >> >> >> > >> > >> >> > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ >
