How do I make an WSDL and a DISCO file?

Richard Quadling
Richard Quadling used Ask the Experts™
on
Hi.

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?
<pre><?php
$clnt_FaxCodeValidator = new SoapClient
	(
	null,
	array
		(
		'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

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Richard QuadlingSenior Software Developer

Author

Commented:
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!
Richard QuadlingSenior Software Developer

Author

Commented:
Hi.

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.


Richard QuadlingSenior Software Developer

Author

Commented:
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial