Hi Lukas,
Thanks for the Guidance.
1.after adding the header before calling the client - I was getting the header as Empty. so I have added in wcfRequestCahnnel Iself as below
string action = message.Headers.Action;
req.Method = "POST";
req.Headers.Add("SOAPAction", '"' + action + '"');
req.Headers.Add("Content-Type", "text/xml; charset=utf-8");
message.Headers.Clear();
message.Headers.Add(new WcfMessageHeader("UsernameToken", "
http://siebel.com/webservices", "user"));
message.Headers.Add(new WcfMessageHeader("PasswordText", "
http://siebel.com/webservices", "password"));
message.Headers.Add(new WcfMessageHeader("SessionType", "
http://siebel.com/webservices ", "Stateless"));
Request:
2018-05-24 20:36:43 DEBUG FileLogWriter(1)[109314106] Info: Culture: en; windows-1252
2018-05-24 20:36:44 DEBUG (0)[109314106] SOAP Before Sending: <s:Envelope xmlns:s="
http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<UsernameToken xmlns="
http://siebel.com/webservices">user</UsernameToken>
<PasswordText xmlns="
http://siebel.com/webservices">password</PasswordText>
<SessionType xmlns="
http://siebel.com/webservices ">Stateless</SessionType>
</s:Header>
<s:Body xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
<PurchaseProduct_Input xmlns="
http://siebel.com/CustomUI">
<PurchaseProduct xmlns="
http://www.siebel.com/xml/PurchaseProduct">
<purchaseProductData>
<sessionData>
<sessionId>14d59094-4f1a-4088-ba30-41f542e5ba05</sessionId>
<equipmentId>50000002</equipmentId>
</sessionData>
<requestDate>05/24/2018</requestDate>
<requestSource>PPS</requestSource>
<fareMediaType>Verify Permit</fareMediaType>
<fareMediaID>1-D4AHV</fareMediaID>
<attrib01>5223110364650405</attrib01>
<soldProductInfoList>
<soldProductInfo>
<cardName>5223110364650405</cardName>
</soldProductInfo>
</soldProductInfoList>
<addtionalInfo>
<lotID>1-2QWEMR</lotID>
<spaceNo>1168726351</spaceNo>
<duration>1</duration>
<locationID>1-DN0L0</locationID>
</addtionalInfo>
</purchaseProductData>
</PurchaseProduct>
</PurchaseProduct_Input>
</s:Body>
</s:Envelope>
response:
2018-05-24 20:37:03 VERBOSE HttpRequest(1)[109314106] HTTP: Received data:
0000 |48-54-54-50-2F-31-2E-31 20-32-30-30-20-4F-4B-0D| HTTP/1.1 200 OK.
0010 |0A-43-61-63-68-65-2D-43 6F-6E-74-72-6F-6C-3A-20| .Cache-Control:
0020 |6E-6F-2D-63-61-63-68-65 2C-20-6D-75-73-74-2D-72| no-cache, must-r
0030 |65-76-61-6C-69-64-61-74 65-2C-20-6D-61-78-2D-61| evalidate, max-a
0040 |67-65-3D-30-0D-0A-50-72 61-67-6D-61-3A-20-6E-6F| ge=0..Pragma: no
0050 |2D-63-61-63-68-65-0D-0A 54-72-61-6E-73-66-65-72| -cache..Transfer
0060 |2D-45-6E-63-6F-64-69-6E 67-3A-20-43-68-75-6E-6B| -Encoding: Chunk
0070 |65-64-0D-0A-43-6F-6E-74 65-6E-74-2D-54-79-70-65| ed..Content-Type
0080 |3A-20-74-65-78-74-2F-78 6D-6C-3B-63-68-61-72-73| : text/xml;chars
0090 |65-74-3D-55-54-46-2D-38 0D-0A-43-6F-6E-74-65-6E| et=UTF-8..Conten
00A0 |74-2D-45-6E-63-6F-64-69 6E-67-3A-20-64-65-66-6C| t-Encoding: defl
00B0 |61-74-65-0D-0A-45-54-61 67-3A-20-53-41-4D-45-4F| ate..ETag: SAMEO
00C0 |52-49-47-49-4E-0D-0A-53 65-72-76-65-72-3A-20-4D| RIGIN..Server: M
00D0 |69-63-72-6F-73-6F-66-74 2D-49-49-53-2F-37-2E-35| icrosoft-IIS/7.5
00E0 |0D-0A-5F-63-68-61-72-73 65-74-3A-20-55-54-46-2D| .._charset: UTF-
00F0 |38-0D-0A-58-2D-50-6F-77 65-72-65-64-2D-42-79-3A| 8..X-Powered-By:
0100 |20-41-53-50-2E-4E-45-54 0D-0A-44-61-74-65-3A-20| ASP.NET..Date:
0110 |46-72-69-2C-20-32-35-20 4D-61-79-20-32-30-31-38| Fri, 25 May 2018
0120 |20-30-30-3A-33-37-3A-30 33-20-47-4D-54-0D-0A-0D| 00:37:03 GMT...
0130 |0A-31-39-36-0D-0A-84-93 DB-4E-E3-30-10-86-5F-C5| .196.....N.0.._.
0140 |CA-7D-62-A7-24-52-A9-DC 20-16-8A-54-09-B6-15-5D| .}b.$R.. ..T...]
0150 |56-7B-87-DC-78-42-2D-25 76-F0-81-D2-7D-7A-A6-25| V{..xB-%v...}z.%
0160 |DB-A6-40-D9-5C-79-0E-DF EF-F1-6F-87-5F-BC-36-35| ..@.\y....o._.65
0170 |79-01-EB-94-D1-E3-28-4D 58-44-40-97-46-2A-FD-34| y.....(MXD@.F*.4
0180 |8E-1E-7E-DD-C4-C3-E8-A2 E0-8B-D9-E5-3C-9E-FC-FC| ..~.........<...
0190 |3D-9A-E8-17-A8-4D-0B-04 31-ED-46-FF-F2-E3-68-E5| =....M..1.F...h.
01A0 |7D-3B-A2-D4-95-2B-68-84 4B-B0-EC-8C-68-13-63-9F| };...+h.K...h.c.
01B0 |E8-76-41-A1-03-69-D4-A1 AF-4E-ED-A9-F5-7A-9D-AC| .vA..i...N...z..
01C0 |CF-76-CD-03-C6-52-FA-E7 EE-76-B1-13-8A-95-76-5E| .v...R...v....v^
01D0 |E8-12-0E-94-FC-3F-15-F5 06-FE-61-E4-A6-E0-48-CE| .....?....a...H.
01E0 |83-2D-57-C2-C1-DC-1A-19 4A-FF-38-0B-BE-0D-BE-93| .-W.....J.8.....
01F0 |D5-EE-70-02-05-4B-A8-93 D2-34-F4-2A-38-6F-9A-87| ..p..K...4.*8o..
0200 |29-EA-7D-A0-EF-C1-B5-46 BB-CE-86-A3-89-7A-3C-16| ).}....F.....z<.
0210 |E9-09-10-25-2D-B4-F5-E6 5A-78-51-70-07-6E-EB-FF| ...%-...ZxQp.n..
0220 |51-30-95-45-9A-C9-FC-9C 9D-67-71-56-A5-22-CE-D8| Q0.E.....gqV."..
0230 |70-18-2F-C5-19-8B-B3-B4 CA-B3-01-E4-4B-C1-72-4E| p./.........K.rN
0240 |0F-FD-1C-9E-83-6A-1B-D0 1E-83-9C-ED-BE-01-A7-FD| .....j..........
0250 |EC-BE-FD-7D-2F-DB-8D-83 11-14-2C-A7-83-0C-AD-4C| ...}/.....,....L
0260 |87-9C-1E-15-38-DE-81-0F EE-CA-48-6C-42-A7-51-E4| ....8.....HlB.Q.
0270 |90-E0-60-AD-B1-53-5D-99 62-66-25-58-52-5A-10-1E| ..`..S].bf%XRZ..
0280 |77-20-95-50-35-48-22-03 10-6F-C8-62-E3-3C-34-64| w .P5H"..o.b.<4d
0290 |B2-ED-4E-70-A8-3D-C5-6B E5-FC-AC-9A-8B-CD-76-C6| ..Np.=.k......v.
02A0 |CB-E0-57-C6-AA-BF-3B-89 82-8B-7E-E8-AF-A1-C2-13| ..W...;...~.....
02B0 |7C-95-FB-4E-83-F6-9C-3E 75-1F-58-39-F9-46-B0-F6| |..N...>u.X9.F..
02C0 |E1-39-D1-4F-FF-43-F1-06 00-00-FF-FF-0D-0A-30-0D| .9.O.C........0.
02D0 |0A-0D-0A | ...
2018-05-24 20:37:03 INFO HttpRequest(1)[109314106] HTTP: Received response: 200 OK.
2018-05-24 20:37:03 DEBUG HttpRequest(1)[109314106] HTTP: Received 10 headers.
2018-05-24 20:37:03 DEBUG HttpRequest(1)[109314106] HTTP: Response Content-Length not specified.
2018-05-24 20:37:03 DEBUG HttpRequest(1)[109314106] HTTP: Response Transfer-Encoding: Chunked.
2018-05-24 20:37:03 INFO HttpRequest(1)[109314106] HTTP: ZLIB header check failed. Using DEFLATE fallback.
2018-05-24 20:37:03 DEBUG HttpRequest(1)[109314106] HTTP: Closing HTTP session (1).
- am getting the below exception
May 24,2018 20:37:04,000 FATAL PaymentHandler]: FATAL :
System.Net.WebException: More compressed data expected. ---> System.Net.WebException: More compressed data expected. ---> tlfk: More compressed data expected.
at tlfn.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.Xml.XmlTextReaderImpl.InitStreamInput(Uri baseUri, String baseUriStr, Stream stream, Byte[] bytes, Int32 byteCount, Encoding encoding)
at System.Xml.XmlTextReaderImpl.InitStreamInput(Stream stream, Encoding encoding)
at System.Xml.XmlTextReaderImpl..ctor(String url, Stream input, XmlNameTable nt)
at System.Xml.XmlTextReaderImpl..ctor(Stream input, XmlNameTable nt)
at System.Xml.XmlTextReader..ctor(Stream input, XmlNameTable nt)
at System.Xml.XmlDocument.Load(Stream inStream)
- I have reported the same kind issue before and you have some hotfix, am using the same version only