| Randy Schnier 2005-12-14, 5:59 pm |
| I think the problem is that you should be using webservices.xml instead
of webservicesclient.xml.
Your service-ref-name stanza below looks OK to me...that "should" be
causing a "service" context to get created under java:comp/env, with a
"ProcesoSeleccion" entry bound in that context.
A portlet should (I think) have the characteristics of a servlet running
in a web container at some level. I'm not sure about portlets
specifically, but for a classic servlet application this needs to be in
a file called webservices.xml (*not* webservicesclient.xml) in the
WEB-INF directory within the .war file that's acting as the webservice
client.
webservicesclient.xml is only for clients running in the J2EE client
container.
bascard@yahoo.com wrote:
>
>
> PLEASE, HELP ME.
>
> I have the same situation but programming Portlets to install on Portal Server 5.0. I have WSAD 5.1.2, and this doesn't provide tools to create a portlet that access to Web Service, and I have to do the same than you, generate client on a WebService A
pplication, and then copy the files to Portlet Progect, but when I execute on POrtal Server I receive this error:
>
> javax.naming.NameNotFoundException: Name comp/env/service not found in context "java:".
>
> when proxy class tries to execute this sentence:
>
> ctx.lookup("java:comp/env/service/ProcesoSeleccion")
>
> And "service/ProcesoSeleccion" is defined in webservicesclient.xml:
>
> <webservicesclient>
> <service-ref>
> <description>WSDL Service ProcesoSeleccion</description>
> <service-ref-name>service/ProcesoSeleccion</service-ref-name>
> <service-interface>org.tempuri.ProcesoSeleccion</service-interface>
> <wsdl-file>WEB-INF/wsdl/ProcesoSeleccion.wsdl</wsdl-file>
> <jaxrpc-mapping-file>WEB-INF/ProcesoSeleccion_mapping.xml</jaxrpc-mapping-file>
> <service-qname>
> <namespaceURI>http://tempuri.org/</namespaceURI>
> <localpart>ProcesoSeleccion</localpart>
> </service-qname>
> <port-component-ref>
> <service-endpoint-interface>org.tempuri.ProcesoSeleccionSoap</service-endpoint-interface>
> </port-component-ref>
> </service-ref>
> </webservicesclient>
>
> What can I do, Where I have to put deployment files of web service? And mapping files?
>
>
>
>
>
>
|