Hi gurus, i try to build a WS with VB6 ;it has a function that returns an array of custom objects. I write a custom mapper in a dll type mapper like : mytypeMapper.myobject and the function on the dll server is like: public returnList () As mytypeMapper.myobject() etc... the WSDL and wsml generated by utility MSDL generator seam ok, but when i call the service, in the response: ---------------------------------------------- <?xml version="1.0" encoding="UTF-8" standalone="no" ?> - <SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP- ENV="http://schemas.xmlsoap.org/soap/envelope/"> - <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/ soap/encoding/"> - <SOAPSDK4:returnList Response xmlns:SOAPSDK4="http://tempuri.org/ ProjectOne/message/"> - <Result xmlns:SOAPSDK5="http://tempuri.org/ProjectOne/type/" SOAPSDK3:arrayType="SOAPSDK5:_myobject[2]" SOAPSDK3:offset="[0]" SOAPSDK2:type="SOAPSDK3:Array"> - <SOAPSDK5:_myobject> <ID>9</ID> <CODEX>900</CODEX> <DESCR>computer</DESCR> </SOAPSDK5:_myobject> <SOAPSDK5:_myobject/> </Result> </SOAPSDK4:returnListResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> ---------------------------------------------------- the array expected is formed of only ONE object; the array len is TWO ??? (see _myobject[2]) and i have a <SOAPSDK5:_myobject/> (without data) that is not in the array with ONE object that i pass!!!! thanks everyone for help!
On 18 Ott, 13:38, giova...@gmail.com wrote: > Hi gurus, > i try to build a WS with VB6 ;it has a function that returns an array > of custom objects. > I write a custom mapper in a dll type mapper like : > mytypeMapper.myobject > > and the function on the dll server is like: > public returnList () As mytypeMapper.myobject() > etc... > > the WSDL and wsml generated by utility MSDL generator seam ok, > but when i call the service, in the response: > > ---------------------------------------------- > <?xml version="1.0" encoding="UTF-8" standalone="no" ?> > - <SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" > xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" > xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP- > ENV="http://schemas.xmlsoap.org/soap/envelope/"> > - <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/ > soap/encoding/"> > - <SOAPSDK4:returnList Response xmlns:SOAPSDK4="http://tempuri.org/ > ProjectOne/message/"> > - <Result xmlns:SOAPSDK5="http://tempuri.org/ProjectOne/type/" > SOAPSDK3:arrayType="SOAPSDK5:_myobject[2]" SOAPSDK3:offset="[0]" > SOAPSDK2:type="SOAPSDK3:Array"> > - <SOAPSDK5:_myobject> > <ID>9</ID> > <CODEX>900</CODEX> > <DESCR>computer</DESCR> > </SOAPSDK5:_myobject> > <SOAPSDK5:_myobject/> > </Result> > </SOAPSDK4:returnListResponse> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > ---------------------------------------------------- > the array expected is formed of only ONE object; > the array len is TWO ??? (see _myobject[2]) > and i have a <SOAPSDK5:_myobject/> (without data) > that is not in the array with ONE object that i pass!!!! > > thanks everyone for help! thanks