Groups > Borland > Dellphi web services soap > Re: WSDLImp.exe how to have a special output file ???




WSDLImp.exe how to have a special output file ???

WSDLImp.exe how to have a special output file ???
Wed, 13 Feb 2008 08:12:52 +010
Hi,

I like to reimport an replace a existing .Pas file by WSDLImp don't 
unterstood how I give a target file by commando line. The description is:

  -=+ Output filename after'=' in URL

but this don't work (or I make any error). For example:

WSDLImp -P  "http://soapbox:6060/zav/StreetDirectoryService/"

I try (beside other)

WSDLImp -P 
"http://soapbox:6060/zav/StreetDirectoryService/"=Test.pas

WSDLImp -P 
"http://soapbox:6060/zav/StreetDirectoryService/"-=Test.pas

WSDLImp -P  -=Test.pas
"http://soapbox:6060/zav/StreetDirectoryService/"

nothing works... How is the correct syntax?

Nils
Post Reply
Re: WSDLImp.exe how to have a special output file ???
Wed, 13 Feb 2008 14:08:01 -080
Hello,

 WSDLImp -P  -=   http://soapbox:6060/zav/StreetDirectoryService/=Test.pas

Cheers,

Bruneau.

Post Reply
Re: WSDLImp.exe how to have a special output file ???
Thu, 14 Feb 2008 00:26:00 +010
Hi,



> 
>  WSDLImp -P  -=   http://soapbox:6060/zav/StreetDirectoryService/=Test.pas
> 

Thank you... it works...

one tip (becaus of my problems):

The Syntax ist very difficult to unterstood... change it to

WSDLImp -P  -T<TargetFile>

or

WSDLImp -P  http://soapbox:6060/zav/StreetDirectoryService/=<TARGETFILE>

this is much easier... or put an example in the description...

Post Reply
Re: WSDLImp.exe how to have a special output file ???
Thu, 14 Feb 2008 09:36:40 -080
Hello,

> WSDLImp -P  -T<TargetFile>
>
> or
>
> WSDLImp -P 
http://soapbox:6060/zav/StreetDirectoryService/=<TARGETFILE>
>
> this is much easier... or put an example in the description...


I agree that -T would have been much better. Unfortunately there are
historical reasons for this (there always is:).

Since the importer can accept multiple URLs we started out with the second
option you proposed above. However, that caused problems because '=' is
often part of the URL - for queryString parameters.  A -T would be confusing
when you specify several URLs. Which target file to match with which URL.
Yes, there's the option of making the -T map to the preceding URL but that's
error prone. So as a compromise you now specify -= to tell is that it's safe
to treat the '=' in the URL as the targetFile and not a querystring
parameter.

Not ideal - I totally agree...but that kept the original syntax intact. I'll
ask the documentation team to add something about this issue.

Cheers,

Bruneau.

Post Reply
about | contact