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 Zak Mc Kracken <za...@yahoo.it> on 2011/10/14 00:36:28 UTC

How to set the server address in Maven Java2WSDL

Hi all,

as per subject, "mvn axis2-java2wsdl:java2wsdl" generates a .wsdl file 
where the the <wsdl:port> element has localhost:8080. I know little 
about web services, but my understanding is that this should be changed 
into the address of e.g. the production server (or am I missing 
something?) How can I set a different address for this? Is there a 
property that I can set up in the POM?


Many thanks in advance,

Marco



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


Re: [Bulk] RE: How to set the server address in Maven Java2WSDL

Posted by Zak Mc Kracken <za...@yahoo.it>.
Thank you very much Joe.


On 14/10/2011 00:14, Caristi, Joe wrote:
> This can be controlled at run-time by Axis2, so it's not too important what gets generated by java2wsdl.  Two entries in the services.xml file affect this by controlling the WSDL Axis2 exposes and whether or not Axis2 will dynamically set the WSDLPortAddress:
>
>          <parameter name="useOriginalwsdl">true</parameter>
>          <parameter name="modifyUserWSDLPortAddress">true</parameter>
>
> An additional parameter in axis2.xml controls what gets dynamically assigned when modifyUserWSDLPortAddress is true (if you need a DNS name or something):
>
> <parameter name="httpFrontendHostUrl">http://myhost:8080</parameter>
>
> There may be other parameters that affect this but these are the ones that we use.
>
>
> -----Original Message-----
> From: Zak Mc Kracken [mailto:zakmck73@yahoo.it]
> Sent: Thursday, October 13, 2011 6:36 PM
> To: java-user@axis.apache.org
> Subject: How to set the server address in Maven Java2WSDL
>
> Hi all,
>
> as per subject, "mvn axis2-java2wsdl:java2wsdl" generates a .wsdl file
> where the the<wsdl:port>  element has localhost:8080. I know little
> about web services, but my understanding is that this should be changed
> into the address of e.g. the production server (or am I missing
> something?) How can I set a different address for this? Is there a
> property that I can set up in the POM?
>
>
> Many thanks in advance,
>
> Marco
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>
> STATEMENT OF CONFIDENTIALITY:
>
>
>
> The information contained in this electronic message and any attachments to
> this message are intended for the exclusive use of the addressee(s) and may
> contain confidential or privileged information. If you are not the intended
> recipient, please notify WHI Solutions immediately at gc@whisolutions.com,
> and destroy all copies of this message and any attachments.
>
> ---------------------------------------------------------------------
> 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


RE: How to set the server address in Maven Java2WSDL

Posted by "Caristi, Joe" <jc...@whisolutions.com>.
This can be controlled at run-time by Axis2, so it's not too important what gets generated by java2wsdl.  Two entries in the services.xml file affect this by controlling the WSDL Axis2 exposes and whether or not Axis2 will dynamically set the WSDLPortAddress:

        <parameter name="useOriginalwsdl">true</parameter>
        <parameter name="modifyUserWSDLPortAddress">true</parameter>

An additional parameter in axis2.xml controls what gets dynamically assigned when modifyUserWSDLPortAddress is true (if you need a DNS name or something):

<parameter name="httpFrontendHostUrl">http://myhost:8080</parameter>

There may be other parameters that affect this but these are the ones that we use.


-----Original Message-----
From: Zak Mc Kracken [mailto:zakmck73@yahoo.it]
Sent: Thursday, October 13, 2011 6:36 PM
To: java-user@axis.apache.org
Subject: How to set the server address in Maven Java2WSDL

Hi all,

as per subject, "mvn axis2-java2wsdl:java2wsdl" generates a .wsdl file
where the the <wsdl:port> element has localhost:8080. I know little
about web services, but my understanding is that this should be changed
into the address of e.g. the production server (or am I missing
something?) How can I set a different address for this? Is there a
property that I can set up in the POM?


Many thanks in advance,

Marco



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


STATEMENT OF CONFIDENTIALITY:



The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify WHI Solutions immediately at gc@whisolutions.com,
and destroy all copies of this message and any attachments.

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