How do I make an WSDL and a DISCO file?

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

LVL 40
Richard QuadlingSenior Software DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JuanCarnigliaCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Richard QuadlingSenior Software DeveloperAuthor 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!
0
Richard QuadlingSenior Software DeveloperAuthor 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.


0
Richard QuadlingSenior Software DeveloperAuthor 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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.