Comet system forum

Discussion forum about Comet system products

Temperature, Humdity,

Pressure Transmitters

and Data Loggers

You are not logged in.

#1 26-09-2008 17:12:41

jjkemp
Member
Registered: 26-09-2008
Posts: 4

P85xx soap -message

Hi,

we're building a soap service to display P85xx -loggers temperatures. While troubleshooting the tcp -packets (none seen at your service, P8511 at use) I discovered that line:
SOAPAction: "http://tempuri.org/InsertSample"
is somewhat hardcoded - at least I don't know a way how to modify it?

Currently our service expects our own domain at soap -message and I already modified the soap pages 'InsertSample xmlns=' line according to our service but that hardcoded? part seems to be a problem. Do you have any configuration examples / hints / workarounds  for our problem?

Offline

 

#2 02-10-2008 07:40:01

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

Re: P85xx soap -message

Hi,

The SOAPAction HTTP Header Field – (value: SOAPAction: "http://tempuri.org/InsertSample") isn’t configurable in these days.
In agreement with W3C SOAP specification must SOAP client use this header. In SOAP specification isn't exactly URL field explained. URL can be used by servers such as firewalls to appropriately filter SOAP request. 

Example of headers - W3C specification:
SOAPAction: "http://electrocommerce.org/abc#MyMessage"
SOAPAction: "myapp.sdl"
SOAPAction: ""
SOAPAction:

I check P85xx SOAP service. P85xx handle with Apache 2.2.9 + PHP 4.4.9 and ours IIS well.

Small PHP example:
<?
function InsertSample($PassKey, $SampleDate, $T1) {
    $data = " s/n: ".$PassKey.", time: ".$SampleDate.", temp: ". $T1. "\n";
    $fp = FOpen ("soap.log", "a");
    FWrite ($fp, $data);
    FClose ($fp);
}
$server = new SoapServer(null, array('uri' => "http://test-uri/"));
$server->addFunction('InsertSample');
$server->handle();
?>

But if you needed, I can build firmware without SOAPAction URL (SOAPAction "").


John

Last edited by HonzaD (02-10-2008 07:44:10)

Offline

 

Board footer

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