Creating WSDL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to write a simple wsdl file for the PHP SOAP
client/server code at http://www.edoceo.com/liberum/?doc=using-pear-soap

I think I'm pretty close but still can't see where I'm going
wrong so I thought I'd post a message.

If you'd like to help debug my wsdl please read on.

The code is a simple 'echo text' php soap server.

I'm seeing this error message:

array(5) {
        [0]=>
        string(83) "method
'{http://rudistarcevic.net/site/soapx/echo}test_soap' not defined in service"
        [1]=>
        string(15) "SOAP-ENV:Server"
        [2]=>
        NULL
        [3]=>
        NULL
        [4]=>

Here is the wsdl code I've written:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:y="http://www.rudistarcevic.net/site/soapx/echo";
targetNamespace="http://www.rudistarcevic.net/site/soapx/echo";>
	<message name="echo_text">
		<part name="p_one" type="xs:string"/>
		<part name="p_two" type="xs:string"/>
	</message>
	<message name="echo_reply">
		<part name="p_echo" type="xs:string"/>
	</message>
	<portType name="SOAP_testPortType">
		<operation name="test_soap">
			<input message="y:echo_text"/>
			<output message="y:echo_reply"/>
		</operation>
	</portType>
	<binding name="SOAP_testBindng" type="y:SOAP_testPortType">
		<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
		<operation name="test_soap">
			<soap:operation soapAction="http://www.rudistarcevic.net/site/soapx/echo"/>
			<input>
				<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://rudistarcevic.net/site/soapx/echo"/>
			</input>
			<output>
				<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://rudistarcevic.net/site/soapx/echo"/>
			</output>
		</operation>
	</binding>
	<service name="SOAP_test">
		<port name="SOAP_testPort" binding="y:SOAP_testBindng">
			<soap:address
location="http://www.rudistarcevic.net/site/soapx/echo/server.php"/>
		</port>
	</service>
</definitions>


Many thanks
Regards
Rudi.

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux