Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How do I make an WSDL and a DISCO file?

Posted on 2008-11-18
Medium Priority
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:Richard Quadling
  • 3

Accepted Solution

JuanCarniglia earned 1500 total points
ID: 22986432
LVL 40

Author Comment

by:Richard Quadling
ID: 23028450
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

by:Richard Quadling
ID: 23029113

In the end I used http://www.jool.nl/new/index.php?file_id=1 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

by:Richard Quadling
ID: 31517909
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.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

580 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