<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>8 Mar 2018 16:41:39 Z</lastBuildDate><pubDate>9 Feb 2018 16:51:40 Z</pubDate><description>Done using Windev22&#13;
&#13;
Im developing a webservice to be used by a website that will request articles informations.&#13;
&#13;
I have a fixed wsdl to use (http://golfinhosoft.webdev-test.com/OMA_WEB/awws/OMA.awws?wsdl) and with it i built the following structures:&#13;
&#13;
[code:wl]&#13;
ErpAvailabilityStatus is Enumeration&#13;
	unbekannt = "unbekannt"&#13;
	verfuegbar = "verfuegbar"&#13;
	nichtverfuegbar = "nichtverfuegbar"&#13;
	teilvefuergbar = "teilvefuergbar"&#13;
	alternativlagerverfuegbar = "alternativlagerverfuegbar"&#13;
	nochnichtangefragt = "nochnichtangefragt"&#13;
END&#13;
&#13;
GetArticleInformation is Structure&#13;
	User is User&#13;
	Items is Items&#13;
END&#13;
GetArticleInformationResponse is Structure&#13;
	GetArticleInformationResult is GetBackItems&#13;
END&#13;
GetBackItems is Structure&#13;
	Items is Items&#13;
	ErrorCode is numeric&#13;
	ErrorId is numeric&#13;
	ErrorMessage is string&#13;
END&#13;
ArrayOfPrice is Structure&#13;
	Price is array of Price&#13;
END&#13;
ArrayOfQuantity is Structure&#13;
	Quantity is array of Quantity&#13;
END&#13;
ArrayOfCustomer is Structure&#13;
	Customer is List of Customer&#13;
END&#13;
Suppliers is Structure&#13;
	Supplier is ArrayOfSupplier&#13;
END&#13;
ArrayOfString is Structure&#13;
	'string' is array of string&#13;
END&#13;
ArrayOfSupplier is Structure&#13;
	Supplier is List of Supplier&#13;
END&#13;
ArrayOfLocation is Structure&#13;
	Location is array of Location&#13;
END&#13;
Item is Structure&#13;
	Locations is ArrayOfLocation&#13;
	Prices is ArrayOfPrice&#13;
	Suppliers is Suppliers&#13;
	Customers is Customers&#13;
	WholesalerArtNr is string&#13;
	EinspNr is string&#13;
	EinspArtNr is string&#13;
	RequestedQuantity is Quantity&#13;
	Quantity is ArrayOfQuantity&#13;
	Memo is ArrayOfString&#13;
	AlternativeItems is ArrayOfItem&#13;
	//	AvailState is EErpAvailabilityStatus&#13;
	AvailState is string&#13;
END&#13;
Items is a Structure&#13;
	Item is ArrayOfItem&#13;
END&#13;
ArrayOfItem is a Structure&#13;
	Item is array of Item&#13;
END&#13;
QuantityExtended is Structure&#13;
	PackingUnit is string&#13;
	MinQuantity is numeric&#13;
	MaxQuantity is numeric&#13;
	ExpectedDeliveryTime is string&#13;
	//	AvailState is EErpAvailabilityStatus&#13;
	AvailState is string&#13;
END&#13;
Price is Structure&#13;
	Text is string&#13;
	Value is numeric&#13;
	VAT is numeric&#13;
	TaxIncluded is boolean&#13;
	CurrencyCode is string&#13;
	Rebate is numeric&#13;
	BatchSize is Quantity&#13;
END&#13;
Location is Structure&#13;
	Id is string&#13;
	Text is string&#13;
	Quantity is ArrayOfQuantity&#13;
END&#13;
User is Structure&#13;
	CustomerId is string&#13;
	PassWord is string&#13;
	UserName is string&#13;
	SID is string&#13;
END&#13;
Quantity is Structure&#13;
	Text is string&#13;
	Value is numeric&#13;
	QuantitieUnit is string&#13;
	QuantityExtended is QuantityExtended&#13;
END&#13;
Customer is Structure&#13;
	Id is string&#13;
	Text is string&#13;
END&#13;
Supplier is Structure&#13;
	Id is string&#13;
	Text is string&#13;
END&#13;
Customers is Structure&#13;
	Customer is ArrayOfCustomer&#13;
END&#13;
[/code]&#13;
&#13;
&#13;
Either using SoapUI, the test of the webservice on the website or testing with Windev, to call the function, i can do it just fine without any error of structure or variables.&#13;
The problem comes when i try to read the response from it, the "Error" fields show up but the "Items" field isnt coming back.&#13;
Here is my code inside the webservice:&#13;
&#13;
[code:wl]&#13;
PROCEDURE GetArticleInformation(stUser is User,stItems is Items)&#13;
&#13;
stGetBackItems is GetBackItems&#13;
stGetBackItems.ErrorCode = 0&#13;
stGetBackItems.ErrorId = 100&#13;
stGetBackItems.ErrorMessage = "SUCESS"&#13;
&#13;
clItems is Items&#13;
clArrayOfItem is ArrayOfItem&#13;
arrArrayOfItem is array of Item&#13;
clItem is Item&#13;
&#13;
clItem.WholesalerArtNr="123456789"&#13;
clItem.AvailState=verfuegbar&#13;
&#13;
clArrayOfLocation is ArrayOfLocation&#13;
arrArrayOfLocation is array of Location&#13;
clLocation is Location&#13;
&#13;
clArrayOfQuantity is ArrayOfQuantity&#13;
arrArrayOfQuantity is array of Quantity&#13;
clQuantity is Quantity&#13;
&#13;
clQuantityExtended is QuantityExtended&#13;
clQuantityExtended.AvailState=verfuegbar&#13;
&#13;
clQuantity.QuantityExtended=clQuantityExtended&#13;
clQuantity.Text="Stock"&#13;
clQuantity.QuantitieUnit="UNI"&#13;
clQuantity.Value=15&#13;
Add(arrArrayOfQuantity,clQuantity)&#13;
clArrayOfQuantity.Quantity=arrArrayOfQuantity&#13;
&#13;
clLocation.Quantity=clArrayOfQuantity&#13;
clLocation.Id=1&#13;
clLocation.Text="Description of location"&#13;
Add(arrArrayOfLocation,clLocation)&#13;
clArrayOfLocation.Location=arrArrayOfLocation&#13;
&#13;
clItem.Locations=clArrayOfLocation&#13;
&#13;
clArrayOfPrice is ArrayOfPrice&#13;
arrArrayOfPrice is array of Price&#13;
clPrice is Price&#13;
&#13;
clPrice.Text="P.V.P."&#13;
clPrice.Value=99.99&#13;
Add(arrArrayOfPrice,clPrice)&#13;
clArrayOfPrice.Price=arrArrayOfPrice&#13;
&#13;
clItem.Prices=clArrayOfPrice&#13;
&#13;
Add(arrArrayOfItem,clItem)&#13;
clArrayOfItem.Item=arrArrayOfItem&#13;
clItems.Item=clArrayOfItem&#13;
stGetBackItems.items=clItems&#13;
&#13;
RESULT stGetBackItems&#13;
[/code]&#13;
&#13;
&#13;
Here is the request that i send in Windev:&#13;
&#13;
[code:wl]&#13;
cGetArticleInformation is Erp.GetArticleInformation&#13;
cGetArticleInformationResponse is Erp.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 Erp.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;
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;
cGetArticleInformationResponse=Erp.GetArticleInformation(cGetArticleInformation)&#13;
[/code]&#13;
&#13;
&#13;
Here is the response that i get in Windev:&#13;
&#13;
https://hostimage.windev.io/images/Image1_564e6e05d11e4367284497cec965a6d7.PNG&#13;
&#13;
&#13;
&#13;
Here is the request that SoapUI automatically generates (i cutted it for better and easier understanding):&#13;
&#13;
[code:xml]&#13;
&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dvse="DVSE.WebApp.ErpService"&gt;&#13;
   &lt;soapenv:Header/&gt;&#13;
   &lt;soapenv:Body&gt;&#13;
      &lt;dvse:GetArticleInformation&gt;&#13;
         &lt;dvse:user&gt;&#13;
            &lt;dvse:CustomerId&gt;&lt;/dvse:CustomerId&gt;&#13;
            &lt;dvse:PassWord&gt;&lt;/dvse:PassWord&gt;&#13;
            &lt;dvse:UserName&gt;&lt;/dvse:UserName&gt;&#13;
            &lt;dvse:SID&gt;&lt;/dvse:SID&gt;&#13;
         &lt;/dvse:user&gt;&#13;
         &lt;dvse:items&gt;&#13;
            &lt;dvse:Item&gt;&#13;
               &lt;dvse:Item&gt;&#13;
                  &lt;dvse:WholesalerArtNr&gt;123456789&lt;/dvse:WholesalerArtNr&gt;&#13;
                  &lt;dvse:EinspNr&gt;&lt;/dvse:EinspNr&gt;&#13;
                  &lt;dvse:EinspArtNr&gt;&lt;/dvse:EinspArtNr&gt;&#13;
                  &lt;dvse:AvailState&gt;verfuegbar&lt;/dvse:AvailState&gt;&#13;
               &lt;/dvse:Item&gt;&#13;
            &lt;/dvse:Item&gt;&#13;
         &lt;/dvse:items&gt;&#13;
      &lt;/dvse:GetArticleInformation&gt;&#13;
   &lt;/soapenv:Body&gt;&#13;
&lt;/soapenv:Envelope&gt;&#13;
[/code]&#13;
&#13;
&#13;
Here is the response that i get in SoapUI:&#13;
&#13;
[code:xml]&#13;
&lt;SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt;&#13;
   &lt;SOAP-ENV:Header/&gt;&#13;
   &lt;SOAP-ENV:Body&gt;&#13;
      &lt;ns1:GetArticleInformationResponse xmlns:ns1="DVSE.WebApp.ErpService"&gt;&#13;
         &lt;ns1:GetArticleInformationResult&gt;&#13;
            &lt;ns1:ErrorCode&gt;0&lt;/ns1:ErrorCode&gt;&#13;
            &lt;ns1:ErrorId&gt;100&lt;/ns1:ErrorId&gt;&#13;
            &lt;ns1:ErrorMessage&gt;SUCESS&lt;/ns1:ErrorMessage&gt;&#13;
         &lt;/ns1:GetArticleInformationResult&gt;&#13;
      &lt;/ns1:GetArticleInformationResponse&gt;&#13;
   &lt;/SOAP-ENV:Body&gt;&#13;
&lt;/SOAP-ENV:Envelope&gt;&#13;
[/code]&#13;
&#13;
&#13;
So far i have found a problem that might be causing this issue:&#13;
&#13;
When i "Serialize" the "stGetBackItems", instead of getting something like &lt;GetBackItems&gt;&lt;Items&gt;&lt;Item&gt;&lt;Item&gt;&lt;WholesalerArtNr&gt;...., im getting &lt;GetBackItems&gt;&lt;Items&gt;&lt;Item&gt;&lt;Item&gt;&lt;Item&gt;&lt;WholesalerArtNr&gt; , one extra &lt;Item&gt;.&#13;
This is not only happening with the "&lt;Item&gt;" field but also with "&lt;Location&gt;", "&lt;Quantity&gt;", "&lt;Price&gt;", "&lt;Supplier&gt;" and "&lt;Customer&gt;". All these are the fields that are part of the "ArrayOf...." Structures.&#13;
&#13;
I've also sent a technical support request but we all know what the answer is likely to be :)</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64506-webservice-structures-failure/read.awp</link><title>WebService Structures Failure</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>José BRANDÃO</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64506-webservice-structures-failure-64872/read.awp</comments><pubDate>8 Mar 2018 16:41:39 Z</pubDate><description>[code:wl]&#13;
stItemOrigin is ImportedWebserviceName.Item&#13;
[/code]&#13;
&#13;
was meant to be&#13;
&#13;
[code:wl]&#13;
stItemOrigem is ImportedWebserv…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64506-webservice-structures-failure-64872/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64506-webservice-structures-failure-64872/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64506-webservice-structures-failure/read.awp">WebService Structures Failure</source><title>Re: WebService Structures Failure</title></item><item><author>José BRANDÃO</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64506-webservice-structures-failure-64871/read.awp</comments><pubDate>8 Mar 2018 16:40:13 Z</pubDate><description>For anyone interested in the subject or with a similar problem, this is the way i solved it:&#13;
Receiving both parameters with the…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64506-webservice-structures-failure-64871/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64506-webservice-structures-failure-64871/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64506-webservice-structures-failure/read.awp">WebService Structures Failure</source><title>Re: WebService Structures Failure</title></item><item><author>José BRANDÃO</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64506-webservice-structures-failure-64546/read.awp</comments><pubDate>12 Feb 2018 17:47:29 Z</pubDate><description>2 problems that i found meanwhile:&#13;
&#13;
the first problem was the way i was receiving both variables, should be this:&#13;
[code:wl]&#13;
…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64506-webservice-structures-failure-64546/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64506-webservice-structures-failure-64546/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64506-webservice-structures-failure/read.awp">WebService Structures Failure</source><title>Re: WebService Structures Failure</title></item></channel></rss>
