Resturn value of WSDL

Posted on 2006-04-23
Last Modified: 2010-04-05
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)

Question by:bilgehanyildirim
    LVL 10

    Expert Comment

    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.


    Author Comment

    any better idea :)
    LVL 10

    Accepted Solution

    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

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
    In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now