NetTalk Central

Author Topic: How to test for the www.xxxxx.com?wsdl parameter?  (Read 3920 times)

patrick de laet

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • ShopPlus
    • Email
How to test for the www.xxxxx.com?wsdl parameter?
« on: September 11, 2015, 02:34:43 AM »
(NetTalk 6 - handcoded NetWebPage procedure)

I have to return a SOAP WSDL definition to everyone who requests www.xxxxx.com?wsdl.

How do I test in my netWebpage for the presence of the ?wsdl parameter?

I tried ...

    If p_web.IfExistsValue('wsdl')
        message('yes')
    Else
        message('no')
    End      

But it doesn't work for www.xxxxx.com?wsdl

It does work for www.xxxxx.com?wsdl=1

but this is not an option.

(and going to NetTalk 8 is also not an option, because my program is still in C6)
(and going to C9 is not an option, because I don't have the time for the moment :-) )

regards

patrick de laet


« Last Edit: September 11, 2015, 02:36:18 AM by patrick de laet »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: How to test for the www.xxxxx.com?wsdl parameter?
« Reply #1 on: September 11, 2015, 04:04:37 AM »
Hi Patrick,

I think just do an instring on
p_web.WholeURL
eg

if instring('?wsdl',lower(p_web.WholeURL),1,1)
  ! whatever.


Cheers
Bruce