troubleshooting Question

Problem with reading an XMLDOMNodeList

Avatar of LJG
LJG asked on
Web Languages and Standards
1 Comment1 Solution550 ViewsLast Modified:
I have a web service that I am sending a request to, and I don't get back a particular error node.  I set a variable (MSXML2.IXMLDOMNodeList)  to the service and move through the list and get all nodes with the exception of the error node.  The owner of the service assures me the service is sending the error node back (they watched as I sent a request).  Is there something that I am missing in reading the XML?
Is there something I can do to get the node?

I am not getting the node at the bottom of the code below.
.... Please provide a valid Pickup Date. ....

(see the last 4 lines of  -- XML doc I should be getting -- below)

Thanks in advance for any help.
LJG
---------------- Here is my basic code ----------------
 
	Dim ElemList  As MSXML2.IXMLDOMNodeList
	Set ElemList = SoapClient.submitPickup(strCredentials, strXML)
	
	Dim SoapClient As MSSOAPLib30.SoapClient30
	Set SoapClient = New MSSOAPLib30.SoapClient30        
    SoapClient.MSSoapInit "http://xxxx/MY.wsdl"
	
	Set ElemList = SoapClient.submitPickup(strCredentials, strXML)	
    For intI = 0 To ElemList.Length - 1
        Debug.Print ElemList.Item(intI).xml        
    Next intI
 
---------------- This is The XML I get ----------------
(note I took out the xsi info below)
<ns2:abcPickupResponse id="ID1" xsi:type="ns2:abcPickupResponse">
    <statusCode>E</statusCode>
    .... an number of nodes  ....
    <confirmationItemDetails/>
</ns2:abcPickupResponse>
 
---------------- This is the XML they assure me they are sending ----------------
<env:Body>
      <ns0:submitPickupResponse>
         <submitPickupResponse href="#ID1"/>
      </ns0:submitPickupResponse>
      <ns2:YRCPickupResponse id="ID1" xsi:type="ns2:YRCPickupResponse">
         <statusCode xsi:type="xsd:string">E</statusCode>         
         .... an number of nodes  ....   
         <confirmationItemDetails xsi:type="ns2:ConfirmationItemDetails" enc:arrayType="ns2:ConfirmationItemDetail[0]" xsi:nil="1"/>
      </ns2:YRCPickupResponse>
      <ns2:StatusMessages id="ID2" xsi:type="enc:Array" enc:arrayType="xsd:string[1]">
         <item xsi:type="xsd:string">Please provide a valid Pickup Date.  Date format: MM/dd/yyyy.</item>
      </ns2:StatusMessages>
</env:Body>
ASKER CERTIFIED SOLUTION
LJG

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros