[Users] Component Development : LDAP Component

Carine OB petals-components at ebmwebsourcing.com
Wed Mar 16 10:27:20 CET 2011


Hi,

In a context of a POC for a customer, I've developped a petals component to provide a LDAP service.

Elements are :
JAVA API to provide a LDAP client.
A BC wrap this LDAP client (openbridge-bc-ldap).
A SA package SU to configurate LDAP service.
"provide SU" configures openbridge-bc-ldap. It contains WSDL file for SOAP.
"consume SU" configures petals-bc-soap  to expose LDAP service with SOAP.

problems are :
The interface is unresolved :

petals at localhost:/> petals.EndpointRegistry-WARNING 2009-02-11 17:22:43,950 Failed to retrieve interfaces from the description of the endpoint 'OblapEndpoint'. Set its interface to {http://www.openbridge.fr/obldap}UNRESOLVED_INTERFACEOblapService
org.ow2.petals.kernel.api.server.PetalsException: Failed to retrieve the WSDL namespace in the WSDL document
 at org.ow2.petals.util.WSDLUtil.getInterfacesForService(WSDLUtil.java:191)
 at org.ow2.petals.jbi.messaging.registry.EndpointRegistryImpl.updateEndpointDescriptionAndInterfaces(EndpointRegistryImpl.java:726)
 at org.ow2.petals.jbi.messaging.registry.EndpointRegistryImpl.updateNewEndpoints(EndpointRegistryImpl.java:609)
 at org.ow2.petals.jbi.messaging.registry.EndpointRegistryImpl.getEndpointDescriptorForEndpoint(EndpointRegistryImpl.java:307)
 at org.ow2.petals.jbi.messaging.endpoint.AbstractEndpoint.getEndpointDescriptor(AbstractEndpoint.java:153)
 at org.ow2.petals.jbi.component.context.ComponentContextImpl.getEndpointDescriptor(ComponentContextImpl.java:279)
 at org.ow2.petals.binding.soap.listener.incoming.PetalsAxisService.getServiceDefinition(PetalsAxisService.java:233)
 at org.ow2.petals.binding.soap.listener.incoming.PetalsAxisService.printWSDL(PetalsAxisService.java:135)
 at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:280)
 at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:229)
 at org.ow2.petals.binding.soap.listener.incoming.servlet.SoapServlet.doGet(SoapServlet.java:117)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
 at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
 at org.mortbay.jetty.Server.handle(Server.java:295)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
 at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
 at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361)
 at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

document content to retrieve SOAP message is null in JBIListener classe.
Document inputDocument = exchange.getInMessageContentAsDocument();

Could you help me ?

Thanks you  :D 
Carine


You can retrieve eclipse project for this development here :
http://www.socialtext.net/openbridge_open/index.cgi?documents_petals (http://www.socialtext.net/openbridge_open/index.cgi?documents_petals)




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=492#492

-------------------- m2f --------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/a301ff33/attachment.htm>


More information about the Users mailing list