HighTechTalks DotNet Forums  

Consume 2.0 webservice with VS2003

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Consume 2.0 webservice with VS2003 in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Roel
 
Posts: n/a

Default Consume 2.0 webservice with VS2003 - 06-23-2006 , 04:11 AM






Hi all,

I'm running a ASP.NET 2.0 webservice and when I consume it with an ASP.NET
2.0 webapp everything works fine.

When I try to access it with an ASP.NET 1.1 webapp I get the folowing error:

<exception>
The XML element named '' from namespace 'http://mynamespace.goes.here/' is
already present in the current scope. Use XML attributes to specify another
XML name or namespace for the element.

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The XML element named
'' from namespace 'http://mynamespace.goes.here/' is already present in the
current scope. Use XML attributes to specify another XML name or namespace
for the element.

</exception>

This error does not occur when I access the ASP.NET 2.0 webservice running
on the test-server so it seems like it's a configuration-difference on the
production-server.

Anyone got a clue?

Greetings,
Roel



Reply With Quote
  #2  
Old   
Gaurav Vaish \(www.EduJini.IN\)
 
Posts: n/a

Default Re: Consume 2.0 webservice with VS2003 - 06-25-2006 , 08:30 PM






Are you using WSE by any chance?
Can you put up the WSDL at some convenient location (public URL) for us to
look at...

--
Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.org
http://www.edujini.in | http://webservices.edujini.in
-------------------


"Roel" <no_spam_please> wrote

Quote:
Hi all,

I'm running a ASP.NET 2.0 webservice and when I consume it with an ASP.NET
2.0 webapp everything works fine.

When I try to access it with an ASP.NET 1.1 webapp I get the folowing
error:

exception
The XML element named '' from namespace 'http://mynamespace.goes.here/' is
already present in the current scope. Use XML attributes to specify
another XML name or namespace for the element.



Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: Consume 2.0 webservice with VS2003 - 07-05-2006 , 10:05 AM



Have you solved this? I have the same problem and I can't figure it
out.

Bill

Roel wrote:
Quote:
Hi all,

I'm running a ASP.NET 2.0 webservice and when I consume it with an ASP.NET
2.0 webapp everything works fine.

When I try to access it with an ASP.NET 1.1 webapp I get the folowing error:

exception
The XML element named '' from namespace 'http://mynamespace.goes.here/' is
already present in the current scope. Use XML attributes to specify another
XML name or namespace for the element.

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The XML element named
'' from namespace 'http://mynamespace.goes.here/' is already present in the
current scope. Use XML attributes to specify another XML name or namespace
for the element.

/exception

This error does not occur when I access the ASP.NET 2.0 webservice running
on the test-server so it seems like it's a configuration-difference on the
production-server.

Anyone got a clue?

Greetings,
Roel


Reply With Quote
  #4  
Old   
Roel
 
Posts: n/a

Default Re: Consume 2.0 webservice with VS2003 - 07-06-2006 , 01:35 AM



The problem was the DataTable which was returned by the webservice. When I
altered this to a DataSet object, it works in VS2003 and VS2005.

http://support.microsoft.com/default.aspx?scid=kb;en-us;306134

Kind regards,
Roel

<namewitheldbyrequest (AT) gmail (DOT) com> wrote

Quote:
Have you solved this? I have the same problem and I can't figure it
out.

Bill

Roel wrote:
Hi all,

I'm running a ASP.NET 2.0 webservice and when I consume it with an
ASP.NET
2.0 webapp everything works fine.

When I try to access it with an ASP.NET 1.1 webapp I get the folowing
error:

exception
The XML element named '' from namespace 'http://mynamespace.goes.here/'
is
already present in the current scope. Use XML attributes to specify
another
XML name or namespace for the element.

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The XML element
named
'' from namespace 'http://mynamespace.goes.here/' is already present in
the
current scope. Use XML attributes to specify another XML name or
namespace
for the element.

/exception

This error does not occur when I access the ASP.NET 2.0 webservice
running
on the test-server so it seems like it's a configuration-difference on
the
production-server.

Anyone got a clue?

Greetings,
Roel




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.