Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is my part of wsdl file
XML
<s:element name="CalculStudents">
    <s:complexType>
        <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="doc">
                <s:complexType mixed="true">
                    <s:sequence>
                        <s:any/>
                    </s:sequence>
                </s:complexType>
            </s:element>
        </s:sequence>
    </s:complexType>
</s:element>



using php i connected the wsdl

PHP
$client = new SoapClient("some.wsdl");
$params = array("any"=>'');
$result = $client->CalculStudents(array('doc'=>$params));



Now i am getting this error

Exception Error! Server was unable to process
request.Object reference not set to an instance of an object.

Tell me a solution for this

Thanks in advance
Posted
Comments
Richard MacCutchan 29-Dec-14 4:37am    
The solutiuon is to look at the line of code that throws the error, and find out why the object reference is not set.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900