users@glassfish.java.net

Re: Portlet WebServiceClient

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Tue, 01 Dec 2009 22:32:57 -0800

glassfish_at_javadesktop.org wrote:
> Hello,
>
> i've been trying to set up a web service client inside a portlet with the help of:
> http://blogs.sun.com/enterprisetechtips/entry/referencing_multiple_web_services_from
>
> the part of the server works perfectly fine, i can access the web service via glassfish directly. but the injection into the portlet has problems. basicly the line
>
> @WebServiceRef(name="service/MyServletService",
> type=servlet_endpoint.WeatherServiceService.class,
> wsdlLocation="http://localhost:8080/weatherservice/GetWeather?wsdl")
>
> is being completely ignored and therefor the name "java:comp/env/service/MyEjbService" is not found and an exception is thrown...
>
> any approach for a possible solution ?
>
 Java EE doesn't specify that webservice references can be injected in
portlets.
Does other resource injection work in portlets ?

Can you not use standard JAX-WS client programming model to create proxies.

for e.g:
new WeatherServiceService().getWeatherPort()

thanks,
Jitu


> [Message sent by forum member 'apas87' ]
>
> http://forums.java.net/jive/thread.jspa?messageID=374012
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>