Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #24859

Re: Axis2 web service How to Make Web Service Address Configurable

From Arved Sandstrom <asandstrom2@eastlink.ca>
Newsgroups comp.lang.java.programmer
Subject Re: Axis2 web service How to Make Web Service Address Configurable
References <160ade1f-4f9c-43a9-aeb8-d9d4f600184f@googlegroups.com>
Message-ID <YZeKt.101731$iM7.68974@fx05.iad> (permalink)
Organization Public Usenet Newsgroup Access
Date 2013-07-31 18:04 -0300

Show all headers | View raw


On 07/31/2013 01:30 AM, zigzagdna@yahoo.com wrote:
> Subject: Axis2 web service How to Make Web Service Address Configurable
>
> I am generating client and web service code from a wsdl file. Now my wsdl file has following for web service end point address:
> <wsdl:service name="SG910_BtB_IN0138_NonConformances_ETS_Source_v1.webService.receiveNonConformanceWS">
> - <wsdl:port name="SG910_BtB_IN0138_NonConformances_ETS_Source_v1_webService_receiveNonConformanceWS_Port" binding="tns:SG910_BtB_IN0138_NonConformances_ETS_Source_v1_webService_receiveNonConformanceWS_Binder">
>    <soap:address location="http://itsusmpl00082.jnj.com:7996/ws/SG910_BtB_IN0138_NonConformances_ETS_Source_v1.webService.receiveNonConformanceWS/SG910_BtB_IN0138_NonConformances_ETS_Source_v1_webService_receiveNonConformanceWS_Port" />
>    </wsdl:port>
>    </wsdl:service>
>
>
> Now location is here is hardcoded to refer to some address. Now I am using wsdl2java to generate code. But code has address hardcoded. Since this address can change from dev to qa to prod. How can I make generated code independent of address; i.e., generated code will work across all environments.
>
> I am new to axis2 and this code generation, so appreciate any guidance,
>
>
It's been quite a while since I used Axis, I've preferred CXF for years, 
but it doesn't much matter since it's all about conforming to JAX-WS.

When I use CXF and generate client code, for example, I do get that 
annoying hardcoded @WebServiceClient annotation. Point being, that's 
information for the default javax.xml.ws.Service constructor...but there 
is another constructor where you can provide a different WSDL URL.

AHS

-- 
When a true genius appears, you can know him by this sign:
that all the dunces are in a confederacy against him.
-- Jonathan Swift

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Axis2 web service How to Make Web Service Address Configurable zigzagdna@yahoo.com - 2013-07-30 21:30 -0700
  Re: Axis2 web service How to Make Web Service Address Configurable Sebastian <news@seyweiler.dyndns.org> - 2013-07-31 07:26 +0200
    Re: Axis2 web service How to Make Web Service Address Configurable zigzagdna@yahoo.com - 2013-07-31 09:28 -0700
  Re: Axis2 web service How to Make Web Service Address Configurable Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-07-31 18:04 -0300
    Re: Axis2 web service How to Make Web Service Address Configurable Lew <lewbloch@gmail.com> - 2013-07-31 14:14 -0700
      Re: Axis2 web service How to Make Web Service Address Configurable zigzagdna@yahoo.com - 2013-07-31 15:07 -0700
        Re: Axis2 web service How to Make Web Service Address Configurable Lew <lewbloch@gmail.com> - 2013-07-31 17:47 -0700
          Re: Axis2 web service How to Make Web Service Address Configurable Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-07-31 22:04 -0300
  Re: Axis2 web service How to Make Web Service Address Configurable Arne Vajhøj <arne@vajhoej.dk> - 2013-07-31 23:26 -0400

csiph-web