Hi Xavier,
On 13.11.2012 1:56, Xavier Callejas wrote:
>
> Hi,
>
> I have serveral days trying to make a simple test case where a SOAP web
> service expose two ports, but I haven't been able to work it out, using
> annotations or declarative xml.
>
> By default JAXWS generates a port per endpoint per service, there for one
> wsdl/url per port.
>
> The serviceName could be identically in both implementations, but JAXWS will,
> by default, generate a wsdl per port.
true, this is the only currently supported scenario. Starting from java
one cannot produce one WSDL for 2 or more service implementations
>
> I am using Glassfish 3.2.1.2, NetBeans 7.2.1, JEE 6.
>
> I need just one URL pattern, with a WSDL containing a service with two ports.
>
> Is there any way to achive this?
you have two options which should work:
1) create dummy implementations, generate 2 WSDLs, manually join them
into one and then create services from this wsdl
2) expose one hand written WSDL which would import 2 wsdls published by
RI and delegate to it
HTH,
--lukas
>
> Preferible I want to use annotations, this way I will not have to code any
> sun-jaxws nor WSDL with so many elements (portTyps, methods, parameters,
> namespaces, etc).
>
> Thank you in advance.
>
> Xavier.
>