Comet system forum

Discussion forum about Comet system products

Temperature, Humdity,

Pressure Transmitters

and Data Loggers

You are not logged in.

#1 13-10-2017 13:48:36

Inired
Member
Registered: 13-10-2017
Posts: 3

SOAP send error (delivery error) in P8510 Sensor

Hi everyone:

I have a problem trying optain response of the sensor.
The error is "SOAP send error (delivery error)"

I've test it throgh SOAPUI and web service is working perfect.
WSDL is in : http://[IP]/comet/comet.php?wsdl

In the P8510 config, under SOAP config, i've set this:
SOAP Server Address: [IP]/comet/comet.php
Port: 80

Here my code:
<?php
require_once('lib/nusoap.php');

$server = new nusoap_server;

$server->configureWSDL('server', 'urn:server');

$server->wsdl->schemaTargetNamespace = 'urn:server';
$server->register('InsertP8510Sample',
            array('name' => 'xsd:string','sn'=>'xsd:string','tmr'=>'xsd:string','kind'=>'xsd:string','c1'=>'xsd:string','c2'=>'xsd:string','c3'=>'xsd:string','c4'=>'xsd:string','c5'=>'xsd:string'),  //parameter
            array('return' => 'xsd:string'),  //output
            'urn:server',   //namespace
            'urn:server#InsertP8510Sample',  //soapaction
            'rpc', // style
            'encoded', // use
            'Just say hello');  //description

function InsertP8510Sample($name, $sn, $tmr, $kind, $c1, $c2, $c3, $c4, $c5) {
   
    $data =$name."-".$sn."-".$tmr."-".$kind."-".$c1."-".$c2."-".$c3."-".$c4."-".$c5."\n";
        $file_write = FOpen("soap.log", "a");
        FWrite($file_write, $data);
        FClose($file_write);
        return $data;
}

@$server->service(file_get_contents("php://input"));

 
?>



Thanks smile

Offline

 

#2 16-10-2017 07:29:11

HonzaD
Administrator
Registered: 11-08-2008
Posts: 294

Re: SOAP send error (delivery error) in P8510 Sensor

Hi Inired,

I am sorry for a the late answer.

After quick review your code looks OK. It will be good to know what error code is returned for your webserver. Return code from your server your can get from /diag file in device (e.g. http://<IP>/diag and section SOAP/Last).

In case of usage latest versions of Apache server and http return code 400 (Bad Request), we know what is reason of the issue. In this new versions of Apache server was removed from some reason support according RFC2616 chapter 19.3 (https://tools.ietf.org/html/rfc2616#section-19.3).

This issue should be solved by following Apache server configuration:

Code:

server config option HttpProtocolOptions set to Unsafe

Also during few weeks we want to release new firmware version for P8xxx devices, which will solve this incompatibility at firmware side. Firmware updates are available via support@cometsystem.com.

Jan

Offline

 

#3 16-10-2017 13:32:28

Inired
Member
Registered: 13-10-2017
Posts: 3

Re: SOAP send error (delivery error) in P8510 Sensor

Thanks for the quick response HonzaD.
We're using Apache 2.4. This is what we get on 'diag flie:
SOAP

En: 1
St: 8
Last: 0
Cnt (req/ok): 8/0
ErrCnt (arp/sock/req/dns): 0/0/8/0
File soap.conf: ok
File soap: ok

As you can see, we're not getting the 400 error.
Anyway, everytime we add this line to the httpd.conf, apache does not start anymore. Is there any special section in the file to add this line?
Thanks in advance.

Offline

 

#4 17-10-2017 07:25:31

HonzaD
Administrator
Registered: 11-08-2008
Posts: 294

Re: SOAP send error (delivery error) in P8510 Sensor

Hi Inired,

Sorry for a confusing, you should set following option in Apache configuration file:

Code:

HttpProtocolOptions Unsafe

According this page https://httpd.apache.org/docs/2.4/mod/core.html this option should be supported by Apache 2.4.

As you are using Apache 2.4, I think that you have this type issue in your case. Please let me know about your progress.

Jan

Offline

 

#5 18-10-2017 11:16:09

Inired
Member
Registered: 13-10-2017
Posts: 3

Re: SOAP send error (delivery error) in P8510 Sensor

Not working, we are geting the same error: SOAP last:0 and the delivery error.
We tried with a .NET webservice and we get again the same error.
This is our config:
Type: P8510 (kind:1102H, type:7, ch:1, bin:0, unlock:0)
Dbg: 0
Sn: 17941423
Fw: 4-5-8-0.3489 (Golden cat)
Clk: 48MHz
Id this the last firmware? How can i get/install the last firmware?
Thanks in advance.

Offline

 

#6 18-10-2017 11:42:10

HonzaD
Administrator
Registered: 11-08-2008
Posts: 294

Re: SOAP send error (delivery error) in P8510 Sensor

Hi Inired,

Yes, your device have latest production firmware. Currently we are working on new firmware version 4-5-8-1 to improve compatibility with latest Apache server. For this moment we not know about any compatibility issue with IIS and .NET.

Here you can download part of new SDK from the upcoming firmware version. Maybe it can be useful for you.

Jan

Offline

 

#7 05-01-2018 08:25:42

red902
Member
Registered: 05-01-2018
Posts: 1

Re: SOAP send error (delivery error) in P8510 Sensor

HI there. Same problem here. Is the new firmware aviable? I can't found the firmware download page, i find this one:
http://www.cometsystem.com/support/firmware-update
But the last firmware aviable is 4-5-5-X wich is older than the current one i have (4-5-8-0).
Thanks in advance

Offline

 

#8 05-01-2018 09:40:10

support
Member
Registered: 23-08-2017
Posts: 19

Re: SOAP send error (delivery error) in P8510 Sensor

Hi ,

here is a link to the latest firmware and instruction manual in the pdf file.

firmware: http://forum.cometsystem.cz/doc/firmwar … -5-8-1.zip
manual: http://www.cometsystem.cz/userfiles/fil … rmware.pdf

Comet support.

Offline

 

Board footer

Powered by PunBB | CZ / SK
© Copyright 2002–2005 Rickard Andersson