Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
gismow Absent Member.
Absent Member.
1342 views

Trouble with modifyItemRequest

Hi,

I want to modify an existing address book entry so I send the following request :

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<session xmlns="http://schemas.novell.com/2005/01/GroupWise/types">N39EAMdakTg1hkx2</session>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<modifyItemRequest>
<id>4B227C94.TESTDOM.TESTPO.104.16A7937.1.24.1@56:4B151D2E.TESTDOM.TESTPO.104.16A7937.1.3.1@53</id>
<updates>
<delete>
<customs>
<custom>
<field>ProtelID</field>
<value>50231</value>
</custom>
</customs>
<fullName>
<displayName>Lieschen Müller</displayName>
<firstName>Lieschen</firstName>
<lastName>Müllers</lastName>
</fullName>
<phoneList>
<phone type="Home">0234567</phone>
<phone type="Mobile">0345678</phone>
<phone type="Fax">0456789</phone>
</phoneList>
<addressList>
<address type="Home">
<streetAddress>Persönlich Strasse 23</streetAddress>
<city>Daheim</city>
</address>
</addressList>
</delete>
<add>
<customs>
<custom>
<field>ProtelID</field>
<value>50231</value>
</custom>
</customs>
<fullName>
<displayName>Müller, Lieschen</displayName>
<firstName>Lieschen</firstName>
<lastName>Müller</lastName>
</fullName>
<addressList>
<address type="Home">
<streetAddress>Persönlich Strasse 23</streetAddress>
<city>Daheim</city>
</address>
</addressList>
<personalInfo/>
<phoneList>
<phone type="Home">0234567</phone>
<phone type="Mobile">0345678</phone>
<phone type="Fax">0456789</phone>
</phoneList>
</add>
</updates>
</modifyItemRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

The SOAP interfaces answeres with status code 0 (OK), but if I have a look at the address book, the system modified the address book entry and in addition it add a new one with the same data. If I retry, the result is 3 equal address book entries.

What's going wrong here ?

The do not see any diffreences between my request and the sample request in the specs, so what did I wrong ?

Thanx in advance for youre assistance.

Greetinx
Gismow
Labels (1)
Tags (1)
0 Likes
4 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Trouble with modifyItemRequest

I'm not sure you specified what version of POA that
you are using. I wasn't able to reproduce the problem
on 8.0.x.

It looks like you were only changing the display name.
The code is designed to only send the fields that are
changing. In this case:
<updates>
<update>
<fullName>
<displayName>Müller, Lieschen</displayName>
</fullName>
</update>
</update>

>>> On Tuesday, December 15, 2009 at 4:26 AM,

gismow<gismow@no-mx.forums.novell.com> wrote:

> Hi,
>
> I want to modify an existing address book entry so I send the following
> request :
>
> <SOAP‑ENV:Envelope
> xmlns:SOAP‑ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema‑instance">
> <SOAP‑ENV:Header>
> <session
>

xmlns="http://schemas.novell.com/2005/01/GroupWise/types">N39EAMdakTg1hkx2</
se
> ssion>
> </SOAP‑ENV:Header>
> <SOAP‑ENV:Body>
> <modifyItemRequest>
>

<id>4B227C94.TESTDOM.TESTPO.104.16A7937.1.24.1@56:4B151D2E.TESTDOM.TESTPO
..104.
> 16A7937.1.3.1@53</id>
> <updates>
> <delete>
> <customs>
> <custom>
> <field>ProtelID</field>
> <value>50231</value>
> </custom>
> </customs>
> <fullName>
> <displayName>Lieschen Müller</displayName>
> <firstName>Lieschen</firstName>
> <lastName>Müllers</lastName>
> </fullName>
> <phoneList>
> <phone type="Home">0234567</phone>
> <phone type="Mobile">0345678</phone>
> <phone type="Fax">0456789</phone>
> </phoneList>
> <addressList>
> <address type="Home">
> <streetAddress>Persönlich Strasse 23</streetAddress>
> <city>Daheim</city>
> </address>
> </addressList>
> </delete>
> <add>
> <customs>
> <custom>
> <field>ProtelID</field>
> <value>50231</value>
> </custom>
> </customs>
> <fullName>
> <displayName>Müller, Lieschen</displayName>
> <firstName>Lieschen</firstName>
> <lastName>Müller</lastName>
> </fullName>
> <addressList>
> <address type="Home">
> <streetAddress>Persönlich Strasse 23</streetAddress>
> <city>Daheim</city>
> </address>
> </addressList>
> <personalInfo/>
> <phoneList>
> <phone type="Home">0234567</phone>
> <phone type="Mobile">0345678</phone>
> <phone type="Fax">0456789</phone>
> </phoneList>
> </add>
> </updates>
> </modifyItemRequest>
> </SOAP‑ENV:Body>
> </SOAP‑ENV:Envelope>
>
> The SOAP interfaces answeres with status code 0 (OK), but if I have a
> look at the address book, the system modified the address book entry and
> in addition it add a new one with the same data. If I retry, the result
> is 3 equal address book entries.
>
> What's going wrong here ?
>
> The do not see any diffreences between my request and the sample
> request in the specs, so what did I wrong ?
>
> Thanx in advance for youre assistance.
>
> Greetinx
> Gismow

0 Likes
gismow Absent Member.
Absent Member.

Re: Trouble with modifyItemRequest

Hi,

I'm using the SOAP interface to a 7.0.3 server. I followed the sample request from your specs, so I thought it would be OK to remove all fields and add them again. In addition it would be very complicated to analyze all addresses, emails, phone numbers if there are maybe any changes.

Here's the sample from your specs, it removes all existing fields and adds them again, even if they where existing.


Modify a Contact

<modifyItemRequest>
<id>406BD9A1.AutoDomain.AutoPO1.104.1363230.1.E3.1@56:
3B38B6FA.AutoDomain.AutoPO1.104.1363230.1.1.1@53</id>
<updates>
<add>
<phone>1-1111</phone>
<emailList primary="jdoe@novell.com"
<email>jdoe@novell.com</email>
</emailList>
<phoneList default="2-2222"
<phone type="Office">1-1111</phone>
<phone type="Home">2-2222</phone>
<phone type="Mobile">3-3333</phone>
<phone type="Fax">4-4444</phone>
<phone type="Pager">5-5555</phone>
</phoneList>
<email>jdoe@novell.com</email>
</add>
<delete>
<phone>1-1111</phone>
<emailList primary="jdoe@novell.com"
<email>jdoe@novell.com</email>
</emailList>
<phoneList>
<phone type="Office">1-1111</phone>
<phone type="Home">2-2222</phone>
<phone type="Mobile">3-3333</phone>
<phone type="Fax">4-4444</phone>
<phone type="Pager">5-5555</phone>
</phoneList>
<email>jdoe@novell.com</email>
</delete>
</updates>
</modifyItemRequest>

0 Likes
gismow Absent Member.
Absent Member.

Re: Trouble with modifyItemRequest

Hi Preston,

any news on this ?

Regards
Gismow

gismow;1904977 wrote:
Hi,

I'm using the SOAP interface to a 7.0.3 server. I followed the sample request from your specs, so I thought it would be OK to remove all fields and add them again. In addition it would be very complicated to analyze all addresses, emails, phone numbers if there are maybe any changes.

Here's the sample from your specs, it removes all existing fields and adds them again, even if they where existing.


Modify a Contact

<modifyItemRequest>
<id>406BD9A1.AutoDomain.AutoPO1.104.1363230.1.E3.1@56:
3B38B6FA.AutoDomain.AutoPO1.104.1363230.1.1.1@53</id>
<updates>
<add>
<phone>1-1111</phone>
<emailList primary="jdoe@novell.com"
<email>jdoe@novell.com</email>
</emailList>
<phoneList default="2-2222"
<phone type="Office">1-1111</phone>
<phone type="Home">2-2222</phone>
<phone type="Mobile">3-3333</phone>
<phone type="Fax">4-4444</phone>
<phone type="Pager">5-5555</phone>
</phoneList>
<email>jdoe@novell.com</email>
</add>
<delete>
<phone>1-1111</phone>
<emailList primary="jdoe@novell.com"
<email>jdoe@novell.com</email>
</emailList>
<phoneList>
<phone type="Office">1-1111</phone>
<phone type="Home">2-2222</phone>
<phone type="Mobile">3-3333</phone>
<phone type="Fax">4-4444</phone>
<phone type="Pager">5-5555</phone>
</phoneList>
<email>jdoe@novell.com</email>
</delete>
</updates>
</modifyItemRequest>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Trouble with modifyItemRequest

Sorry, I can't give you any help.

>>> On Thursday, December 17, 2009 at 1:16 AM,

gismow<gismow@no-mx.forums.novell.com> wrote:

> Hi Preston,
>
> any news on this ?
>
> Regards
> Gismow
>
> gismow;1904977 Wrote:
>> Hi,
>>
>> I'm using the SOAP interface to a 7.0.3 server. I followed the sample
>> request from your specs, so I thought it would be OK to remove all
>> fields and add them again. In addition it would be very complicated to
>> analyze all addresses, emails, phone numbers if there are maybe any
>> changes.
>>
>> Here's the sample from your specs, it removes all existing fields and
>> adds them again, even if they where existing.
>>
>> >

> Code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
> > >

> > Modify a Contact
> >
> > <modifyItemRequest>
> > <id>406BD9A1.AutoDomain.AutoPO1.104.1363230.1.E3.1@56:
> > 3B38B6FA.AutoDomain.AutoPO1.104.1363230.1.1.1@53</id>
> > <updates>
> > <add>
> > <phone>1‑1111</phone>
> > <emailList primary="jdoe@novell.com"
> > <email>jdoe@novell.com</email>
> > </emailList>
> > <phoneList default="2‑2222"
> > <phone type="Office">1‑1111</phone>
> > <phone type="Home">2‑2222</phone>
> > <phone type="Mobile">3‑3333</phone>
> > <phone type="Fax">4‑4444</phone>
> > <phone type="Pager">5‑5555</phone>
> > </phoneList>
> > <email>jdoe@novell.com</email>
> > </add>
> > <delete>
> > <phone>1‑1111</phone>
> > <emailList primary="jdoe@novell.com"
> > <email>jdoe@novell.com</email>
> > </emailList>
> > <phoneList>
> > <phone type="Office">1‑1111</phone>
> > <phone type="Home">2‑2222</phone>
> > <phone type="Mobile">3‑3333</phone>
> > <phone type="Fax">4‑4444</phone>
> > <phone type="Pager">5‑5555</phone>
> > </phoneList>
> > <email>jdoe@novell.com</email>
> > </delete>
> > </updates>
> > </modifyItemRequest>
> >
> >

> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>> >

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.