<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>11 Jul 2017 11:23:09 Z</lastBuildDate><pubDate>7 Jul 2017 12:16:47 Z</pubDate><description>Hello,&#13;
&#13;
Im getting this error while trying to send a structure with an enumeration to a test webservice&#13;
&#13;
Full Error:&#13;
	WL call:&#13;
	Process of 'Click Button1' (WebService.Button1), line 24, thread 0&#13;
&#13;
	What happened?&#13;
	The following error was returned by the service: &#13;
	Code: 'Client'&#13;
	Message: Un élément de type 'xsdEntité' ne peut pas être converti vers le type 'énumération'.&#13;
	&#13;
	Error code: 40066&#13;
	Level: non-fatal error&#13;
	&#13;
	System error message:&#13;
	Details: Que s'est-il passé ?&#13;
	Un élément de type 'xsdEntité' ne peut pas être converti vers le type 'énumération'.&#13;
	&#13;
	Code erreur : 1021&#13;
	Niveau : erreur fatale&#13;
	&#13;
	Dump de l'erreur du module 'wd220vm.dll' (22.0.262.1).&#13;
	Identifiant des informations détaillées (.err) : 1021&#13;
	Informations de débogage :&#13;
	UEL = 109&#13;
	Dump of the error of 'wd220xml.dll' module (22.0.27.0).&#13;
	Additional Information:&#13;
	EIT_PILEWL :&#13;
	Click Button1 (WebService.Button1), line 24&#13;
	EIT_DATEHEURE : 07/07/2017 11:05:10&#13;
	EIT_TYPE_WDFILE : &lt;2&gt;&#13;
	EIT_IDCODE : &lt;18&gt;&#13;
&#13;
&#13;
&#13;
Here is all my code:&#13;
&#13;
	Project code:&#13;
		[code:wl]&#13;
		EErpAvailabilityStatus is Enumeration&#13;
	unbekannt&#13;
	verfuegbar&#13;
	nichtverfuegbar&#13;
	teilvefuergbar&#13;
	alternativlagerverfuegbar&#13;
	nochnichtangefragt&#13;
END&#13;
		[/code]&#13;
&#13;
	Button code:&#13;
		[code:wl]&#13;
		cGetArticleInformation is OMA.GetArticleInformation&#13;
cGetArticleInformationResponse is OMA.GetArticleInformationResponse&#13;
&#13;
cGetArticleInformation.user.CustomerId="123"&#13;
cGetArticleInformation.user.UserName="123"&#13;
cGetArticleInformation.user.PassWord="123"&#13;
cGetArticleInformation.user.SID="1"&#13;
&#13;
Artigo is OMA.Item&#13;
&#13;
Artigo.WholesalerArtNr="123"&#13;
Artigo.EinspNr="456"&#13;
Artigo.EinspArtNr="789"&#13;
Artigo.AvailState = EErpAvailabilityStatus.nochnichtangefragt&#13;
ArrayAdd(cGetArticleInformation.items.Item.Item,Artigo)&#13;
&#13;
Artigo.WholesalerArtNr="321"&#13;
Artigo.EinspNr="654"&#13;
Artigo.EinspArtNr="987"&#13;
Artigo.AvailState = EErpAvailabilityStatus.nichtverfuegbar&#13;
ArrayAdd(cGetArticleInformation.items.Item.Item,Artigo)&#13;
&#13;
&#13;
cGetArticleInformationResponse=OMA.GetArticleInformation(cGetArticleInformation)&#13;
&#13;
IF ErrorOccurred()=True THEN&#13;
	Error(ErrorInfo(errFullDetails))&#13;
	RETURN&#13;
END&#13;
&#13;
Info(cGetArticleInformationResponse.GetArticleInformationResult.ErrorMessage..Value)&#13;
Info(cGetArticleInformationResponse.GetArticleInformationResult.ErrorCode..Value)&#13;
Info(cGetArticleInformationResponse.GetArticleInformationResult.ErrorId..Value)&#13;
		[/code]&#13;
&#13;
Used WSDL located here: http://golfinhosoft.webdev-test.com/OMA_WEB/awws/OMA.awws?wsdl&#13;
&#13;
Any help is greatly appreciated</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61599-wd22-element-xsdentity-type-cannot-converted-enumeration-type/read.awp</link><title>[WD22] An element of 'xsdEntity' type cannot be converted to the 'enumeration' type</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>tim</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61599-wd22-element-xsdentity-type-cannot-converted-enumeration-type-61675/read.awp</comments><pubDate>11 Jul 2017 11:23:09 Z</pubDate><description>The thing is, the enumeration is an enumeration in code, but while it is send, it's a string&#13;
[code:xml]&#13;
&lt;s:simpleType name="EE…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61599-wd22-element-xsdentity-type-cannot-converted-enumeration-type-61675/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61599-wd22-element-xsdentity-type-cannot-converted-enumeration-type-61675/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61599-wd22-element-xsdentity-type-cannot-converted-enumeration-type/read.awp">[WD22] An element of 'xsdEntity' type cannot be converted to the 'enumeration' type</source><title>Re: [WD22] An element of 'xsdEntity' type cannot be converted to the 'enumeration' type</title></item><item><author>José BRANDÃO</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61599-wd22-element-xsdentity-type-cannot-converted-enumeration-type-61654/read.awp</comments><pubDate>10 Jul 2017 19:11:10 Z</pubDate><description>Thanks for the reply.&#13;
&#13;
Here's what i tried:&#13;
- Changing enumeration on the client project&#13;
- Changing enumeration on the serve…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61599-wd22-element-xsdentity-type-cannot-converted-enumeration-type-61654/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61599-wd22-element-xsdentity-type-cannot-converted-enumeration-type-61654/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61599-wd22-element-xsdentity-type-cannot-converted-enumeration-type/read.awp">[WD22] An element of 'xsdEntity' type cannot be converted to the 'enumeration' type</source><title>Re: [WD22] An element of 'xsdEntity' type cannot be converted to the 'enumeration' type</title></item><item><author>Tim</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61599-wd22-element-xsdentity-type-cannot-converted-enumeration-type-61653/read.awp</comments><pubDate>10 Jul 2017 16:58:31 Z</pubDate><description>Hello,&#13;
&#13;
Try this:&#13;
[code:wl]&#13;
EErpAvailabilityStatus is Enumération&#13;
unbekannt = "unbekannt"&#13;
verfuegbar = "verfuegbar"&#13;
nicht…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61599-wd22-element-xsdentity-type-cannot-converted-enumeration-type-61653/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61599-wd22-element-xsdentity-type-cannot-converted-enumeration-type-61653/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61599-wd22-element-xsdentity-type-cannot-converted-enumeration-type/read.awp">[WD22] An element of 'xsdEntity' type cannot be converted to the 'enumeration' type</source><title>Re: [WD22] An element of 'xsdEntity' type cannot be converted to the 'enumeration' type</title></item></channel></rss>
