Re: wsdl2java -ap parameter not working

robert lazarski <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CABpPLBU8ZhJ-nO67=eGSW5Byxf73qGbck_EUmC--=9Er-0-2aQ@mail.gmail.com>
On Wed, Jun 12, 2013 at 6:08 PM, Fernando Cesar da Silva
<[email protected]> wrote:
> Hi,
>
>
>
> I have to generate a WS client from a WSDL with 2 different ports, I would
> like to work with only one class that has the operations from both ports.
>
>
>
> I have tried the –ap parameter but the generated class has operations from
> only one port.
>
>
>
> My command line looks like the following:
>
> D:\axis2-1.6.1\bin>wsdl2java.bat -uri ServicesNfsePronimProducao.wsdl -p
> xx.xxx.xxxxx.service.impl.pronim -s –ap
>
>
>
> How can I achieve this?
>
>
>
> Regards,
>
> Fernando Cesar

Not sure if you mean <wsdl:port> or http://ip:port ... but anyways
from your axis2 client stub you can get a reference to the
ServiceClient, OperationClient, and Options classes that can override
many things at run time.

I also notice that "–ap" and "-s" seem to use a hyphen and a minus
sign, the latter being correct.

- R
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.