XML error parsing SOAP payload on line 1: Unsupported encoding ; -- Caught exception while handling request: unrecognized operation:

"[email protected]" <[email protected]>
Newsgroups gmane.comp.php.nusoap.general
Message-ID <32871510.3655521406828045164.JavaMail.defaultUser@defaultHost>
Hi ,i apologize but i forgot to attach the script and the  attach file.zip.I am using nusoap; in particular a sample program mimeclient. php which is useful for sending files as attach to a web service. 
I adapted this program to my case, minor changes, and the program gives me the following error:

  1)     XML error parsing SOAP payload on line 1: Unsupported encoding
   2)   <faultcode>env:Client</faultcode><faultstring>Caught exception while handling request: unrecognized operation: {http://loadfiletrs.ssan.eds.miur.it//controlUploadFile}controlUploadFile</faultstring>
  3) 2014-07-31 16:41:01.583514 nusoap_client_mime: Error: Charset from HTTP Content-Type 'ISO-8859-1' does not match encoding from XML declaration 'ISO8859_1'The web service service that sent the attach file is written in java
"I saw a response from Scott Nichol , for a similar problem on another date: To generate the error, the XML parser would need to be translating entities (e.g. '&amp;lt;' --> '<'), then parsing, which is not valid. Do both servers run the same version of PHP?Scott Nichol ".
But how do I find information on the server? These are not included in the wsdl? 
How do I fix the problem if you do not know anything about the construction of the web service but I only know its wsdl?
Suggestions? Thank you in advance, angelo leone

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk

_______________________________________________
Nusoap-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nusoap-general
TAMM00600C173510001201300FRSYSC20121001201310261020.zip (application/zip, 5.6 KB) - not displayed
mimeclient.php (application/octet-stream, 3.4 KB)
<?php
/*
 *	$Id: mimeclient.php,v 1.6 2007/04/16 22:08:17 snichol Exp $
 *
 *	MIME client sample.
 *
 *	Service: SOAP endpoint
 *	Payload: rpc/encoded
 *	Transport: http
 *	Authentication: none
 */
require_once('../lib/nusoap.php');
require_once('../lib/nusoapmime.php');
/*
$proxyhost = isset($_POST['proxyhost']) ? $_POST['proxyhost'] : '';
$proxyport = isset($_POST['proxyport']) ? $_POST['proxyport'] : '';
$proxyusername = isset($_POST['proxyusername']) ? $_POST['proxyusername'] : '';
$proxypassword = isset($_POST['proxypassword']) ? $_POST['proxypassword'] : '';
$useCURL = isset($_POST['usecurl']) ? $_POST['usecurl'] : '0';
  */
  
//$client = new nusoap_client_mime('http://www.scottnichol.com/samples/mimetest.php', false,
						//	$proxyhost, $proxyport, $proxyusername, $proxypassword);
						
//$client = new nusoap_client_mime('http://www.scottnichol.com/samples/mimetest.php', false);	  


	///////////creo l'oggetto client //////////////////////////////////					
$client = new nusoap_client_mime('http://wssidi1coll.pubblica.istruzione.it/SSANWSTRS/LoadFileWSATrsSoapHttpPort', false);		

	/////////////////////// ingresso autenticato  di tipo basic	////////////////////////
 		
   $username='roberto.bonica';
   $password='Password522';
  //$client->setCredentials($username, $password, 'digest');
  $client->setCredentials($username, $password, 'basic'); 

$err = $client->getError();
if ($err) {
	echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
}

//777777777777777 creo  l'attacch /////////////////

$client->setUseCurl($useCURL);

$client->setHTTPEncoding('deflate, gzip');       // ??? bisogna metterlo ? 

$cid = $client->addAttachment('', 'TAMM00600C173510001201300FRSYSC20121001201310261020.zip');

//$result = $client->call('hello', array('name' => 'Scott')); 


 $operation="controlUploadFile"; 
$result = $client->call($operation="controlUploadFile", array('filename' => 'TAMM00600C173510001201300FRSYSC20121001201310261020.zip','nomeflusso' =>'FR'),$soapAction="http://loadfiletrs.ssan.eds.miur.it//controlUploadFile"); 


     
          if ($client->fault)
           {
          	echo '<h2>Fault</h2><pre>'; print_r($result); echo '</pre>';
          }
           else 
          {
          	        $err = $client->getError();
                  	if ($err)
                     {
                  		echo '<h2>Error</h2><pre>' . $err . '</pre>';
                  	} 
                    else 
                    {
                  		echo '<h2>Result</h2><pre>'; print_r($result); echo '</pre>';
                  		echo '<h2>Attachments</h2><pre>';
                  		$attachments = $client->getAttachments();
                  		foreach ($attachments as $a)
                       {
                  			echo 'Filename: ' . $a['filename'] . "\r\n";
                  			echo 'Content-Typee: ' . $a['contenttype'] . "\r\n";
                  			echo 'cid: ' . htmlspecialchars($a['cid'], ENT_QUOTES) . "\r\n";
                  			echo htmlspecialchars($a['data'], ENT_QUOTES);
                  			echo "\r\n";
                  		}
                  		echo '</pre>';
                  	}
          }


echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';
echo '<h2>ResponseData</h2><pre>' . htmlspecialchars($client->responseData, ENT_QUOTES) . '</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>';
?>
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.