[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: XML parse failed
Hi Griz,
Your soap Body element opens with a namespace defined as soap-ENV but closes
with a namespace of soap. I would imagine that the parser would consider
that a mismatch.
Try changing:
Soap =
'<?xml version="1.0" encoding="utf-8"?> '
+'<soap:Envelope'
+ 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '
+ 'xmlns:xsd="http://www.w3.org/2001/XMLSchema" '
+ 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> '
+'<soap-ENV:Body> '
+'<GetInfoByZIP xmlns="http://www.webserviceX.NET"> '
+'<USZip>' +%Trim(InZipCode) +'</USZip> '
+'</GetInfoByZIP>'
+'</soap:Body> '
+'</soap:Envelope>';
To:
Soap =
'<?xml version="1.0" encoding="utf-8"?> '
+'<soap:Envelope'
+ 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '
+ 'xmlns:xsd="http://www.w3.org/2001/XMLSchema" '
+ 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> '
+'<soap:Body> '
+'<GetInfoByZIP xmlns="http://www.webserviceX.NET"> '
+'<USZip>' +%Trim(InZipCode) +'</USZip> '
+'</GetInfoByZIP>'
+'</soap:Body> '
+'</soap:Envelope>';
The difference is on line 6 - <soap-ENV:Body> changed to <soap:Body>
Cheers
Larry Ducie
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------