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]
>
>
>