Ok, how about we make a step back and think on the sample scenario : Considering a client application accessing a sca service using a web service binding, if the service were deployed in a different machine (e.g luck.apache.org:8080 versus dhaval.apache.org:8081), the composite used by the client application would have to be changed to point to the proper service. In this application, we are getting confused because the client and the service are all archived together in the same web application.
To avoid future issues, and to make things clear, you could split the application into two web apps, a client and a service. On Mon, Oct 20, 2008 at 11:25 AM, Luciano Resende <[EMAIL PROTECTED]> wrote: > What issues do you get when using relative URI in the WS binding ? > > On Mon, Oct 20, 2008 at 11:07 AM, Dhaval Chauhan > <[EMAIL PROTECTED]> wrote: >> Hi Luciano, >> >> Thanks for your quick response !! >> >> Following is the issue/requirement pointed out in the discussion thread >> (http://www.mail-archive.com/dev%40tuscany.apache.org/msg02806.html) >> >> calculator-ws-webapp: >> The sample runs, but the need to change the hardwired port in the >> Calculator.composite file for installations that don't use port 8080 >> is a usability issue that needs to fixed. It should be possible to >> create a WAR that can be deployed to different port numbers without >> needing to be changed. >> >> So please correct me if I am wrong but my understanding is to make the port >> configurable. >> >> I also tried testing using relative URI path something like "<binding.ws >> uri="/sample/....". But it also didn't work. >> I have changed the default port of my tomcat to 8081 and if I hard code it >> inside the composite file, it works well but it doesn't work in the other >> case. >> >> Thanks, >> Dhaval >> >> >> >> >> >> >> ________________________________ >>> Date: Mon, 20 Oct 2008 10:37:49 -0700 >>> From: [EMAIL PROTECTED] >>> To: [email protected] >>> Subject: Re: How to make hard wired port number configurable for the >>> binding.ws ? >>> >>> Do we really need to make the port number configurable, or is this a >>> question of documenting how and where to change if you have a >>> application server using a different port ? >>> >>> A different option would be to check what happens if you set the URI >>> as a relative path, so, instead of setting >>> uri="http://localhost:8080/sam.." you could test uri="/sam...", this >>> should work as well. >>> >>> On Mon, Oct 20, 2008 at 10:28 AM, Dhaval Chauhan >>> <[EMAIL PROTECTED]> wrote: >>> > I am investingating the TUSCANY-2639 >>> > (https://issues.apache.org/jira/browse/TUSCANY-2639) for fixing the >>> > samples. >>> > >>> > There is an issue pointed out for the calculator-ws-webapp sample where >>> > it's >>> > required to make the hard wired port inside the Calculator.composite) >>> > file >>> > configurable. >>> > >>> > I went through the documentation of the binding.ws but couldn't find how >>> > to >>> > achieve this. >>> > >>> > Does anybody have any idea/suggestions about where to look at or how to >>> > solve this issue? >>> > >>> > Thanks, >>> > Dhaval >>> > >>> > ________________________________ >>> > When your life is on the go—take your life with you. Try Windows >>> > Mobile(R) >>> > today >>> >>> >>> >>> -- >>> Luciano Resende >>> Apache Tuscany, Apache PhotArk >>> http://people.apache.org/~lresende >>> http://lresende.blogspot.com/ >> >> ________________________________ >> When your life is on the go—take your life with you. Try Windows Mobile(R) >> today > > > > -- > Luciano Resende > Apache Tuscany, Apache PhotArk > http://people.apache.org/~lresende > http://lresende.blogspot.com/ > -- Luciano Resende Apache Tuscany, Apache PhotArk http://people.apache.org/~lresende http://lresende.blogspot.com/
