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 Dalys Sebastian <se...@yahoo.com> on 2006/08/01 19:21:10 UTC

Changing the soapaddress url while using java2wsdl

Hi,

I am using Axis2 version 1.0 with Tomcat. I am having a web service which has no wsdl
(built solely using java classes), but depends on Axis2's java2wsdl feature to show the
wsdl online (?wsdl option).

But the wsdl generated (when I type ?wsdl at the end) has the soap address always
starting with http://localhost:8080/axis2. But, I would like the soap address to be
always displayed in the wsdl as http://localhost:8080/mywebapp ? How can I make this
possible?

Any input is much appreciated.

Thanks,
Dalys


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Changing the soapaddress url while using java2wsdl

Posted by Dalys Sebastian <se...@yahoo.com>.
Deepal,

I think I was not clear enough. I have axis2-1.0 embedded into my web application under
Tomcat, which I can access using the url http://localhost:8080/mywebapp. And I have a web
service running under mywebapp. To view its online wsdl, I access it using
htp://localhost:8080/mywebapp/services/myWS?wsdl. In the wsdl that's generated, I see the
following section:
<wsdl:service name="myWS">
- <wsdl:port name="myWSPortType0" binding="tns:myWSBinding">
  <soap:address location="http://localhost:8080/axis2/services/myWS" /> 
  </wsdl:port>
  </wsdl:service>
I would like to know how I can change the following:
<soap:address location="http://localhost:8080/axis2/services/myWS" /> 

to something like:
<soap:address location="http://localhost:8080/mywebapp/services/myWS" /> 

Looking forward for your answer.
Thanks,
Dalys

--- Deepal Jayasinghe <de...@opensource.lk> wrote:

> Please rename axis2.war into mywebapp.war and redeploy , then it will
> printout the correct epr.
> 
> Thanks
> Deepal
> 
> Dalys Sebastian wrote:
> 
> >Hi,
> >
> >I am using Axis2 version 1.0 with Tomcat. I am having a web service which has no wsdl
> >(built solely using java classes), but depends on Axis2's java2wsdl feature to show
> the
> >wsdl online (?wsdl option).
> >
> >But the wsdl generated (when I type ?wsdl at the end) has the soap address always
> >starting with http://localhost:8080/axis2. But, I would like the soap address to be
> >always displayed in the wsdl as http://localhost:8080/mywebapp ? How can I make this
> >possible?
> >
> >Any input is much appreciated.
> >
> >Thanks,
> >Dalys
> >
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Tired of spam?  Yahoo! Mail has the best spam protection around 
> >http://mail.yahoo.com 
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >  
> >
> 
> -- 
> Thanks,
> Deepal
> ................................................................
> ~Future is Open~ 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Changing the soapaddress url while using java2wsdl

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Please rename axis2.war into mywebapp.war and redeploy , then it will
printout the correct epr.

Thanks
Deepal

Dalys Sebastian wrote:

>Hi,
>
>I am using Axis2 version 1.0 with Tomcat. I am having a web service which has no wsdl
>(built solely using java classes), but depends on Axis2's java2wsdl feature to show the
>wsdl online (?wsdl option).
>
>But the wsdl generated (when I type ?wsdl at the end) has the soap address always
>starting with http://localhost:8080/axis2. But, I would like the soap address to be
>always displayed in the wsdl as http://localhost:8080/mywebapp ? How can I make this
>possible?
>
>Any input is much appreciated.
>
>Thanks,
>Dalys
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>  
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 



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