You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by fa...@uniserv.com on 2011/01/20 09:28:36 UTC

Axis2, automatically generated WSDL and autodetected URL as wsdl:port location

Hi,

We have axis2 running with tomcat6. Tomcat is running on the port 8080
and is connected to an apache server via mod_jk.
So our axis2 web service is accessable via http on port 80.

The autodetected url in the automatically generated wsdl is almost
always correct, http://myserver:80/axis2...


But sometimes after tomcat restart, the wsdl contains the location like
http://myserver:8080/axis2... 

Even then, the web service is still available via the port 80. But the
wsdl is not correct.

Why? 
How does axis2 autodetect the url to be used as the location?
When does it happen? Immediately after the deployment? 
Is it possible, that sometimes, the ajp13 conncetion is not yet
available, when the wsdl is generated? 
Is wsdl cached? 
How long?

I try to find the way to avoid the wrong port number in the wsdl - 
I could provide some static wsdl in the aar-package, but there are other
problems caused by this. 

So I want to work with the autogenerated wsdl file, but also I want to
be sure, the autodetected url is always correct.

Thanks!

Best regards,
Fadila



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: Axis2, automatically generated WSDL and autodetected URL as wsdl:port location

Posted by Andreas Veithen <an...@gmail.com>.
This is probably related to issue AXIS2-4465. There is some additional
information here:

http://axis.apache.org/axis2/java/core/docs/servlet-transport.html

Note that this applies to Axis2 >= 1.5.3.

Andreas

On Thu, Jan 20, 2011 at 09:28,  <fa...@uniserv.com> wrote:
> Hi,
>
> We have axis2 running with tomcat6. Tomcat is running on the port 8080
> and is connected to an apache server via mod_jk.
> So our axis2 web service is accessable via http on port 80.
>
> The autodetected url in the automatically generated wsdl is almost
> always correct, http://myserver:80/axis2...
>
>
> But sometimes after tomcat restart, the wsdl contains the location like
> http://myserver:8080/axis2...
>
> Even then, the web service is still available via the port 80. But the
> wsdl is not correct.
>
> Why?
> How does axis2 autodetect the url to be used as the location?
> When does it happen? Immediately after the deployment?
> Is it possible, that sometimes, the ajp13 conncetion is not yet
> available, when the wsdl is generated?
> Is wsdl cached?
> How long?
>
> I try to find the way to avoid the wrong port number in the wsdl -
> I could provide some static wsdl in the aar-package, but there are other
> problems caused by this.
>
> So I want to work with the autogenerated wsdl file, but also I want to
> be sure, the autodetected url is always correct.
>
> Thanks!
>
> Best regards,
> Fadila
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org