did you mean "wslimporter" instead of "wdlimporter"?
What version of Delphi are you using?
Is it possible that any of the parameter names have changed case?
Main Topics
Browse All TopicsHi.
I have been supplied with an wsdl file which I have imported in to delphi via the WSDL Importer
everything looks correct.
But when I run the functions it generator, it is as if the parameters arent being seen correctly
on the server (an external company), as I either get
a dummy records back back if the parameter is an integer, giving the impression I have passed a zero to the function as opposed to the valid number I know I have passed.
if the parameter is a string, it generates an java error.
I was told to try SOAPUI, and that works, so is there something extra I need to do to the
automatically generated file (from the wdlimporter) for the parameters to be seen at the
server end ?
I am a novice at webservices so there is probably something obvious I have missed
any help much appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Sorry for the delay been on holiday just got back.
I am on delphi 2007, the wsdl file is new and we are testing it out.
I used the wsdl importer off the webservices (new item) to generate the unit.
I have re-downloaded the wsdl from the url given, and it generates the same unit.
I can sent the wsld but it is IP restricted for testing
how would I know if it wasn't. ? I am a novice on webservices.
The wdsl file is generated by a multi national company so I assume it is correct.
But maybe it isnt for (I shouldnt make assumptions).
I tried it using SoapUI, and it worked, but had to 'bind' the endpoints before it would work.
but cant see a similar thing in the delphi help file
What sort of thing should I be looking for ?
What parameters are you using with the WSDL importer?
Check out this comment:
http://www.experts-exchang
Is your Delphi2007 maintenance up to date? (look for patches 38342, 47506)
What is the data type of the parameter that is rendered by the WSDL Importer?
In the wdsl generated unit I have calls like
function getpropertybyuprn(const uprn: Int64): WideString; stdcall;
function getpostcode(const postcode: WideString): WideString; stdcall;
end;
function Getnlpgweb(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): nlpgweb;
I then call the code
str := getnlpg(false, '').getpropertyuprn(123456
or
str := getnlpg(false, '').getpostcode('AB1 1TJ');
passing across a number give the impression of zero being passed. Passing the string gives
a java null string error.
--------------------------
I will check on my version of delphi 2007 and patches and get back to you.
I tried that in the sense, I declared 2 varaibles
uprn : int64;
postcode : widestring;
as this is how I started.
I have gone back to trying the wdslimp from the codegear bin directory.
If I I call it
wsdlimp -0l+ -P test.wsdl
when the test.wsdl has my wsld file in, then in the command line I get
Reading: test.wsdl
Import: test.wsdl:0
*Error*: followed by the schema location on the 3rd parties servers
If I look at the generated test.pas file I find comments like
// The following types, referred to in the WSDL document are not being represented
// in this file. They are either alaises [@} of other types represented or were referred
// to but never[!] declared in the document. The types from the latter. The types from the latter
// category typically map to the predefined/known xml or Borland types; however; they also could
//indicate incorrect wsdl documents that failed to declare or imoprt a schema type
Does this mean that the wsdl or the xml generated from the 3rd party company is erroreous
Business Accounts
Answer for Membership
by: junebrownPosted on 2009-10-06 at 11:03:52ID: 25507891
Increased the points in the hope someone will help