Skip to main content

jax-ws webservice with multiple ports

3 replies [Last post]
ppetitsm
Offline
Joined: 2005-11-03

Hello there,

How to deploy after wsimport a multiple ports jax-ws webservice on Glassfish like in the following WSDL snippet? It tried to use Netbeans' s New Webservice from WSDL, but the multiple ports configuration is not handled correctly by the wizard. Any idea as how to fix this problem? I am very much in need of a solution. Help appreciated!

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Patrick Petit

Thanks Bhakti,
Were exactly can I get jax-ws 2.1.4? The latest version i see in
https://jax-ws.dev.java.net/ri-download.html is 2.1.3 ?
Also were is the file sun-jaxws.xml supposed to be? I don't see it nowhere
in the workspace. Under nbproject, I have jax-ws.xml which i put below were
we clearly see that only one port 'SMSPort' is created instead of two.




com.sfr.sdp.core.services.SDPServiceImpl
file:/home/ppetit/workspace/sfrsdp/V1/SDP_CORE/src/wsdl/SDPService-v1.wsdl
SDPService-v1.wsdl
SDPService-v1

SMSPort com.sfr.sdp.v1 catalog.xml
false




2008/4/30 :

> Can you check the dual-binding sample in jaxws 2.1.4 bundle and see if that
> helps
> That has something like this in sun-jaxws.xml
> > version='2.0'>
> > name='soap'
> implementation='dual_binding.server.AddNumbersImpl'
> port='{http://server.dual_binding/}soap
> '
> url-pattern='/soap'/>
> > name='rest'
> implementation='dual_binding.server.AddNumbersImpl'
> port='{http://server.dual_binding/}rest
> '
> binding="http://jax-ws.dev.java.net/rest"
> url-pattern='/rest'/>
>

> We are aware of problems with dual binding in jsr 109 so hopefully the
> jaxws style of deployment as mentioned above could help you for now
> Regards,
> Bhakti
> [Message sent by forum member 'bhaktimehta' (bhaktimehta)]
>
> http://forums.java.net/jive/thread.jspa?messageID=272134
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>
>

--
Patrick Petit Consulting
3040 route de Chamrousse
Saint Martin d'Uriage 38410 - FR
Tel. +33 (0)6 29 33 75 85
Email: ppetit@PatrickPetit.COM
[att1.html]

bhaktimehta
Offline
Joined: 2004-03-18

Can you check the dual-binding sample in jaxws 2.1.4 bundle and see if that helps
That has something like this in sun-jaxws.xml

name='soap'
implementation='dual_binding.server.AddNumbersImpl'
port='{http://server.dual_binding/}soap'
url-pattern='/soap'/>
name='rest'
implementation='dual_binding.server.AddNumbersImpl'
port='{http://server.dual_binding/}rest'
binding="http://jax-ws.dev.java.net/rest"
url-pattern='/rest'/>

We are aware of problems with dual binding in jsr 109 so hopefully the jaxws style of deployment as mentioned above could help you for now
Regards,
Bhakti

Felipe Gaúcho

I guess the problem is the endpoint location, that force you to define
different URLs for your endpoints...

location="http://localhost:8080/services/Service-v1" <------- this value

On Wed, Apr 30, 2008 at 12:57 AM, wrote:
> Can you check the dual-binding sample in jaxws 2.1.4 bundle and see if that helps
> That has something like this in sun-jaxws.xml
>
> > name='soap'
> implementation='dual_binding.server.AddNumbersImpl'
> port='{http://server.dual_binding/}soap'
> url-pattern='/soap'/>
> > name='rest'
> implementation='dual_binding.server.AddNumbersImpl'
> port='{http://server.dual_binding/}rest'
> binding="http://jax-ws.dev.java.net/rest"
> url-pattern='/rest'/>
>

> We are aware of problems with dual binding in jsr 109 so hopefully the jaxws style of deployment as mentioned above could help you for now
> Regards,
> Bhakti
> [Message sent by forum member 'bhaktimehta' (bhaktimehta)]
>
> http://forums.java.net/jive/thread.jspa?messageID=272134
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net