Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 14th, 2003, 02:01 PM
Registered User
Join Date: Nov 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Soap and xml

  I hope someone can help me with this problem. I am running in circles with it.
 I have an xml document which I am able to pick off the values I want and I want to sent it to another page via soap. I am pretty confident that what I am sending is structure okay.

All well and good.
I am pretty sure it is getting to the receiving page because when I do the following in my page that sends to the receiving page:


But when I change it to and add

    xdDoc = xhHTTP.responseXML;
    var vtest = xdDoc.selectSingleNode("//RECTEST/REASON").text

 and try to pickoff the error code, it blows on the var vtest line of picking off the node to get the error code. And the error message is really useless: "An exception of type MicroSoft Jscript type runtime error Object required was not handled"
   What in the world is happening ??
The values that are being sent over are real number that may have 9 decimal positions. I am lost at what to try next.
I am using xml parser v 3 whihc is necessary because of the cml document being sent to me.

This is the receiving page. Not much to it. I haven't added any processing per say.

<%@Language=VBScript %>

<%Response.ContentType = "text/xml"%>
<%Response.AddHeader "SOAPAction","VResults"

Dim vbNewLine,vdbase,vseps,xclient,sqltext,rsCmd,rsRec
Dim xfname,xlname,xdate,vfname,vlname
Dim vrates(3)

Dim xdRequestXML

Set xdRequestXML = Server.CreateObject("MSXML2.DOMDocument")
xdRequestXML.Load Request

    xclient = xdRequestXML.selectSingleNode"//VRate/Name").text
 vrates(1) = xdRequestXML.selectSingleNode("//VPRate/Rate1").text
 vrates(2) = xdRequestXML.selectSingleNode("//VPRate/Rate2").text
 vrates(3) = xdRequestXML.selectSingleNode("//VPRate/Rate3").text

 on error resume next

  vfname = ""
  vlname = ""

   Response.Write "<RECTEST>" & vbNewLine
   Response.Write "<REASON>FAILED</REASON>" & vbNewLine
   Response.Write "</RECTEST>"

   Why do I keep getting the error ? This is really been confusing me for two days now.

Old November 14th, 2003, 04:37 PM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

When using msxml version 3 use progid "msxml2.domdocument.3.0. Can you show what appears when you alert responseText?


Old November 16th, 2003, 06:40 AM
Registered User
Join Date: Nov 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

I found the problem. I am developing in localhost mode.
It was a security issue pertaining to the folder (on my machine) that contained the xml document. Once I shared my folder it was okay. But on the web server, I did not have to do this and am I ever thankful.
I normally do not develope in localhost mode. I ususlly always have a web developing cpu and I have found somethings are different.
But as long as it processes correctly on the live production server, that's what counts!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Soap Pricing Tool in XML for Beginners wsessoms XML 3 December 9th, 2006 05:33 AM
XML and SOAP paulzazzarino XML 6 August 23rd, 2006 10:58 AM
MS Access SOAP or XML Functionality BrianWren Access 1 May 4th, 2006 06:51 AM
transfer xml file to specified location using soap rjkulkarni2001 .NET Web Services 0 April 4th, 2006 08:13 AM
How to: ASP, XML and SOAP hotfridge XML 0 February 18th, 2004 12:15 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.