when i am excusing the below code i am getting the error.
Error 1 - −
-
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
-
−
-
<SOAP-ENV:Body>
-
−
-
<SOAP-ENV:Fault>
-
<faultcode xsi:type="xsd:string">SOAP-ENV:Client</faultcode>
-
<faultactor xsi:type="xsd:string"/>
-
−
-
<faultstring xsi:type="xsd:string">
-
Operation '' is not defined in the WSDL for this service
-
</faultstring>
-
<detail xsi:type="xsd:string"/>
-
</SOAP-ENV:Fault>
-
</SOAP-ENV:Body>
-
</SOAP-ENV:Envelope>
Error 2: -
Error Type:
-
Microsoft VBScript runtime (0x800A01A8)
-
Object required: 'xd.getElementsByTagName(...).item(...)'
-
/projects/soap/soap2.asp, line 58
] -
<%
-
'Below I figure out what the current date is. The NWS SOAP Server wants a from date as xsd date or yyyy-mm-dd.
-
-
datToday = Date()
-
datToday="2008-03-17"
-
'Response.Write datToday
-
'Response.End
-
dateday = Day(datToday)
-
datemonth = Month(datToday)
-
dateyear = Year(datToday)
-
whatdate = dateyear & "-" & datemonth & "-" & dateday
-
-
latitude="38.99"
-
longitude="77.01"
-
numdays="7"
-
-
'Page content set to xml and set to no cache.
-
-
Response.CacheControl = "no-cache"
-
Response.ContentType = "text/xml"
-
-
'Below sets Microsoft xmlhttp object.
-
-
Set ht = Server.CreateObject ("MSXML2.ServerXMLHTTP")
-
-
'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.
-
-
tq = "<?xml version=""1.0"" encoding=""UTF-8"" standalone=""no"" ?>" _
-
& "<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/"">" _
-
& "<SOAP-ENV:Body>" _
-
& "<mns:NDFDgenByDay xmlns:mns=""http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl"" SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"">" _
-
& "<latitude xsi:type=""xsd:decimal"">" & latitude & "</latitude>" _
-
& "<longitude xsi:type=""xsd:decimal"">" & longitude & "</longitude>" _
-
& "<startDate xsi:type=""xsd:date"">" & whatdate & "</startDate>" _
-
& "<numDays xsi:type=""xsd:integer"">" & numdays & "</numDays>" _
-
& "<format xsi:type=""typens:formatType"">12 hourly</format>" _
-
& "</mns:NDFDgenByDay>" _
-
& "</SOAP-ENV:Body>" _
-
& "</SOAP-ENV:Envelope>"
-
-
'Below sends request
-
-
ht.Open "POST", "http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php", false
-
ht.Send tq
-
-
'Below opens the response and seperates out the xml from the SOAP envelope.
-
-
htresult = ht.responsexml.xml
-
-
-
Set xd = Server.CreateObject ("Microsoft.XMLDOM")
-
xd.async = "false"
-
xd.loadXML(htresult)
-
-
'Response.Write htresult
-
'Response.End
-
-
htdude = xd.getElementsByTagName("dwmlByDayOut").item(0).text
-
-
'Code below inserts a link to the xsl style sheet. Modern browsers will do the rest.
-
-
a = htdude
-
pos = Instr(a,">")
-
b = Left(a,pos) & "<?xml-stylesheet type=""text/xsl"" href=""forecast.xsl""?" & Mid(a,pos)
-
Response.Write b
-
-
Set xd = Nothing
-
Set ht = Nothing
-
%>
Please help me.
by,
a2z info
1 3809
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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.
|
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...
|
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.
|
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:...
|
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...
| |
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?
|
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.
|
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?
...
|
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...
|
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,...
|
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...
| |
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...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
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...
| |