Sorry, I misread you as i thought you said your were using servicemix to mock a service exposed on the uri. So i don't see why it would not work, but unless you plan to use http post, you'd have to write your own custom http marshaler.
On Tue, May 6, 2008 at 4:18 PM, kapilsharma <[EMAIL PROTECTED]> wrote: > > Hi gnodet, > > Thanks for the reply. > > You told that I should not append testService1.php > > Just to clear, testService1.php is a completely separate URL outside JBI > environment and running on apache server. Right now I'm having apache > server(PHP), tomcat(J2EE) and SMX on same machine but in future, it might be > running on different physical server (Machines). In that example, I just > wanted to hit it a PHP (or JSP) page through Servicemix (SMX->HTTP > Protocol-> PHP Service). > > An ESB is used as a common communication gateway between different > technology (J2EE, ASP, PHP etc). If I could not hit a php page through > servicemix, is it mean Service mix is developed for web-services based on > Java technologies only. Is it correct? > > My flow is very normal > Browser->SMX->PHPWebPage. > > I can easily do Browser->PHPWebPage but I want to do it through SMX for > testing purpose. I think it is one of the most simple example. > > Are you sure Service mix can not hit a PHP page? > > > > > gnodet wrote: > > > > I don't think you can expose a service on the following uri : > > http://localhost/esbtest/testService1.php > > > > You should be able to use: > > http://localhost/esbtest/ > > instead. > > > > > > On Tue, May 6, 2008 at 8:20 AM, kapilsharma > > <[EMAIL PROTECTED]> wrote: > >> > >> Gnodet, Pratibha, > >> > >> Did you solved the problem? > >> > >> My problem is a bit similar. I'll be a lot thankful if anyone of you let > >> me > >> know the problems with my or have could provide any hint. My problem is > >> given below: > >> > >> Diagram below shows the flow I'm trying to achieve with Service Mix > >> 3.2.1 > >> > >> http://www.nabble.com/file/p17073134/SMX-Test-Flow.jpg > >> > >> When I hit "http://localhost:8192/PortalCommExample/" (Above BC in > >> diagram) > >> from browser, I'm expecting to get response from > >> "http://localhost/esbtest/testService1.php" (HTTP Service 2) but I'm > >> getting > >> error "resource not found". > >> > >> Although it doesn't make any sense, but for testing purpose, I'm trying > >> to > >> hit HTTP Service 2 from HTTP Service 1 (Ideally Web browser) using SMX > >> (Service Mix). At that moment, I don't want SMX, to implement any logic > >> thus > >> I'm not having any Service Engine. Again I'm not using SOAP request, its > >> just simple HTTP request-response. > >> > >> For this I have 2 Service Unit (for 2 BC) and a SA. xbean.xml of 2 SU > >> are as > >> follow. > >> > >> > >> <beans xmlns:http="http://servicemix.apache.org/http/1.0" > >> xmlns:test="http://www.abc.com/abcde"> > >> <http:endpoint service="test:MyHttpReceiver" > >> endpoint="receiverConsumer" > >> targetService="test:MyProviderService" > >> role="consumer" > >> soap="false" > >> locationURI="http://localhost:8192/PortalCommExample/"/> > >> </beans> > >> > >> and > >> > >> > >> <beans xmlns:http="http://servicemix.apache.org/http/1.0" > >> xmlns:test="http://www.abc.com/abcde"> > >> <http:endpoint service="test:MyProviderService" > >> endpoint="senderProvider" > >> role="provider" > >> soap="false" > >> locationURI="http://localhost/esbtest/testService1.php" > >> /> > >> </beans> > >> > >> It would be helpful if someone let me know if I'm trying it in wrong > >> manner. > >> (I know this example doesn't make a lot of sense). I don't want to > >> define > >> WSDL or any routing as I'm sure which end-point i need to hit. Now this > >> failure raises few questions for me. > >> 1. Do I always need to define WSDL. I think its standard format for NMR > >> but > >> shouldn't SMX-HTTP BC converts it in NMR specific format? > >> 2. Can two BC communicate with each other without SE or SE is must? > >> 3. Don't SMX provide way for simple HTTP request? All examples that I > >> saw > >> are using SOAP request and WSDL. > >> 4. How can I achieve required flow? > >> > >> > >> > >> > >> gnodet wrote: > >> > > >> > You can't. This page listing the services is generated and is > >> > provided for convenience only. > >> > If you go to http://localhost:8192/mylistenHttp/, you won't see the > >> > wsdl, this only happens if you click on the link, because the link > >> > shows the address of the service but points to the wsdl. Makes sense > >> > ? > >> > > >> > On Fri, Apr 25, 2008 at 2:55 PM, pratibhaG <[EMAIL PROTECTED]> > >> > wrote: > >> >> > >> >> Thanks a lot for your reply, > >> >> I guess this is some default or welcome file. May be there is some > >> >> configuration which tells that if I hit URL > >> >> "http://localhost:8192/mylistenHttp/", then main.wsdl will be > >> invoked? > >> >> where does this file reside? If I want to invoke some custom file > >> say > >> >> mywsdl.wsdl how would I do that? > >> >> Please reply > >> >> Thanks once again > >> >> -Pratibha > >> >> > >> >> -- > >> >> View this message in context: > >> >> > >> > http://www.nabble.com/Why-every-http--request-goes-to-main.wsdl--tp16891783p16895542.html > >> >> > >> >> > >> >> Sent from the ServiceMix - User mailing list archive at Nabble.com. > >> >> > >> >> > >> > > >> > > >> > > >> > -- > >> > Cheers, > >> > Guillaume Nodet > >> > ------------------------ > >> > Blog: http://gnodet.blogspot.com/ > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Why-every-http--request-goes-to-main.wsdl--tp16891783p17073134.html > >> > >> > >> Sent from the ServiceMix - User mailing list archive at Nabble.com. > >> > >> > > > > > > > > -- > > Cheers, > > Guillaume Nodet > > ------------------------ > > Blog: http://gnodet.blogspot.com/ > > > > > > -- > View this message in context: > http://www.nabble.com/Why-every-http--request-goes-to-main.wsdl--tp16891783p17083524.html > > > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/
