Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<pre lang="text">


i am trying to invoke the 3rd party web service from visual studio i am getting the below exception

"There is a problem with the XML that was received from the network. See inner exception for more details."

when i tried the same one through SOAP UI. i got the response as below..


��������`I�%&/m�{J�J��t��`$ؐ@������iG#)�*��eVe]f@�흼��{���{���;�N'���?\fdl��J�ɞ!���?~|?"��ez��MQ-?�hw��Q�/�լX^|�Ѻ=�>���8z�T�����2/�U��+��>��yۮݽ�L��"k��>W��]�r7ח�~���k
�������7���ٽ�{��5�.�M�-��{kv�[)�O�ٵ��,[����s��Q�G��뼦!?��>�M[Ӹ�^S����4_�D��Y]-��m'/eӶ���u�_�ߏgy���c��'��y�7�
�e�/۳�)u�^�}�y���b�4�,���ӏ҂@���ν{
<����q޼��i5�av�z\�(�n�&��7��>�azZ������1i�:#�!BH�o�y��WY�f)
c��i;�S��tUWӼi�>��]�M���׽J��a_-�.���9�~��C�Z��}��&e���*�iq~�.��H��U��Ϯ�8B
Q+w}�v�S{���G�?������


some garbage value...

i asked those guys They are telling that this is the compressed data

i tried using SOAP UI i got the response ,by unchecking accept compressed data from host and
the response details as follows...

header details
X-AspNet-Version 2.0.50727
Date Fri, 14 Mar 2014 13:55:54 GMT
#status# HTTP/1.1 200 OK
Content-Length 2705
Content-Encoding gzip
Content-Type text/xml; charset=utf-8
X-Powered-By ASP.NET
Server Microsoft-IIS/6.0
Cache-Control private, max-age=0

inner exception is:
The data at the root level is invalid. Line 1, position 1. how to read that compressed data..


is there any way to UN compress the data and read from c#
Posted
Updated 16-Mar-14 21:17pm
v2
Comments
CHill60 14-Mar-14 9:29am    
Why didn't you have a look at the inner exception ?
Tejas Vaishnav 14-Mar-14 9:54am    
why are you not asking the compression method to your service provider, who told you that this is compressed data, they know the exact idea how to decompress it.
sagar.panuganti 15-Mar-14 1:34am    
it is the
ProtocolException pe
sagar.panuganti 17-Mar-14 1:50am    
i tried using SOAP UI i got the response ,by unchecking accept compressed data from host
and the response details as follows...

header details

X-AspNet-Version 2.0.50727
Date Fri, 14 Mar 2014 13:55:54 GMT
#status# HTTP/1.1 200 OK
Content-Length 2705
Content-Encoding gzip
Content-Type text/xml; charset=utf-8
X-Powered-By ASP.NET
Server Microsoft-IIS/6.0
Cache-Control private, max-age=0


inner exception is:

The data at the root level is invalid. Line 1, position 1.


how to read that compressed data..
Richard MacCutchan 17-Mar-14 5:53am    
You need to get with the people who sent the data and ask them how it has been compressed. You can then use the same methods to uncompress it.

1 solution

i got the solution.


Here i am getting FAULT EXCEPTION CLASS as response..
 
Share this answer
 
Comments
kamrantav 13-May-15 16:46pm    
garbage, this is no solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900