473,652 Members | 3,049 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using soap classic asp - weather.gov - issues

4 New Member
when i am excusing the below code i am getting the error.

Error 1


Expand|Select|Wrap|Line Numbers
  1.     <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  2.     <SOAP-ENV:Body>
  3.     <SOAP-ENV:Fault>
  4. <faultcode xsi:type="xsd:string">SOAP-ENV:Client</faultcode>
  5. <faultactor xsi:type="xsd:string"/>
  6.     <faultstring xsi:type="xsd:string">
  7. Operation '' is not defined in the WSDL for this service
  8. </faultstring>
  9. <detail xsi:type="xsd:string"/>
  10. </SOAP-ENV:Fault>
  11. </SOAP-ENV:Body>
  12. </SOAP-ENV:Envelope>
Error 2:
Expand|Select|Wrap|Line Numbers
  1.           Error Type:
  2. Microsoft VBScript runtime (0x800A01A8)
  3. Object required: 'xd.getElementsByTagName(...).item(...)'
  4. /projects/soap/soap2.asp, line 58
]


Expand|Select|Wrap|Line Numbers
  1. <%
  2. 'Below I figure out what the current date is. The NWS SOAP Server wants a from date as xsd date or yyyy-mm-dd.
  3.  
  4. datToday = Date()
  5. datToday="2008-03-17"
  6. 'Response.Write datToday
  7. 'Response.End
  8. dateday = Day(datToday)
  9. datemonth = Month(datToday)
  10. dateyear = Year(datToday)
  11. whatdate = dateyear & "-" & datemonth & "-" & dateday
  12.  
  13. latitude="38.99"
  14. longitude="77.01"
  15. numdays="7"
  16.  
  17. 'Page content set to xml and set to no cache.
  18.  
  19. Response.CacheControl = "no-cache"
  20. Response.ContentType = "text/xml"
  21.  
  22. 'Below sets Microsoft xmlhttp object.
  23.  
  24.   Set ht = Server.CreateObject ("MSXML2.ServerXMLHTTP")
  25.  
  26. 'Below compiles the SOAP request to NWS. You will need to replace "your latitude", "your longitude", and "your number of days" with your data. If you dont know you lat and long go to http://localhost/jason/geozip.asp. Note "your number of days" can be a value between 3 and 7 I beleive.
  27.  
  28.   tq = "<?xml version=""1.0"" encoding=""UTF-8"" standalone=""no"" ?>" _
  29.   & "<SOAP-ENV:Envelope xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:si=""http://soapinterop.org/xsd"" xmlns:tns=""http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl"" xmlns:typens=""http://www.weather.gov/forecasts/xml/DWMLgen/schema/DWML.xsd"" xmlns:soap=""http://schemas.xmlsoap.org/wsdl/soap/"" xmlns:wsdl=""http://schemas.xmlsoap.org/wsdl/"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">" _
  30.   & "<SOAP-ENV:Body>" _
  31.   & "<mns:NDFDgenByDay xmlns:mns=""http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl"" SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"">" _
  32.   & "<latitude xsi:type=""xsd:decimal"">" & latitude & "</latitude>" _ 
  33.   & "<longitude xsi:type=""xsd:decimal"">" & longitude & "</longitude>" _
  34.   & "<startDate xsi:type=""xsd:date"">" & whatdate & "</startDate>" _
  35.   & "<numDays xsi:type=""xsd:integer"">" & numdays & "</numDays>" _
  36.   & "<format xsi:type=""typens:formatType"">12 hourly</format>" _
  37.   & "</mns:NDFDgenByDay>" _
  38.   & "</SOAP-ENV:Body>" _
  39.   & "</SOAP-ENV:Envelope>"  
  40.  
  41. 'Below sends request
  42.  
  43.   ht.Open "POST", "http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php", false
  44.   ht.Send tq
  45.  
  46. 'Below opens the response and seperates out the xml from the SOAP envelope. 
  47.  
  48.   htresult = ht.responsexml.xml
  49.  
  50.  
  51.   Set xd = Server.CreateObject ("Microsoft.XMLDOM")
  52.   xd.async = "false"
  53.   xd.loadXML(htresult)
  54.  
  55.   'Response.Write htresult
  56.   'Response.End  
  57.  
  58.   htdude = xd.getElementsByTagName("dwmlByDayOut").item(0).text
  59.  
  60. 'Code below inserts a link to the xsl style sheet. Modern browsers will do the rest.
  61.  
  62.   a = htdude
  63.   pos = Instr(a,">")
  64.   b = Left(a,pos) & "<?xml-stylesheet type=""text/xsl"" href=""forecast.xsl""?" & Mid(a,pos)
  65.   Response.Write b
  66.  
  67.   Set xd = Nothing 
  68.   Set ht = Nothing
  69. %>
Please help me.

by,

a2z info
Mar 17 '08 #1
1 3809
akumar8k
4 New Member
Hello,

I got the solution but only one issue with forecast displaying issue.


URL: http://weather4webs.com/code/default.asp

Issue Is:

# Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'xd.getElements ByTagName(...). item(...)'
/projects/soap/soap4.asp, line 54



by,

a2z info
Mar 17 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
26177
by: Keith E. | last post by:
Does any one know of resources or can you offer direction on how to use classic ASP as a web service client. I have found all kinds of stuff for the ASP.NET But, I need to be able tap into a web service from a ASP 3.0 as a client I have webservice on a IIS platform w/ the SOAP 3.0 kit installed and can talk to it via a VB 6 client.
6
12756
by: ASPfool | last post by:
Hello everyone, Please help me before I throw my computer out of the window: I'm working on a web application in classic ASP (vbscript), which is making calls to some webservices. The calls are made using SOAP - i installed the SOAP3 toolkit on my windows 2k server to enable this. The webservice calls are returning String Arrays which I can't seem to do anything useful with. The call shown below returns a string array with two...
1
2505
by: Dr Clue | last post by:
I've been building myself a smart SOAP object whose constructor takes the url of a .wsdl file and dynamicly creates methods identical in name to the description in whatever .wsdl file it's declared with new DCwsdl('http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl') calling the wsdl methods with no arguments returns an object describing the names and soap data types of the parameters expected.
2
4168
by: A Golez | last post by:
Hello all, I'm a complete newbie looking for a little advice. I am writing a Soap Client to request weather data from the NOAA website. (http://www.nws.noaa.gov/forecasts/xml/) and the response to the sent request is returned in the form of a string. I know I have to use something like XmlDocument/XmlNode to extract the text from the Xml tags, but I'm having problems in doing in. Here's what I'm doing:...
0
2285
by: Michael Jackson | last post by:
I have attempted to mark up a service and it's methods so that it doesn't require the SOAPAction HTTP header to resolve the methods being called, this is done from first element in <SOAP-ENV:Body> and the request and responses are not suffixed with Request and Response. Is there some more I could do with the attributes on the class that defines the WS and on the methods. the code for the WS etc is below. This I can get to work POST...
5
10389
by: David Lozzi | last post by:
Howdy, I wrote a web service in .Net for my customer. My customer has another vendor who now has to consume it but they are not using Visual Studio. Most of their pages are jsp, and they said they need to consume this web service using HTTP. The developer's IDE is Notepad. Yeah, weird I know. How is this done? I guess if I can get it to run ASP, IDE independant, that should make them happy. Any references you can point me to?
1
1181
by: vbJustin | last post by:
Hello again, I have a question here. Can anyone tell me where I can access a simple, up to date web service for SOAP for the Weather. I have been programming a form on VB 6.0 to intake a zipcode, and from a scource, output the weather for that area. does anyone know of a scource for the info, It has to be fairly simple, and have just regular weather information. Thanks, Justin.
4
4346
plumpnation
by: plumpnation | last post by:
Hello one and all. I have recently been working outside of my field of expertise alot, and it is greatly distressing me. I have learned a small amount of php and actionscript, but now need to move into the realm of asp. I have been supplied this script in asp classic by the web service administrator as an example, but i have no idea how to use it in conjunction with a html POST form. 1. Should the form be put within the same page? ...
8
6281
by: =?Utf-8?B?RGFuTQ==?= | last post by:
Can someone help with the following problem. I am sending an encrypted SOAP message to a .NET 2.0 + WSE 3.0 web service. When .NET attempts to decrypt the message it cannot read the private key of the X509 token it requires (or so it says). I have followed the instructions in the error message and given the userid full access to the certificate. I have also tried running .NET under my administrators userid which was used to create the...
0
8279
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
8589
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
7302
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
6160
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
5619
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4145
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2703
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.