Portugal OBD Webservice - System time
I'm currently trying to implement a webservice for the communication of Oudbound deliveres to the Portuguese Tax Authorities, but an error related to the the system's time settings occurs.
The other system is expecting the time to be in GMT, but the system time settings are in UTC+1 and that originates the error. The client is relutant to change the time settings due to the fact that it has several companies in the system from various countries and doesn't have a clear picture of the possible impact deriving from the change.
Is there any way to modify the timestamp reported by the webservice on runtime?
Hello,
From my understanding WAS runs on the JAVA stack correct?
This webservice is implemented in OSS note 1901252
Similar Messages
-
BPM: How to capture Webservice system Time
Dear friends,
I have one Sybchrounous Interface as follows :
Local PI folder -
>PI -
> Webservice system
( Sync Interface )
Overall flow:
1. PI Picks up the Control file consisting of date& time, count and start fields from PI folder.
2. PI mapping converts the file to soap request message and sends it to Web Service
3. PI receives the response soap message from web service converts into an XML file and places in the PI folder.
4. The loop continues in PI BPM until all the records of particular time period are retrieved.
Logic in Detail:
5. The initial request file consists of a user defined time stamp (since), count and start values to retrieve the initial load.
6. PI BPM sends this request in a synchronous mode to Web service and gets the response back.
7. Apart from the device details, the response message from WS consists of u2018current_timeu2019 field which is the current system time of webservice when the query is executed on the web service System.
8. BPM has to capture this field during first iteration and updates the source request message field u2018sinceu2019 with the web service system time.
9. From next cycle, PI picks up the file which consists of WB service system time in the u2018sinceu2019 field.
10 BPM continues in loop until all the records are fetched from web service and writes the files with time stamp concatenated to the PI folder.
Bottlenecks:
Tried to implement with BPM ..But facing problems to implement point 4 ,8 and 10 .
Kindly guide me how we can design this interface .
Renu.Dear friends,
I have one Sybchrounous Interface as follows :
Local PI folder -
>PI -
> Webservice system
( Sync Interface )
Overall flow:
1. PI Picks up the Control file consisting of date& time, count and start fields from PI folder.
2. PI mapping converts the file to soap request message and sends it to Web Service
3. PI receives the response soap message from web service converts into an XML file and places in the PI folder.
4. The loop continues in PI BPM until all the records of particular time period are retrieved.
Logic in Detail:
5. The initial request file consists of a user defined time stamp (since), count and start values to retrieve the initial load.
6. PI BPM sends this request in a synchronous mode to Web service and gets the response back.
7. Apart from the device details, the response message from WS consists of u2018current_timeu2019 field which is the current system time of webservice when the query is executed on the web service System.
8. BPM has to capture this field during first iteration and updates the source request message field u2018sinceu2019 with the web service system time.
9. From next cycle, PI picks up the file which consists of WB service system time in the u2018sinceu2019 field.
10 BPM continues in loop until all the records are fetched from web service and writes the files with time stamp concatenated to the PI folder.
Bottlenecks:
Tried to implement with BPM ..But facing problems to implement point 4 ,8 and 10 .
Kindly guide me how we can design this interface .
Renu. -
Hi,
I have a lot's of problem with the defined ws systems.
The origin is that, as I understood, I have to define a WebService System each time I update the webservice definition else VC don't see the modifications.
Actually, I have today multiple systems pointing to the same webservice. (I tried to delete them in portal System Administration/System Configuration/Content/Visual Composer but I wonder if I didn't break something !?)
Could you help me to delete thoses systems and maybe explain me how to force VC to read the wsdl definition if updated ?
thanks a lot,
Thomas.Hi Thomas,
If you are using EP6 or later, there is a way of clearing the PCD cache (which includes cached metadata from RFC, JDBC or web service connections).
If you navigate to System Administration > Support > Portal Content Directory > PCD Administration, you will see a screen which allows you to either remove specific objects from the cache, or to flush the entire PCD cache.
If you then close all Internet Explorer windows and log into VC again, you should see the updated WSDL.
This is also mentioned in SAP Note 868887.
Regards,
Sascha -
How to print system-time in XML?
Hi,
Please help me how to print system-time in XML. Like we use sy-uzeit in ABAP.
Can we use anything in XML too..
Thanks & Regards,
Saihi movilogo
Please try this.
Create hidden item P1_DATE
Create On load process in page 1 and put this code
begin
:P1_DATE:=TO_CHAR(SYSDATE,'DD-MON-YYYY HH:MM:SS');
end;
Open your region in Page 1 put this code in Footer area
*&P1_DATE.*
Refresh your page.
you will get the output like this.
16-SEP-2009 11:09:17
thanks
Mark Wyatt -
How can i get the System Time from the other host
I want to get the System Time from the other host in the LAN,How can I get the Time using Java.
Such as I am in WIN 2000 and I have a Unix host in LAN, I want to get unix host System time, How can I do it.Open a socket to port 13 and read a string with the time.
-or-
Open a socket to port 27 and read 4 bytes that are a network order timestamp
Assuming that your UNIX machine has those services running, most do -
How to get the system time in a Swing application ?
I know how to do it in JavaScript, but not java. Please help me, and also how to get the system time in an Applet. Thanks !!!
Check this link, I hope it helps
http://202.71.136.142:8080/globalleafs/Swing/View.jsp?slno=22&tbl=0 -
I am having some trouble graphing two plots at once. One plot is to show the current temperature inside a chamber as a function of time. I am trying to pick the current time and temperature each second and plot it with each point being connected by a line. I am able to show a moving, blinking dot each second but I can't figure out how to develop an actual line with these dots. To make matters worse, the blinking dot is back in the year 1903. I understand that it uses seconds elapsed since 1903, and am trying to find out how to graph the current temperature with the system time.
The second plot is just 5 moveable cursors that are to be connected by a line. I am able to move the cursors and retrieve the position information, but I can't make a line between them.
I have attached my main .vi, though you may have to pick the graphing part off to have it work for you.
Attachments:
Main Module Chamber Testing I_O every 30 sec.vi 288 KBYou're not creating the XY graph data correctly. I've attached an example with a couple of simple XY Graphs. One is using a couple of shift registers to hold the spearate x and y arrays. I think this is what you were trying to do. The other one uses a VI from the shipping examples called XY Chart. It makes an XY Grpah act like a chart. I've also shown the correct way to display current time.Message Edited by Dennis Knutson on 05-12-2005 03:51 PM
Attachments:
XY Graph.vi 41 KB -
How to create a type of 'alarm event' based on acquired sensor data and system time?
Hello all,
I'm fairly new to LabVIEW and have successfully created a VI that reads voltage data from sensors. Each sensor outputs 2 voltage values and I treat these values as 2 different DBL values. I'd like to be able to record each voltage value as a base and then compare the subsequent data readings with that base. Once the base is determined, I'd like a sort of 'variable' set as "TIME" to be recorded at the moment the base voltage is recorded.
The alarm should occur (or anything Boolean set to TRUE I guess) once the continuously read voltage remains within certain limits for about 2 hours. I know I can compare the system time w/ the "TIME" that the voltage base value was recorded. If the voltage readings escape those limits, I'd like the voltage base value reset and the TIME set to the corresponding system time again.
I apologize in advance if this I haven't' described my problem well, but if anyone could help me figure out the best way to create this code, I would appreciate it much!
Thanks!
Solved!
Go to Solution.ill try to illustrate a couple scenarios:
keep in mind that i dont necessarily want the voltages in these specific ranges, but just a range of +/- 20 mV ... in an above post i refer to a "base" voltage reading, in this case that would be 200 mV for V1 and 400 mV for V2, just because the voltage has shifted to those values for an extended amount of time each (> 2 seconds)
Scenario 1
1:00 pm
Sensor readings
Voltage 1: 200 mV
Voltage 2: 400 mV
between 1:00 and 3:00 pm:
Voltage 1 does not deviate from 180-220 mV range
Voltage 2 does not deviate from 380-420 mV range
at 3:00pm I want an alert/alarm/Boolean to change to 'true'
Scenario 2
1:00 pm
Sensor readings
Voltage 1: 200 mV
Voltage 2: 400 mV
at 1:45 pm:
Voltage 1: 2 mV
Voltage 2: 600 mV
Since the voltage has shifted out of the range, i want the new base voltage to equal whatever it changed to out of the range, and also the time spent within the new range (2 +/- 20 mV and 600 +/- 20 mV, respectively for V1 and V2) would be reset, so a new 2-hour counter would begin -
How to get system time and date with PHP
Dear Mr.Craig,
Thanx a lot. We are running SRM 5.0 (RAMP - Implementation).
My initial requirement is to write a server-side script to display server date and time. Could you give more inside on how to achieve it?
Regards,
Deva.Perhaps that will help.
[code]
<html>
<h1>Access System time and date</h1>
<?
// saprfc-class-library
require_once("saprfc.php");
$sap = new saprfc(array(
"logindata"=>array(
"ASHOST"=>"localhost" // application server
,"SYSNR"=>"00" // system number
,"CLIENT"=>"000" // client
,"USER"=>"bcuser" // user
,"PASSWD"=>"minisap" // password
,"show_errors"=>false // let class printout errors
,"debug"=>false)) ; // detailed debugging information
$result=$sap->callFunction("MSS_GET_SY_DATE_TIME",
array( array("EXPORT","SAPTIME",array()),
array("EXPORT","SAPDATE",array())));
if ($sap->getStatus() == SAPRFC_OK) {
echo "Time: ".$result["SAPTIME"];
echo "<br>Date: ".$result["SAPDATE"];
echo "<br>or<br>";
echo "Server is showing: "
.substr($result["SAPDATE"], 0, 4)
."-".substr($result["SAPDATE"], 4, 2)
."-".substr($result["SAPDATE"], 6, 2)
." and "
.substr($result["SAPTIME"], 0, 2)
.":".substr($result["SAPTIME"], 2, 2)
.":".substr($result["SAPTIME"], 4, 2);
} else {
$sap->printStatus();
$sap->logoff();
?>
[/code] -
How to find system time.
Hi,
Please let me know the SQL query to find the system time. I am using a Windows server with Oracle 9.2.0.1.0 .
Regards,
SanthoshSQL> select to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') from dual;
TO_CHAR(SYSDATE,'DD
25/07/2005 13:33:18
SQL>
Nicolas. -
How to display system time zone like UTC+8
Hi All,
I got a requirement where I need to display time zone in the output. If I take sy-zonlo it is taking user's time zone and giving output like CET or CST but I want the system time zone to be displayed like UTC+8.
Regards,
Suresh.Hi,
FM GET_SYSTEM_TIMEZONE gives time zone as PST or CET like that but I want output as UTC+8 or UTC-6.
Regards,
Suresh. -
How to get System time during report generation?
Hi,
I am developing a template in which I am required to show data of current year only. Is there any method by which I can get system time(from which I will extract year) ?Thanks,
I already have found it on page 260 of oracle bi publisher guide.
sysdate() <?xdofx:sysdate()?> SYSDATE returns the current date and time.
The datatype of the returned value is DATE.
The function requires no arguments. -
Hello,
I just want to get hour and minute part of current system time. How can i do it?
thankshi
following code snippet may help you...
import java.util.*;
class DateTime
public static void main(String[] args)
GregorianCalendar gc = new GregorianCalendar();
System.out.println(gc.get(gc.MINUTE));
System.out.println(gc.get(gc.HOUR));
}The-val -
How to change system time from Java
Could someone tell me if there is possibility to change the system time, from within a Java program. And how to do it.
In general, no.
You could do it using JNI if you're running your JVM
with sufficient system privileges.
It seems a highly questionable thing to want to do.
Why do you have a requirement for this?
Sylvia.Now there's an idea (thread now has a 'watch'), I think I'll drop the the idea of being a hacker and learn how to write viruses instead - happy days ahead ... -
How to change system time w/o affecting iCal
When I travel to another time zone with my laptop I would like to be able to change the system time that appears in the menu bar to the local correct time. However, I do NOT want this to cause any changes in my calendar times. I use Calendar only for my home appointments so do not want those to change. Is this possible? Thanks!
Hey bobio,
Thanks for the question. If I understand correctly, you want to change your time on the computer but not the time on the Calendar. I would recommend that you read this article, it may be able to help the issue.
You can change the computer time and follow this to view Calendar events in your normal time.
Calendar: View all your events in a different time zone
By default, Calendar events are displayed in your computer’s current time zone (set in Date & Time preferences).
Thanks for using Apple Support Communities.
Have a good one,
Mario
Maybe you are looking for
-
I have the bumper case that screws in so it doesn't fall apart, but i want to take it off. Will the apple store unscrew the case for me? or would i have to go to At&T to have them screw it off?
-
Returning Error Status back from Form to external program
Question, I am trying to run a form essentially from the command line. I need to programatically catch any error codes that might have occured in the form by an external program. I can find nothing about returning errors back from the form or how to
-
Yesterday I was able to take photos but around 9pm last night my rear camera stop working. I have reseted my phone and have also restored it and the camera still is not working. Also I have deleted all apps that can have access to the camera and i ha
-
Tim Please replay to this ....PO Report Issues..
Tim, XML P is not supporting much functionality. PO Rerport with terms and conditions is minimum requirement for any client but it is not working at all, Please any one send a sample PO report with terms and conditions also if it is muti page PO then
-
Hi All , I am getting the error 'You must supply an invoice number when your batch source indicates manual invoice numbering; otherwise you must leave invoice number blank' when trying to import invoices . The batch source has been setup to Copy Docu