NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Using serializeEnvelope


Joined: 03 Jul 2007
Posts: 5
Location: Costa Rica
Reply with quote
Hi
I'm trying to send a request to .Net Webservice.

After some research I finally used the function serializeEnvelope and the response was successful

But the browser showed this warning: Notice: Undefined property: operation in /home/Proyectos/CHP-00002/src/nusoap/lib/nusoap.php on line 6839

The line in the nusoap.php is the following:
$parser = new soap_parser($data,$this->xml_encoding,$this->operation,$this->decode_utf8);

Below is my code.

Code:
    
    $soapaction = "http://mywebserver/Execute";
    $wsdl = "http://mywebserver/Execute/execute.asmx?WSDL";
    $soap_client = new soapclient($wsdl);
    $mysoapmsg = $soap_client->serializeEnvelope('<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>
     <Execute xmlns="http://mywebserver/Execute/">
       <nMerchant>0</nMerchant>
      </Execute>
     </soap:Body>
    </soap:Envelope>','',array(),'document', 'literal');
     $response = $soap_client->send($mysoapmsg, $soapaction);


Any suggestions?
Thanks
View user's profileFind all posts by ecarSend private message


Joined: 03 Jul 2007
Posts: 5
Location: Costa Rica
Reply with quote
I used @ to avoid the warnings messages

Code:
$response = @$soap_client->send($soapmsg, $soapaction);
View user's profileFind all posts by ecarSend private message
How to get A responce in webservices


Joined: 29 Mar 2010
Posts: 2
Reply with quote
hi, ecar,
I just use nusoap.
I want to ask,
1. if $ response is the response sent by the webservices?
2. Ecar, if I assume that the Web services you made using Nusoap, whether in the script that you write a function to capture the variable $response from the client? If yes, the script how?

Thanks a lot...

Very Happy
View user's profileFind all posts by restroikaSend private message
Using serializeEnvelope
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic