cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Grzybek <gr.grzy...@gmail.com>
Subject Re: web service clients : Help
Date Tue, 01 Apr 2014 15:00:48 GMT
Hello

To set different address than the one provided in WSDL, add:

            PolStatHttpService ss = new PolStatHttpService(wsdlURL,
SERVICE_NAME);
            port = ss.getPolStatHttpPort();
*            ((BindingProvider)
port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"");*

if you want to create client without using @WebServiceClient annotated
Service class, use org.apache.cxf.jaxws.JaxWsProxyFactoryBean as describe
here: http://cxf.apache.org/docs/jax-ws-configuration.html

regards
Grzegorz Grzybek


2014-04-01 16:37 GMT+02:00 Ritesh Rathore <Ritesh.Rathore@mastek.com>:

> Hi Grzegorz,
>
> Please find sample code.
>
> Regards,
> Ritesh
>
> -----Original Message-----
> From: Grzegorz Grzybek [mailto:gr.grzybek@gmail.com]
> Sent: Tuesday, April 01, 2014 7:42 PM
> To: dev@cxf.apache.org
> Subject: Re: web service clients : Help
>
> Could you share the code?
>
> CXF 2.1.3 is a bit old...
>
> regards
> Grzegorz Grzybek
>
>
> 2014-04-01 16:10 GMT+02:00 Ritesh Rathore <Ritesh.Rathore@mastek.com>:
>
> > Using JAX-WS API for Creating client.
> >
> > From: Ritesh Rathore
> > Sent: Tuesday, April 01, 2014 7:11 PM
> > To: 'dkulp@apache.org'; 'dev@cxf.apache.org'; 'ffang@apache.org'
> > Subject: web service clients : Help
> >
> > Hi All,
> >
> > Our current web service clients use WSDLs to get the end points of the
> > services that we want to hit.
> > As a result we store the WSDL URL's in our tables to be able to run the
> > web service clients.
> >
> > Is there a way we can hit the end points directly without having to go
> > through the WSDL?
> > Can you please suggests what need to make changes to achieve that?
> >
> > Please share your thoughts on this.
> >
> > Note:  we are using a Apache CXF 2.1.3
> >
> > Thanks & Regards,
> > Ritesh Rathore
> > MASTEK LTD.
> > In the US, we're called MAJESCOMASTEK
> >
> >
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Opinions expressed in this e-mail are those of the individual and not
> that
> > of Mastek Limited, unless specifically indicated to that effect. Mastek
> > Limited does not accept any responsibility or liability for it. This
> e-mail
> > and attachments (if any) transmitted with it are confidential and/or
> > privileged and solely for the use of the intended person or entity to
> which
> > it is addressed. Any review, re-transmission, dissemination or other use
> of
> > or taking of any action in reliance upon this information by persons or
> > entities other than the intended recipient is prohibited. This e-mail and
> > its attachments have been scanned for the presence of computer viruses.
> It
> > is the responsibility of the recipient to run the virus check on e-mails
> > and attachments before opening them. If you have received this e-mail in
> > error, kindly delete this e-mail from desktop and server.
> >
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails
> and attachments before opening them. If you have received this e-mail in
> error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message