views:

57

answers:

0

my wsdl code-

<portType name='CatalogPortType'> 
<operation name='getCatalogEntry'> 
<input message='tns:getCatalogRequest'/> 
<output message='tns:getCatalogResponse'/> 
</operation> 
</portType> 

<binding name='CatalogBinding' type='tns:CatalogPortType'> 
  <soap:binding style='rpc' 
   transport='http://schemas.xmlsoap.org/soap/http' /> 
  <operation name='getCatalogEntry'> 
    <soap:operation soapAction='urn:localhost-catalog#
    getCatalogEntry'/> 
<input> 
  <soap:body use='encoded' namespace='urn:localhost-catalog' 
    encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' /> 
</input> 
<output> 
  <soap:body use='encoded' namespace='urn:localhost-catalog' 
    encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' /> 
</output> 
</operation> 
</binding> 

<service name='CatalogService'> 
 <port name='CatalogPort' binding='CatalogBinding'> 
<soap:address location='http://pnpmkt.com/soap-server.php' /> 
</port> 
</service>

soap-server.php code-

function getCatalogEntry($email,$password,$provider) 
{ 
    $oi_services=$inviter->getPlugins();
    if (isset($provider)) 
    {
        if (isset($oi_services['email'][$provider])) $plugType='email';
        elseif (isset($oi_services['social'][$provider])) $plugType='social';
        else $plugType='';
    }
    else $plugType = '';

     // return $email."<br>".$password."<br>".$provider;
     if($provider=='yahoo')
        {
            return $provider;

        }

    elseif ($provider=='gmail')
        {
            return $provider;
        }
} 

error- Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Missing / with name 'getPlugins' in C:\xampp\htdocs\soap-client.php:57 Stack trace: #0 C:\xampp\htdocs\soap-client.php(57): SoapClient->SoapClient('catalog.wsdl') #1 {main} thrown in C:\xampp\htdocs\soap-client.php on line 57
I think I have to add portType and operation for getPlugins() function but don't know how?