[Users] Component Development : LDAP Component
Carine OB
petals-components at ebmwebsourcing.com
Wed Mar 16 10:27:33 CET 2011
Hi Christophe,
I test my component with the Web Services Explorer from Eclipse.
Here is the SOAP Request Envelope (as it is written in Eclipse):
Code:
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
<login>openbridge</login>
<password>openbridge</password>
</soapenv:Body>
</soapenv:Envelope>
This code
Code:
Document inputDocument = exchange.getInMessageContentAsDocument();
getLogger().info("getNodeName >" + inputDocument.getNodeName() + "<");
getLogger().info("getLength >" + inputDocument.getChildNodes().getLength() + "<");
Node node = inputDocument.getChildNodes().item(0);
String userLogin = node.getTextContent();
getLogger().info("userLogin >" + userLogin + "<");
return
Code:
[petals.container.components.openbridge-bc-ldap]-INFO 2009-02-13 16:42:11,125 getNodeName >#document<
[petals.container.components.openbridge-bc-ldap]-INFO 2009-02-13 16:42:11,125 getLength >1<
[petals.container.components.openbridge-bc-ldap]-INFO 2009-02-13 16:42:11,125 userLogin >openbridge<
But this code
Code:
String inputMesage = exchange.getInMessageContentAsString();
getLogger().info("inputMesage BEGIN");
getLogger().info(inputMesage);
getLogger().info("inputMesage END");
return
Code:
[petals.container.components.openbridge-bc-ldap]-INFO 2009-02-13 16:48:37,781 inputMesage BEGIN
[petals.container.components.openbridge-bc-ldap]-INFO 2009-02-13 16:48:37,781 <login xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap
env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">openbridge</login>
[petals.container.components.openbridge-bc-ldap]-INFO 2009-02-13 16:48:37,781 inputMesage END
So, the message seems to be truncated...
-------------------- m2f --------------------
Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=504#504
-------------------- m2f --------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/29078a6b/attachment.htm>
More information about the Users
mailing list