How do I make an WSDL and a DISCO file?

Posted on 2008-11-18
Last Modified: 2013-11-19

I've been asked to create a web service.

The service currently has 2 "functions".

These functions take a single parameter (a short text string).

The response is 1 of 3 possibilities.

1 - A URL to a file (starts with \\)
2 - An error message (starts with ***)
3 - An archived message (starts with Archive)

The client code snippet below is working and produces output of ...

Calling with a valid fax reference code of "48GIPOHV" : \\BV-CLUSTER-FILE\FaxesReceived\2008\11\18\2008-11-18__15-22__Page-0618__48GIPOHV.tif

Calling with an invalid fax reference code of "Garbage" : *** FAILED CHECKSUM *** 26 <> 14

Calling with an archived fax reference code of "9QAA7Z" : Archived on DVD #6 \2007\01\01\2007-01-01__17-28__Page-0001__9QAA7Z.tif

I've emailed the people who will be using this service, but they are using .NET and say they need a WSDL and DISCO file.

Can anyone help me out with this?

$clnt_FaxCodeValidator = new SoapClient





		'location' => 'http://BANDIT/validateFaxReferences.php',

		'uri' => "urn://BANDIT",



echo 'Calling with a valid fax reference code of "48GIPOHV" : ', $clnt_FaxCodeValidator->validateJobsheetFaxReference('48GIPOHV'), PHP_EOL, PHP_EOL;

echo 'Calling with an invalid fax reference code of "Garbage" : ', $clnt_FaxCodeValidator->validateJobsheetFaxReference('Garbage'), PHP_EOL, PHP_EOL;

echo 'Calling with an archived fax reference code of "9QAA7Z" : ', $clnt_FaxCodeValidator->validateJobsheetFaxReference('9QAA7Z'), PHP_EOL, PHP_EOL;

Open in new window

Question by:RQuadling
    LVL 7

    Accepted Solution

    LVL 40

    Author Comment

    The package requires me to restructure my code. I tried that and didn't get it working.

    Currently I have a 2 functions. I couldn't work out how to make it a class and still have it exposed properly.

    If you've done this sort of thing before, then a simple example would be great!
    LVL 40

    Author Comment


    In the end I used which seems to be doing everything I really wanted.

    My code is a class (rather than a bunch of functions).

    It automatically generates the WSDL file.

    Now just to find out what a disco file is!

    Thanks for your suggestion. The idea of a generator was excellent, even though I didn't use your suggestion directly.

    LVL 40

    Author Closing Comment

    The particular generator required me to make changes to my code without any example of how to use the new code.

    But the idea of a WSDL generator was excellent. It was from this that I found my solution.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Preface In the first article: A Better Website Login System ( I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
    This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

    759 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

    10 Experts available now in Live!

    Get 1:1 Help Now