Soap and SET datatype : How to specify the separator?

Post Reply
michel.weber
Posts: 256
Joined: Sat Oct 08, 2005 12:40 pm

Soap and SET datatype : How to specify the separator?

Post by michel.weber »

Hi

I can't figure out how to specify the separator in a SOAP request for the SET datatype.

I have tried the following :
<m:Publisher separator=",">
<m:value>entDGPA</m:value>
<m:value>entDHCommissioner</m:value>
</m:Publisher>
but the attribute is ignored, and systematically the separator returned is the last character of the value.
User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

Soap and SET datatype : How to specify the separator?

Post by jason112 »

It's not possible to set the separator with the SOAP API. It's intelligent about selecting the separator and shouldn't use anything that's in your data (',' by default, will use '|' if you have ',' in your data, etc).

When using dataload & search, there should be no reason for you to worry about the separator at all. Anytime you're working with the content, it should already be split into multiple elements like this for you. Is this impacting your data somehow?
michel.weber
Posts: 256
Joined: Sat Oct 08, 2005 12:40 pm

Soap and SET datatype : How to specify the separator?

Post by michel.weber »

I only tried to set it because i did get back 'strange' results.

When i use XML output via the search interface, i get something like this :

<u:TypeCoE>docEvent</u:TypeCoE>
<u:Version>2.2</u:Version>
<u:LanguageCoE>lanEnglish</u:LanguageCoE>
<u:Categories>Civil society initiatives <b>Cinema</b> - Partial Agreement
Eurimages France DGDPA Commissioner for Human Rights European
Union</u:Categories>
<u:Tags></u:Tags>
<u:Publisher separator=",">
<u:value>entDGPA,entDHCommissioner,entEuropeanUnion,</u:value>
</u:Publisher>
<u:Coverage separator=",">
<u:value>geoFrance,</u:value>
</u:Coverage>
<u:Subject separator=",">
<u:value>thmCivilSocInitiatives,thmEurimages,</u:value>
</u:Subject>

via the SOAP interface i get this :

<u:TypeCoE>docEvent</u:TypeCoE>
<u:Version>2.2</u:Version>
<u:LanguageCoE>lanEnglish</u:LanguageCoE>
<u:Categories>Civil society initiatives <b>Cinema</b> - Partial
Agreement Eurimages France DGDPA Commissioner for Human Rights European
Union</u:Categories>
<u:Tags/>
<u:Publisher separator="A">
<u:value>entDGPA</u:value>
</u:Publisher>
<u:Coverage separator="e">
<u:value>geoFrance</u:value>
</u:Coverage>
<u:Subject separator="s">
<u:value>thmCivilSocInitiatives</u:value>
</u:Subject>
Results only contain one value and the separator attribute is a bit funny.

Versions are : Webinator+ 5.1.86 (WSDl V1.37 2009/09/11)

So if i understand your previous reply correctly i should have something like this :
<u:value>firstvalue</u:value>
<u:value>secondvalue</u:value>
...
User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

Soap and SET datatype : How to specify the separator?

Post by jason112 »

> So if i understand your previous reply correctly i
> should have something like this :
>  <u:value>firstvalue</u:value>
>  <u:value>secondvalue</u:value>

That's correct. The XML data makes it look like the field was set improperly, while the difference between XML & SOAP looks like something that will need fixed with a script update.

> Versions are : Webinator+ 5.1.86 (WSDl V1.37
> 2009/09/11)

Being Webinator+ and non-standard, please open a support ticket so we can discuss these details further and provide a software update if necessary.
Post Reply