I configured my stuff as follows:

In the http-Host on port 80 I added the following RewriteRules:
RewriteRule services/(.*)$ http://HOST:8080/axis2/services/$1 [L]
RewriteRule (.*)$ http://HOST:8080/axis2/$1

In the WEB-INF/axis2.xml I changed
<parameter name="httpFrontendHostUrl">http:/HOST</parameter>

In the WSDL I changed the Endpoint-URLs to HOST and in the WEB-INF/ service.xml in the
service-aar I added the following params:
<parameter name="useOrignalWSDL">true</parameter>
<parameter name="modifyUserWSDLPortAddress">false</parameter>

When I generate my ServiceClient and make a servicecall afterwards I get the following exception:

[INFO] Unable to sendViaPost to url[http://HOST/services/Service.ServiceHttpSoap12Endpoint/ ]
org.apache.axis2.AxisFault: Transport error: 302 Error: Found
at org .apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java: 296) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java: 190)
        at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at org .apache .axis2 .transport .http .CommonsHTTPTransportSender .writeMessageWithCommons(CommonsHTTPTransportSender.java:371) at org .apache .axis2 .transport .http .CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
at org .apache .axis2 .description.OutInAxisOperationClient.send(OutInAxisOperation.java:401) at org .apache .axis2 .description .OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java: 163)
        at de.tamundo.serviceclient.ServiceStub.login(ServiceStub.java:2244)
        at de.tamundo.serviceclient.ServiceClient.login(ServiceClient.java:102)
        at de.tamundo.serviceclient.ServiceClient.main(ServiceClient.java:34)

Is there anything else I need to change?

Thanks alot!


Am 12.08.2009 um 14:13 schrieb Moritz Mädler:

We are currently using Apache httpd and Tomcat without mod_jk. Is it possible to use the mod_rewrite although?
Thanks alot!



Am 05.08.2009 um 12:00 schrieb Yves Glodt:

On Wednesday 05 August 2009 11:34:20 Moritz Mädler wrote:
Hello!

thanks alot for your answer. Do you mean I should use the mod_rewrite
of the apache httpd and rewrite any requests to the tomcat servlet
which is running on another port?

This is a possibility...

But you can also avoid using a separate Apache httpd.

Use UrlRewrite:
http://tuckey.org/urlrewrite/

Is it basically mod_rewrite for tomcat. I used it in 2 projects so far, with
great success.

HTH,
Yves


Am 05.08.2009 um 11:15 schrieb Giuseppe Gortan:
Try using Apache and mod rewrite to rewrite your url,
Than change wsdl:port address in your wsdl and set in services.xml
<parameter name="modifyUserWSDLPortAddress">true</parameter>




On Wed, Aug 5, 2009 at 11:04 AM, Moritz Mädler<m...@moritz-

maedler.de> wrote:
Hi,

I'm still looking for a solution. Could anybody help me please?

Thanks alot!

Am 31.07.2009 um 20:12 schrieb Moritz Mädler:
Hello!

I have a service running in my Axis 1.4.1 which itself runs as a
servlet
in a tomcat 5.5.

Is it possible to configure Tomcat that I can access the Service
directly
by entering only the Domain (like
http://domainofservice.com/ServiceName instead of
http://domainofservice.com/axis2/services/ServiceName)?

BTW have you already made some experiences with upgrading from
Axis2 1.4.1
to 1.5? Is there anything I must pay attention to?

Thanks a lot and have a nice weekend!

Moritz

Reply via email to