It's not an Axis2 issue, as this redirector is some piece of 3rd party software.
Does the intermediate layer perform an actual client-side HTTP redirect? If so, there is no way to make this work, as that would always be an HTTP GET, whereas SOAP relies on POST. You would have to rewrite the client so that it gets the new URL from the redirect, and then sends the original request to the new address.
Why is the redirector in place? Why can't the WS client just access the new server-side URL?
Thanks.
Yes. intermediate layer perform an actual client-side HTTP redirect.
It connects to webservice and receives the response.
They have provided new http URL(intermediate layer) to access the webservice. The request xml sent to http URL provided and from there it is sent to actual webservices.
Please advice on the approach to write the client code. can this be done using Restful or xml over http.
Provided intermediate layer URL is accessible from soap UI and we could send the request and receive the response.
This redirection in place as the webservice is not in customer network and they want every request to go through their path.
This redirection in place as the webservice is not in customer network and they want every request to go through their path.
This doesn't make sense. If the WS is not reachable by the client network then a straight HTTP redirect will not work (irrespective of the GET/POST issue I mentioned). It sounds more like a server-side redirect, or a proxy, to give it a more commonly used name.
Saying "it doesn't work" gives us precisely nothing to work with. What, exactly, are you doing, and what, exactly, is happening as a result? Same for "it works through HttpClient", where I have no idea what that means.
I meant, the middle layer was consuming the webservice. Client application required to send http request middle layer instead of soap.
Right, the middle layer would be the direct consumer of the. If it is not an exact proxy -meaning, it does not expose the consumed WS in the same way as the original WS- then you need to write a client for whatever API the middle layer *does* expose. If that's not SOAP, then a SOAP client obviously would not work. But if you were able to make HttpClient work, I'm wondering what exactly you're looking for?
Post by:autobot
Yes, my master! Here is the tiny ad you asked for:
a bit of art, as a gift, that will fit in a stocking