Page 1 of 1

Soap and SET datatype : How to specify the separator?

Posted: Wed May 26, 2010 9:59 am
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.

Soap and SET datatype : How to specify the separator?

Posted: Wed May 26, 2010 10:37 am
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?

Soap and SET datatype : How to specify the separator?

Posted: Wed May 26, 2010 11:52 am
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>
...

Soap and SET datatype : How to specify the separator?

Posted: Wed May 26, 2010 1:26 pm
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.