Problem :
Date becomes GMT in the BizTalk orchestration which cause wrong results
(input <> output)
Scenario :
Web Application <-> Exposed Web Services By BizTalk Orchestration <->
BizTalk Orchestration <-> Consume Another Web Services
<-> : Request - Response communication.
BizTalk Orchestration will construct a message to consume another web
services based on the request information from web application
Below message will be passed all the way in the process :
Note : DateInfo = xs:datetime, DateOnly = xs:date
Request Message : <?xml version="1.0"?>
<Request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://MyBizTalkApp.Response">
<Message>Calling BizTalk Web Services at 2/26/2008 1:35:47 PM</Message>
<DateInfo>2008-02-26T13:35:47.1828125+08:00</DateInfo>
<DateOnly>2008-02-26</DateOnly>
</Request>
Web Service Message :
message : <?xml version="1.0"?><string>Calling BizTalk Web Services at
2/26/2008 1:35:47 PM</string>
dateInfo : <?xml
version="1.0"?><dateTime>2008-02-26T05:35:47.1828125Z</dateTime>
dateOnly : <?xml version="1.0"?><dateTime>2008-02-25T16:00:00Z</dateTime>
Trace Results :
WebApplication: DateInfo : 2008-02-26T13:35:47.1828125+08:00
WebApplication: DateOnly : 2008-02-26T13:35:47.1828125+08:00
ExposedWebServices: DateInfo : 2008-02-26T13:35:47.1828125+08:00
ExposedWebServices: DateOnly : 2008-02-26T00:00:00.0000000
BizTalkOrchestration: Request DateInfo : 2/26/2008 5:35:47 AM -> Date
becomes GMT
BizTalkOrchestration: Request DateOnly : 2/25/2008 4:00:00 PM -> Date
becomes GMT
BizTalkOrchestration: ConsumedWS Request DateInfo :
2008-02-26T05:35:47.1828125Z -> Get From Request DateInfo
BizTalkOrchestration: ConsumedWS Request DateOnly :
2008-02-25T16:00:00.0000000Z -> Get From Request DateOnly
ConsumedWebServices: DateInfo : 2008-02-26T05:35:47.1828125Z -> Web
Services
will receive wrong time information
ConsumedWebServices: DateOnly : 2008-02-25T16:00:00.0000000Z -> Web
Services
will receive wrong time information