Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > exception on Response Envelope, Error in XML-document

Reply
Thread Tools

exception on Response Envelope, Error in XML-document

 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      08-27-2007
Hi Dirk,

Yes, as John said, would you show us the relationship between the resType
and the proxy object(test), from the code snippet it really unexpected to
get such a result.

Also, for the proxy class code question you mentioned earlier, have you
found it? For the proxy generated by "Add WebReference in VS IDE", you can
view it as below:

** if the proxy class is generated in winform or console or class library
project, you can select and click the certain webreference node in solution
explorer(or expand the node) to find the autogenerated xxx.designer.cs(or
vb) file. The code of the proxy is in it.

** For ASP.NET web project(not web application project), the proxy code is
dynamically generated and compiled, so you can not find any pregenerated
code in project folder at design-time. Also, the autogenerated code mainly
contains some class and method definition and does not contain any info
about the underlying XML processing.

BTW, is there an external URL we can visit and test?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.




--------------------
>From: "John Saunders [MVP]" <john.saunders at trizetto.com>
>References: <>

<>
<>
<#>
<#>
>Subject: Re: exception on Response Envelope, Error in XML-document
>Date: Sat, 25 Aug 2007 20:29:43 -0400
>Lines: 55
>Organization: The TriZetto Group, Inc.
>MIME-Version: 1.0
>Content-Type: text/plain;
> format=flowed;
> charset="iso-8859-1";
> reply-type=response
>Content-Transfer-Encoding: 7bit
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
>Message-ID: <#>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>NNTP-Posting-Host: pool-72-74-112-227.bstnma.east.verizon.net 72.74.112.227
>Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSF TNGP05.phx.gbl
>Xref: TK2MSFTNGHUB02.phx.gbl

microsoft.public.dotnet.framework.aspnet.webservic es:1409
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>"msdnuniv" <> wrote in message
>news:%...
>>
>> "John Saunders [MVP]" <john.saunders at trizetto.com> schrieb im
>> Newsbeitrag news:%...
>>> "msdnuniv" <> wrote in message
>>> news:...
>>>>> Public Function getArtDet() As String
>>>>> Dim test As New de.test.MyHandicapExperts
>>>>> Dim res As New de.test.ArticleDetailsResponse
>>>>> Dim header As String
>>>>>
>>>>> res = test.GetArticleDetails("asdf", 3)
>>>>> header = res.header
>>>>>
>>>>> Return header
>>>>> End Function
>>>>> I get a nullreferenceException on
>>>>> header = res.header
>>>>
>>>> one more silly thing:
>>>> Please can somebody explain, why i get no Exception
>>>> in first line
>>>> and after invoking GetArticleDetails i get an exception in third line?
>>>> - - - - - - - - - - - - - - - - -
>>>> 'This is OK:
>>>> myHash = resType.GetHashCode
>>>>
>>>> 'This is OK:
>>>> res = test.GetArticleDetails("adsf", 3)
>>>>
>>>> 'NullReferenceException here:
>>>> myHash = resType.GetHashCode
>>>> - - - - - - - - - - - - - - - - -
>>>
>>> If you comment out that second "GetHashCode" line, what happens?
>>> --
>>> John Saunders [MVP]

>>
>> John,
>>
>> then there is no exception

>
>Ok, you haven't shown us the relationship between res and resType. Please
>show us how they are declared.
>
>Also, try simplifying this a bit:
>
>res = Nothing 'test.GetArticleDetails("adsf", 3)
>
>See what happens (include the second GetHashCode!)
>--
>John Saunders [MVP]
>
>
>


 
Reply With Quote
 
 
 
 
Kim Janssens
Guest
Posts: n/a
 
      11-30-2008
Hello,

I am having the same problem as you. It would be really a big help if you could give me some insights if you were able to manage to find a solution for this problem?

Great thanks

Kim
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: uncaught exception: [Exception... "Component returned failure friend Javascript 1 05-12-2008 07:25 AM
Exception of type 'System.Web.HttpUnhandledException' wasthrown.Exception has been thrown by the target of an invocation.System.WebSystem.Exception jobs ASP .Net 1 11-16-2007 05:57 PM
exception unknown software exception error - Excel.exe mfinamore Software 0 11-15-2007 04:54 PM
while executing my client program i get the exception javax.naming.LinkException: [Root exception is javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: remaining if plz anybody know how to solve this problem then mahesh Java 0 03-08-2007 12:26 PM
Frames and Response.Redirect / Response.Write - Refresh Charles A. Lackman ASP .Net 2 01-11-2006 11:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57