I find myself using PEAR's disco->getWSDL method to build my WSDL, then using php's build in soap extension to handle it all.

Here is a short example.

<?php
echo 'NOT NEEDED AT THIS TIME!!!!';
exit();
require_once('../../config.php');
require_once('SOAP/Server.php');
require_once('SOAP/Disco.php');
require_once('soap_handler.php');

/**

* Initialize the SOAP server
*/
$server = new SOAP_Server();


// initialize the pathfinder class
$webservice = new Soap_Handler($db);


// set the path finder class as default responder for the WSDL class
$server->addObjectMap($webservice,'http://schemas.xmlsoap.org/soap/envelope/');

$disco = new SOAP_DISCO_Server($server,'Beta');
header("Content-type: text/xml");
$wdsl =  $disco->getWSDL();
$wdsl = str_replace('localhostwdslmaker.php', 'soap.soapsite.com/soap/', $wdsl);
echo $wdsl;





Richard Thomas - CEO
Cyberlot Technologies Group Inc.
507.398.4124 - Voice


Davey Shafik wrote:
Martel,

Thank you so much for this, that was exactly the problem. :)

- Davey

On Oct 12, 2006, at 4:20 AM, Martel Valgoerad wrote:

Davey Shafik wrote:

Can anyone offer some assistance here? I'm starting to think that all WSDL's deviate from the schema, because other than the obvious differences (different/more methods) the Paypal and Google WSDLs are identical.

Have you actually tried to validate the Google wsdl with this schema? What's the result?

If the result is positive try to strip your wsdl to the only one erroneus operation line. Let's find out if it's the one under portType or the ones under binding.

Ok, forget that. I have copied and pasted the code to the Eclipse wsdl editor. It seems it doesn't like the soap:operation elements under binding operations. These two:

<soap:operation soapAction="http://dummy.php#testFunc2"/>
<soap:operation soapAction="http://dummy.php#testFunc3"/>

Move them to the front and place them as the first element under the bindings. Before inputs and outputs.

- Davye

--Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] | http://aie.pl/martel.asc =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "Generosity is giving more than you can, and pride is taking less than you
need." -- Kahlil Gibran


Reply via email to