Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > ATLSOAP: CSoapRootHandler::CheckEndElement -- invalid number of elements for par

Reply
Thread Tools

ATLSOAP: CSoapRootHandler::CheckEndElement -- invalid number of elements for par

 
 
Talin
Guest
Posts: n/a
 
      08-11-2003
I'm unable to return a complex object from an XML Web
Service. Whenever I do, the client which consumes my web
service sees the "Subject" matter in it's debug output
window.

Any Web service method that I have which returns a
pointer to a class object always fails on the client
attempting to consume my web service. The method
actually succeeds in my web service, but the client
always gets an object return value that is full of
garbage. When debugging the C++ client, the following
message appears in the Visual Studio .NET C++ Output
window:

ATLSOAP: CSoapRootHandler::CheckEndElement -- invalid
number of elements for parameter/field

The only other interesting piece of information is that
if I completely fill in one of the objects defined below,
remove the second NULL object from the WSDL definition,
rebuild the client with the new WSDL, everything returns
fine. If either one of the two objects defined below is
returned as NULL, I get the garbage return value
problem. Why can't I have a return value that contains
pointers to 2 (or more) other internal objects????

FYI: My return value that has the problem is defined as
follows (WSDL)
<s:complexType name="CwsDefinePlanResponse">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1"
name="_success" type="s:boolean" />
<s:element minOccurs="1" maxOccurs="1"
name="_CmdResponseType" type="s:int" />
<s:element minOccurs="1" maxOccurs="1"
name="_CmdResponseCode" type="s:int" />
<s:element minOccurs="0" maxOccurs="1"
name="_reasonForFailure" type="s:string" />
<s:element minOccurs="0" maxOccurs="1"
name="_definedDCP" nillable="true"
type="s0:CwsDefinedDCP" />
<s:element minOccurs="0" maxOccurs="1"
name="_unauthorizedOperation" nillable="true"
type="s0:CwsUnauthorizedOperation" />
</s:sequence>
</s:complexType>
<s:complexType name="CwsDefinedDCP">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="_planId" type="s:string" />
<s:element minOccurs="0" maxOccurs="1"
name="_timeDefined" type="s:string" />
<s:element minOccurs="0" maxOccurs="1"
name="_definedBy" type="s:string" />
</s:sequence>
</s:complexType>
<s:complexType name="CwsUnauthorizedOperation">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="_description" nillable="true" type="s:string" />
<s:element minOccurs="0" maxOccurs="1"
name="_requiredPrivilege" nillable="true"
type="s:string" />
</s:sequence>
</s:complexType>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find par loader at C:/Perl/site/lib/PAR/Packer.pm line 101 Oliver Soeder Perl Misc 1 06-30-2007 02:32 PM
Can't find par loader at C:/Perl/site/lib/PAR/Packer.pm line 101. osoeder@gmx.de Perl Misc 0 06-07-2007 02:58 PM
PAR, PAR::Packer smueller@cpan.org Perl Misc 1 12-01-2006 09:41 PM
How do fix: "Wrong number of arguments" / "invalid propert assignment"/ "Invalid argument" Java Guy Java 1 10-15-2006 08:31 PM
message eradique par une regle emise par SPE interscaneManager@fr.ch Python 0 08-21-2003 07:47 PM



Advertisments