Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Thu, 18 Oct 2007 04:38:59 -0700,    group: microsoft.public.xml.soapsdk        back       


problem with SOAPSDK 3.0 with array of objects   
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!
date: Thu, 18 Oct 2007 04:38:59 -0700   author:   unknown

Re: problem with SOAPSDK 3.0 with array of objects   
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
date: Thu, 18 Oct 2007 13:34:01 -0000   author:   giova

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us