473,671 Members | 2,327 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weather Service Webservice Issues

Hello
We have been using the the National Weather Service
webservice(http://www.weather.gov/xml/) for a while. A couple weeks ago they
made some changes and moved the url of the
wsdl(http://www.weather.gov/forecasts/xml.../ndfdXML.wsdl).

I changed the wsdl location in my project and refreshed the web references,
but now I am getting error "The underlying connection was closed: The server
committed an HTTP protocol violation." and can't get the webservice to
execute from my asp.net application will it does execute from other
webservice
clients(http://www.mindreef.net/tide/scopeit.../ndfdXML.wsdl).
I have tried a work around listed I found on google of putting

<configuratio n>
<system.net>
<settings>
<httpWebReque st useUnsafeHeader Parsing="true" />
</settings>
</system.net>
</configuration>

in the machine.config but that does not seem to do anything. Appreciate any
help.

Thanks
S


Nov 19 '05 #1
3 1965
About in the Web.config?
Patrick

"sduncansca " <sd********@yah oo.com> wrote in message
news:Og******** ******@TK2MSFTN GP09.phx.gbl...
Hello
We have been using the the National Weather Service
webservice(http://www.weather.gov/xml/) for a while. A couple weeks ago they made some changes and moved the url of the
wsdl(http://www.weather.gov/forecasts/xml.../ndfdXML.wsdl).

I changed the wsdl location in my project and refreshed the web references, but now I am getting error "The underlying connection was closed: The server committed an HTTP protocol violation." and can't get the webservice to
execute from my asp.net application will it does execute from other
webservice
clients(http://www.mindreef.net/tide/scopeit...xmethods&url=h
ttp://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl). I have tried a work around listed I found on google of putting

<configuratio n>
<system.net>
<settings>
<httpWebReque st useUnsafeHeader Parsing="true" />
</settings>
</system.net>
</configuration>

in the machine.config but that does not seem to do anything. Appreciate any help.

Thanks
S

Nov 19 '05 #2
And also the setting is only recognized by .NET 1.1 SP1.
Patrick
"sduncansca " <sd********@yah oo.com> wrote in message
news:Og******** ******@TK2MSFTN GP09.phx.gbl...
Hello
We have been using the the National Weather Service
webservice(http://www.weather.gov/xml/) for a while. A couple weeks ago they made some changes and moved the url of the
wsdl(http://www.weather.gov/forecasts/xml.../ndfdXML.wsdl).

I changed the wsdl location in my project and refreshed the web references, but now I am getting error "The underlying connection was closed: The server committed an HTTP protocol violation." and can't get the webservice to
execute from my asp.net application will it does execute from other
webservice
clients(http://www.mindreef.net/tide/scopeit...xmethods&url=h
ttp://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl). I have tried a work around listed I found on google of putting

<configuratio n>
<system.net>
<settings>
<httpWebReque st useUnsafeHeader Parsing="true" />
</settings>
</system.net>
</configuration>

in the machine.config but that does not seem to do anything. Appreciate any help.

Thanks
S

Nov 19 '05 #3
Hi Patrick
Thanks for responding. Looks like it may be resolved. I added the
function described
here(http://weblogs.asp.net/jan/archive/2.../28/63771.aspx) and it
appears to be working now.

Thanks
S

"Patrick.O. Ige" <na********@hot mail.com> wrote in message
news:ud******** ******@TK2MSFTN GP14.phx.gbl...
And also the setting is only recognized by .NET 1.1 SP1.
Patrick
"sduncansca " <sd********@yah oo.com> wrote in message
news:Og******** ******@TK2MSFTN GP09.phx.gbl...
Hello
We have been using the the National Weather Service
webservice(http://www.weather.gov/xml/) for a while. A couple weeks ago

they
made some changes and moved the url of the
wsdl(http://www.weather.gov/forecasts/xml.../ndfdXML.wsdl).

I changed the wsdl location in my project and refreshed the web

references,
but now I am getting error "The underlying connection was closed: The

server
committed an HTTP protocol violation." and can't get the webservice to
execute from my asp.net application will it does execute from other
webservice

clients(http://www.mindreef.net/tide/scopeit...xmethods&url=h
ttp://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl).
I have tried a work around listed I found on google of putting

<configuratio n>
<system.net>
<settings>
<httpWebReque st useUnsafeHeader Parsing="true" />
</settings>
</system.net>
</configuration>

in the machine.config but that does not seem to do anything. Appreciate

any
help.

Thanks
S


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
528
by: PatrickSA | last post by:
Hi, Am new to web services, so apologies for the basic nature of the question - and apologies in advance if this is the wrong newsgroup. We're building a new web service and I'm looking around for documentation on a number of issues, including versioning of web service interfaces... I've spent the last few hours looking through books, Google, MSDN and surprisingly I have found little or nothing that explains/shows how to practically...
6
13818
by: nickname | last post by:
I want to pass some xml to a web service method, the xml will confirm to a defined schema. Lets say the schema is defined as: <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="books"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="book"> <xs:complexType>
2
3055
by: =?Utf-8?B?QXNhZg==?= | last post by:
Hi, I have a web service that run in several instances to do a large process. What I would like to do is to know the process ID of each web service instance and the ability to terminate the work of this web service instance by the process ID from for example an ASPX page. Is there a way to do this? Thanks in advanced,
4
3488
by: cj | last post by:
I'm finally back to trying to write a web service. In VB 2005 I created a new web site and then ASP.NET Web Service. It opened showing App_Code/Service.VB with the following code already in it Imports System.Web Imports System.Web.Services Imports System.Web.Services.Protocols <WebService(Namespace:="http://tempuri.org/")_ <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)_
2
2114
by: cj | last post by:
<System.Web.Services.WebService(Name:="CJ's Service", Description:="Testing 123", Namespace:="http://myco.com/cj/one")_ <System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ <ToolboxItem(False)_ Public Class Service1 Inherits System.Web.Services.WebService <WebMethod()_ Public Function HelloWorld() As String Return "Hello World"
5
1317
by: Dave | last post by:
I'm developing a piece of Hardware that I wish to have utilize a web service on a Windows 2003 server. I send an XML file to the server over port 80 but, it doesn't work. Whatis required to make this connection?
5
2556
by: cj | last post by:
Back some time ago I was playing with a little app in VB 2005 that used a google web service to get search results. I was rebuilding this app in 2008 today. I added the web service http://api.google.com/googlesearch.wsdl and then down in the code I was typing Dim myGoogle As New Google.GoogleSearchService only to find GoogleSearchService was no longer a method. I looked on google for documentation and it appears they no longer offer...
5
1965
by: cj2 | last post by:
This code works: using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Linq; using System.Web; using System.Web.Services; using System.Web.Services.Protocols;
5
5167
by: TompIfe | last post by:
Hi, I have a web service that reads data from an Access database using datareader and place the data in an array that the web method returns. Now, I want to make the web service also to return an xml file with the data. How do I best proceed? Best regards, Tom
0
8481
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8400
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8602
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8672
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7441
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6234
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4412
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.