[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

Resturn value of WSDL

Hi,
I am trying to use a webservice which checks the driving licence in UK with the given information such as name surname and DOB. The return text I got is

<wddxPacket version='1.0'><header/><data><struct><var name='LICENSE_MATCH'><string><wddxPacket version='1.0'><header/><data><string>0</string></data></wddxPacket></string></var></struct></data></wddxPacket>

In this case, the licence number didn't match (0) and when it is matched the value is (1)

is there anyway to parse this output? (I am thinking something like XML and searching withing the document)

Regards,
Bill
0
bilgehanyildirim
Asked:
bilgehanyildirim
  • 2
1 Solution
 
wildzeroCommented:
A real cheap and nasty way would be do check if this exists "<string>0</string>" and if so then u know it didn't match otherwise it did.

;-)
0
 
bilgehanyildirimAuthor Commented:
any better idea :)
0
 
wildzeroCommented:
It seems my nasty way is probly the best way, otherwise you'll have to try and sort out the xml etc.
A quick
AnsiPOs('<string>0</string>', YourText) > 0
would be fine
=)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now