|
Home > Archive > WebSphere Application Server > December 2005 > Re: WSAD 5.1 : Calling a Web Service from an EJB with SSL, And on Portlet?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: WSAD 5.1 : Calling a Web Service from an EJB with SSL, And on Portlet?
|
|
|
| > Sorry, it's working fine.
>
> I've just had an error in the configuration files.
>
> WSAD tooling (5.1 version) just doesn't provide an
> easy way to
> generate WS client proxy in an EJB module, so we are
> forced to
> generate WS client Proxy in the Web module and
> afterward to copy the
> generated Java files, and the deployment descriptor
> into the ejb
> module (the ws deployment descriptors must be copied
> to META-INF
> directory instead of WEB-INF).
>
> Afterwards, the EJB scope must be inserted into the
> webservicesclient.xml file.
>
> The point I've missed is that I didn't verify that
> the SSL
> configuration was related with the EJB scope (it was
> related with the
> undefined scope, i.e. that used in the Web container
> by default). So,
> I just used the WSAD editor to correlate SSL
> configuration in the
> webservicesclient.xml editor with the EJB scope and
> it was OK.
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 App
lication, 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?
|
|
|
|
|