Nitin K Somani commented on Jul 21, 2009

Unable to Create Place through Java Servlet

Hi,

This is Nitin, I'm new to the Quickr. Need some help to resolve my problem which I'm facing while creating a place from Java Servlet.

The way am creating a place is as below

Step 1 : created an input XML file which contains the details like place name , host name, person name to be added the place etc.

Step 2 : Wrote an servlet as below

public void doGet (HttpServletRequest request, HttpServletResponse response) throws IOException

{

QPAPI.process("G:\\Lotus\\Domino\\session.xml","G:\\Lotus\\Domino\\input.xml","G:\\Lotus\\Domino\\output-search.xml")

}

input.xml

=========

<?xml version="1.0"?>

<service>

<servers>

<server>

<hostname>omhq5f91.upcorp.ad.uprr.com</hostname>

<placetypes>

<placetype id="ERMTeamPlacetypelink">

<name>ERMTeamPlaceType</name>

</placetype>

</placetypes>

<places>

<place action="create">

<name>TestPlace-Nitin</name>

<member>

<person action="add" id="ExternalMember">

<dn>CN=Nitin K. Somani/O=UPC</dn>

</person>

</member>

<placetype>

<link idref="ERMTeamPlacetypelink"/>

</placetype>

</place>

</places>

</server>

</servers>

</service>

Generated output xml

====================

<service>

<servers>

<server>

<hostname>OMHQ5F91.upcorp.ad.uprr.com</hostname>

<places>

<place action="create">

<name>TestPlaceNitin123</name>

<action_status action="create">

<code>65542</code>

<message><![CDATA[0x10006 : Illegal Arguments Exception]]></message>

</action_status>

</place>

</places>

</server>

</servers>

</service>

===================

Please suggest what change do I need do here so that I will be able to create an place on Quickr through java servlet

Thanks & Regards

Nitin Somani