[SOAP] SOAP Call Help

[email protected] (php050904)
Newsgroups php.soap
Message-ID <[email protected]>
I am attempting to use asp.net to call a php function .... i have created the
following SOAP envelope

<?xml version='1.0' encoding='utf-8'?>
<SOAP:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' 
xmlns:xsd='http://www.w3.org/2001/XMLSchema' 
xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'> 
<SOAP:Body><m:my_function xmlns:m='urn:soapRegistrationServer'>
<param1>abcd</param1>
<param2>1234</param2>
</m:my_function>
</SOAP:Body>
</SOAP:Envelope>

I have included these in my request:
webRequest.Headers.Add("SOAPAction", "my_function");
webRequest.ContentType = "text/xml; charset=utf-8";
webRequest.Accept = "text/xml";
webRequest.Method = "POST";

my php file:
class soapRegistrationServer {

    function soapRegistrationServer() {
       $this->responseGenerator= new ResponseGenerator();
       $this->soapServer=new SOAP_Server();
       $this->soapServer->addObjectMap($this,
'http://mycompany.com#soapRegistrationServer');
       $this->__dispatch_map['my_function'] = array('in' => array('param1'
=> 'string', 'param2' => 'string'), 'out' => array('response' => 'string'));

}

        function my_function($param1, $param2) 
        {
            
            return $this->responseGenerator->generateResponse($param1,
$param2);
        }
}
$server = new soapRegistrationServer();
======================================
I am getting this returned:

SOAP-ENV:Server method '{}' not defined in service
/usr/share/pear/SOAP/Fault.php 49 pear_error pear_error :: method '{}' not
defined in service Server /usr/share/pear/SOAP/Base.php 199 soap_fault
soap_fault -> method '{}' not defined in service Server
/usr/share/pear/SOAP/Server.php 377 _raisesoapfault soap_server -> method
'{}' not defined in service Server /usr/share/pear/SOAP/Server.php 168
parserequest soap_server -> /data/www/mycompany/soapRegistrationServer.php
34 service soap_server -> /data/www/mycompany/soapRegistrationServer.php 110
soapregistrationserver soapregistrationserver -> 


I am new to php, what am i doing wrong?

Thanks in advance.
-- 
View this message in context: http://www.nabble.com/SOAP-Call-Help-tp14339740p14339740.html
Sent from the Php - Soap mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.