BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Trouble with Delphi 7

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP
View previous topic :: View next topic  
Author Message
Mark Patterson
Guest





PostPosted: Thu Apr 26, 2007 5:15 pm    Post subject: Trouble with Delphi 7 Reply with quote



Hi,

I'm trying to import some wsdl files into Delphi 7. A number of them are
giving an error that some types are not declared. This problem is
anticipated in the comments:

//
************************************************************************ //
// The following types, referred to in the WSDL document are not
being represented
// in this file. They are either aliases[@] of other types
represented or were referred
// to but never[!] declared in the document. The types from the
latter category
// typically map to predefined/known XML or Borland types; however,
they could also
// indicate incorrect WSDL documents that failed to declare or import
a schema type.
//
************************************************************************ //
// !:string - "http://www.w3.org/2001/XMLSchema"
// !:date - "http://www.w3.org/2001/XMLSchema"
// !:dateTime - "http://www.w3.org/2001/XMLSchema"
// !:decimal - "http://www.w3.org/2001/XMLSchema"
// !:integer - "http://www.w3.org/2001/XMLSchema"
// !:ListOfAttendances - "http://www.w3.org/2001/XMLSchema"
// !:AttendanceCancellation - "http://www.w3.org/2001/XMLSchema"
// !:CancelledAttendance - "http://www.w3.org/2001/XMLSchema"


Then in the code ListOfAttendances, AttendanceCancellation and
CancelledAttendance are referred to.

Are there any known problems in the wsdl importer? Could this have been
fixed in the latest version of Delphi?

Regards,

--
Mark Patterson
www.piedsoftware.com
Back to top
Jean-Marie Babet
Guest





PostPosted: Sat Apr 28, 2007 12:10 am    Post subject: Re: Trouble with Delphi 7 Reply with quote



Mark,

I would suggest trying the new importer/runtime at the following link. If
that does not solve the problem, I'll be happy to investigate if you can
point me to the WSDL:

http://codecentral.codegear.com/Item/24535

Cheers,

Bruneau.
Back to top
Mark Patterson
Guest





PostPosted: Sun Apr 29, 2007 4:45 pm    Post subject: Re: Trouble with Delphi 7 Reply with quote



Jean-Marie Babet wrote:
Quote:
Mark,

I would suggest trying the new importer/runtime at the following link. If
that does not solve the problem, I'll be happy to investigate if you can
point me to the WSDL:

http://codecentral.codegear.com/Item/24535

Thanks. I downloaded that and tried again. It didn't fix the problem. I
also tried it in Delphi 2007, which is downloaded in trial format. That
version crashed with stack overflow when I try to import one of the wsdl's.

Is there any other way to try this?

--
Mark Patterson
www.piedsoftware.com
Back to top
Jean-Marie Babet
Guest





PostPosted: Mon Apr 30, 2007 11:43 pm    Post subject: Re: Trouble with Delphi 7 Reply with quote

Hello Mark,

Quote:
Thanks. I downloaded that and tried again. It didn't fix the problem. I
also tried it in Delphi 2007, which is downloaded in trial format. That
version crashed with stack overflow when I try to import one of the
wsdl's.

Is there any other way to try this?

I have a slightly later importer than the one that shipped with D2007 but I
can't think of any stack-overflow fixes that went in. If you can point me to
the WSDLs, I'll be happy to investigate.

Cheers,

Bruneau.
Back to top
Jean-Marie Babet
Guest





PostPosted: Mon Apr 30, 2007 11:50 pm    Post subject: Re: Trouble with Delphi 7 Reply with quote

Hello,

Quick note to mention that I just noticed you emailed me the WSDLs. I'll
investigate and relay my findings.

Cheers,

Bruneau.
Back to top
Jean-Marie Babet
Guest





PostPosted: Tue May 01, 2007 12:42 am    Post subject: Re: Trouble with Delphi 7 Reply with quote

Hello Mark,

Indeed there was a bug in the way XMLSchema resolves 'ref="xxxx"' that
caused an endless loop/stack overflow. I've short-circuited the importer to
refrain from using IXMLElementDef.Name in cases where there's a 'ref="xxxx"'
attribute. I've forwarded you the .pas files generated by the importer after
the fix. If you'd like a copy of the updated importer, I'd be happy to email
a .zipped copy. Also, if you have D2007, I can make available the source
changes in case you want to rebuild the importer.

Cheers,

Bruneau.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.