L.S.,

>From the logging, I notice that the endpoint is sending back a HTTP
status 302 (which is a redirect).  My guess is that the redirect tells
your client to redirect to http://...:8192/service/hotelpublish/
(notice the trailing / ).  Your simple Java/Ruby script probably does
not handle this case, where the WizTools tooling does follow through
on the redirect.

Could you try coding your simple Java/Ruby client to access the URL
with the trailing / instead to see if that can confirm my suspicion?

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



On 2 August 2010 19:40, Bhaskar Orbitz <[email protected]> wrote:
>
> Hi,
>
> I am facing an issue with the servicemix http-consumer.
>
> It's working fine when I am doing a POST request using WizTools REST client.
> But it's not working with simple Java HttpURLConnection client or Ruby
> client. I am seeing the following lines in the servicemix log.
>
> 2010-08-02 12:38:13,693 | DEBUG |
> x.http.jetty.JettyContextManager$ThreadPoolWrapper  467 | Dispatching job:
> s...@33273308[d=true,io=0,w=true,b=false|false]
> 2010-08-02 12:38:20,625 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger
> 70 | REQUEST /service/hotelpublish on
> org.mortbay.jetty.httpconnect...@32558d
> 2010-08-02 12:38:20,626 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger
> 70 | RESPONSE /service/hotelpublish  302
> 2010-08-02 12:38:20,627 | DEBUG |
> x.http.jetty.JettyContextManager$ThreadPoolWrapper  467 | Dispatching job:
> s...@33273308[d=true,io=1,w=true,b=false|false]
> 2010-08-02 12:38:21,761 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger
> 70 | EOF
>
> I am not sure what's going wrong with these 2 clients(Java, Ruby).
>
> Here is my xbean configuration.
>
> <beans xmlns:bean="http://servicemix.apache.org/bean/1.0";
>       xmlns:http="http://servicemix.apache.org/http/1.0";
>       xmlns:hp="http://services.hotel.orbitz.com/hotel-publish";>
>
>        <http:consumer service="hp:hotelPublishHttpConsumerService"
>                endpoint="hotelPublishHttpConsumerEndpoint"
>                locationURI="http://0.0.0.0:8192/service/hotelpublish";
>                targetService="hp:hotelPublishService"
>                targetEndpoint="hotelPublishEndpoint"
>                defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
>                marshaler="#publishXmlMarshaler" />
>        <bean id="publishXmlMarshaler"
> class="com.orbitz.hotel.publish.PublishXmlMarshaler" />
> </beans>
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/servicemix-http-consumer-issue-tp2262037p2262037.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>

Reply via email to