Hy!

I have a problem with SOAP and PHP and i think it is a Pmapper specific 
problem, Can you help me? Please

There is the code:
/
<?php

session_start();
require_once($_SESSION['PM_INCPHP'] . "/globals.php");
require_once($_SESSION['PM_INCPHP'] . "/common.php");

ini_set("soap.wsdl_cache_enabled", 0);

$layer = $map->getLayerByName('sde');
if ($layer->getNumResults() == 1) {
     $res = $layer->getResult(0);
     $layer->open();
     $shape = $layer->getFeature($res->shapeindex, $res->tileindex);
     $id = $shape->ID;
     $layer->close();
}

try{
$client = new SoapClient('http://193.x.xx.xx:xxxxxx/some?wsdl');
$dempont = $client->__soapCall("Dempont_altfoldmin_rtid", array($id));
} catch(SoapFault $e){
   var_dump($e);
}


$DempontJson = "[";
$DempontJson .= "{\"dempont\": $dempont,";
$DempontJson = substr($DempontJson, 0, -1) . "]";


header("Content-Type: text/plain; charset=$defCharset");

// return JS object literals "{}" for XMLHTTP request
echo "{\"DempontJson\": $DempontJson}";
?>/

And the error message:

/Fatal error: Uncaught SoapFault exception: [Server.userException] No 
such operation 'Dempont_fh_rtid' in 
C:\ms4w\apps\demetermap\demeter\plugins\dempont\x/
/_dempont.php:22 Stack trace: #0 
C:\ms4w\apps\demetermap\demeter\plugins\dempont\x//_dempont.php(22): 
SoapClient->__soapCall('Dempont_fh_rtid', Array) #1 {main} thrown in 
C:\ms4w\apps\demetermap\demeter\plugins\dempont\x//_dempont.php on line 22

Ez mitöl lehet?

Ill. itt van hosszabb formában is:

object(SoapFault)#41 (9) {
["message:protected"]=>
string(35) "No such operation 'Dempont_fh_rtid'"
["string:private"]=>
string(0) ""
["code:protected"]=>
int(0)
["file:protected"]=>
string(61) "C:\xxxxxx\x_dempont.php"
["line:protected"]=>
int(22)
["trace:private"]=>
array(1) {
[0]=>
array(6) {
["file"]=>
string(61) "C:\xxxxxx\x_dempont.php"
["line"]=>
int(22)
["function"]=>
string(10) "__soapCall"
["class"]=>
string(10) "SoapClient"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
string(15) "Dempont_fh_rtid"
[1]=>
array(1) {
[0]=>
NULL
}
}
}
}
["faultstring"]=>
string(35) "No such operation 'Dempont_fh_rtid'"
["faultcode"]=>
string(20) "Server.userException"
["detail"]=>
object(stdClass)#40 (1) {
["hostname"]=>
string(6) "xxxxx"
}
}
<br />
<b>Warning</b>: Cannot modify header information - headers already sent 
by (output started at C:\xxxxx\x_dempont.php:24) in 
<b>C:\xxxxxx\x_dempont.php</b> on line <b>34</b><br />
{"DempontJson": [{"dempont": 0]}/


I tried the WSDL and in a primitive example the SOAP call works, so i 
think iti s something with p.mapper..

(There are wierd characters, just because copy paste from remote computer)

Thanks,
Zsolt

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to