Article View: borland.public.cppbuilder.internet.web
Article #66WebService Problem with BDS
From: Omar Zelaya
Date: Fri, 16 Mar 2007 19:04
Date: Fri, 16 Mar 2007 19:04
37 lines
2041 bytes
2041 bytes
Hi,
i have created a new webservice in BDS2006(Update 2 and all hotfixes), then
i created a test program for the webservice
when i compile the generated interfase file i get the following warning:
Nonportable pointer comparison and this line of the generated code by BDS
if (addr=="") // here is the warning
addr = useWSDL ? defWSDL : defURL;
then when i call the funtion to get the interfase for the webservice i get
the following exception:
No WSDL or URL property was set in THTTPRIO component.You must set the WSDL
or URL....
this is how i'm calling the interfase function
_di_IRecepcion MyRecepcion
MyRecepcion = GetIRecepcion(false,"");
ifi change the useWSDL parameter to true i get the same exception:
Unable to load SWDL File/Location: ....
after testing i have noticed that the problem is in the following generated
code
if (addr=="")
addr = useWSDL ? defWSDL : defURL;
this statement is never executed even if addr IS "", i have changed the if
statement to this (System::AnsiString(addr)=="") and now everything works
fine.
Is this a bug or am i doing something wrong?
Thanks in advance
Omar Zelaya
Technical Details
Message-ID:
<45faea3b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,f0ff17c72609a74a,start X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Omar Zelaya" <ozelaya2010@hotmail.com> Newsgroups: borland.public.cppbuilder.internet.web Subject: WebService Problem with BDS Date: Fri, 16 Mar 2007 13:04:25 -0600 Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 NNTP-Posting-Host: 200.30.163.212 Message-ID: <45faea3b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1174071867 200.30.163.212 (16 Mar 2007 12:04:27 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail