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 

Create webservice with provided WSDL

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






PostPosted: Thu May 03, 2007 11:14 pm    Post subject: Create webservice with provided WSDL Reply with quote



Hallo,

I need to create a webservice according to a already defined WSDL.
Normally in BDS2006 I create a new ASP.NET Webservice and the WSDL is
automatically created. The problem is that this automatically created
WSDL doesn't correspond to the WSDL provdided (created with Java), for
example messages and arrays are declared differently. Is there a way
to create a webservice according to a WSDL which is already provided
(top-down)?

I already tried to modify the WSDL with serialization, but there are
too much differences.

Kind regards,

Revilo
Back to top
Jean-Marie Babet
Guest





PostPosted: Fri May 04, 2007 4:51 am    Post subject: Re: Create webservice with provided WSDL Reply with quote



Hello Revilo,

The WSDL.EXE tool has a feature that supports what you're after: it's
referred to as the /serverInterface (or /si). I've used it a lot to recreate
a WebService based on a given WSDL. I don't know if the IDE exposes this
feature but behind the scene we use WSDL.EXE to generate code for xml web
service clients so it should be possible to invoke the utility by hand. The
tricky issue might be the /language:xxxx option if you want Delphi.NET code;
you'll need to specify the DelphiProvider as that parameter; otherwise,
WSDL.EXE defaults to C# code.

Let me know if you need more information.

Cheers,

Bruneau.
Back to top
Guest






PostPosted: Fri May 04, 2007 8:13 am    Post subject: Re: Create webservice with provided WSDL Reply with quote



Bruneau,

I managed to generate Delphi.NET code with WSDL.exe:

wsdl /server /
l:Borland.Delphi.DelphiCodeProvider,DelphiProvider,Version=10.0.4143.0,Culture=neutral,PublicKeyToken=91d62ebb5b0d1b1b
mywebservice.wsdl

(The line above only works for Delphi2006, for other Delphi versions
you need to change version and PublicKeyToken)

Now I'll try to get it to work! ;)

Kind regards,


Revilo
Back to top
Guest






PostPosted: Fri May 04, 2007 8:13 am    Post subject: Re: Create webservice with provided WSDL Reply with quote

Bruneau,

Thanks for your answer. I already tried this, but I'm not that
familiar with C#... I coul'dn't figure out how to use this created
unit to create the functions in the webservice. Do I need to copy the
created functions in the [WebService] class, which is behind my .asmx?


The tricky part is indeed to generate Delphi.NET code with WSDL.exe.
Any suggestions/examples on this subject would be greatly
appreciated...

Kind regards,

Revilo

On May 4, 1:51 am, "Jean-Marie Babet" <bba...@borland.com> wrote:
Quote:
Hello Revilo,

The WSDL.EXE tool has a feature that supports what you're after: it's
referred to as the /serverInterface (or /si). I've used it a lot to recreate
a WebService based on a given WSDL. I don't know if the IDE exposes this
feature but behind the scene we use WSDL.EXE to generate code for xml web
service clients so it should be possible to invoke the utility by hand. The
tricky issue might be the /language:xxxx option if you want Delphi.NET code;
you'll need to specify the DelphiProvider as that parameter; otherwise,
WSDL.EXE defaults to C# code.

Let me know if you need more information.

Cheers,

Bruneau.
Back to top
Jean-Marie Babet
Guest





PostPosted: Fri May 11, 2007 1:30 am    Post subject: Re: Create webservice with provided WSDL Reply with quote

Hello,

Thanks for the follow up post.

Yes, updated versions must use whatever is registered in the GAC (Goto
c:\windows\assembly and look for the assembly named 'DelphiProvider').

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.