Click here to Skip to main content
15,901,761 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Using a spinner on a input file element Pin
jkirkerx18-Feb-16 4:04
professionaljkirkerx18-Feb-16 4:04 
GeneralRe: Using a spinner on a input file element Pin
jkirkerx18-Feb-16 4:16
professionaljkirkerx18-Feb-16 4:16 
AnswerRe: Using a spinner on a input file element Pin
Brisingr Aerowing26-Feb-16 17:57
professionalBrisingr Aerowing26-Feb-16 17:57 
GeneralRe: Using a spinner on a input file element Pin
jkirkerx27-Feb-16 13:08
professionaljkirkerx27-Feb-16 13:08 
GeneralRe: Using a spinner on a input file element Pin
Brisingr Aerowing27-Feb-16 15:13
professionalBrisingr Aerowing27-Feb-16 15:13 
GeneralRe: Using a spinner on a input file element Pin
jkirkerx28-Feb-16 8:09
professionaljkirkerx28-Feb-16 8:09 
QuestionThwarting CTRL-A Copies Pin
C-P-User-316-Feb-16 7:10
C-P-User-316-Feb-16 7:10 
AnswerRe: Thwarting CTRL-A Copies PinPopular
Richard Deeming16-Feb-16 7:53
mveRichard Deeming16-Feb-16 7:53 
GeneralRe: Thwarting CTRL-A Copies Pin
C-P-User-316-Feb-16 7:57
C-P-User-316-Feb-16 7:57 
GeneralRe: Thwarting CTRL-A Copies Pin
Richard Deeming16-Feb-16 8:02
mveRichard Deeming16-Feb-16 8:02 
GeneralRe: Thwarting CTRL-A Copies Pin
C-P-User-316-Feb-16 8:03
C-P-User-316-Feb-16 8:03 
GeneralRe: Thwarting CTRL-A Copies Pin
Richard Deeming16-Feb-16 8:05
mveRichard Deeming16-Feb-16 8:05 
GeneralRe: Thwarting CTRL-A Copies Pin
C-P-User-316-Feb-16 8:09
C-P-User-316-Feb-16 8:09 
GeneralRe: Thwarting CTRL-A Copies Pin
C-P-User-316-Feb-16 8:13
C-P-User-316-Feb-16 8:13 
GeneralRe: Thwarting CTRL-A Copies Pin
C-P-User-316-Feb-16 9:56
C-P-User-316-Feb-16 9:56 
QuestionTo Everyone Pin
mharie14-Feb-16 2:17
mharie14-Feb-16 2:17 
AnswerRe: To Everyone Pin
Richard MacCutchan14-Feb-16 2:38
mveRichard MacCutchan14-Feb-16 2:38 
QuestionHow to call webservice using WSDl file ? Pin
HarshadDarji1913-Feb-16 23:58
HarshadDarji1913-Feb-16 23:58 
QuestionClassic asp Soap response with xml and attachment Pin
uglyeyes11-Feb-16 0:50
uglyeyes11-Feb-16 0:50 
Hi,
The soap request is sent using

set objReturn = Server.CreateObject("Msxml2.DOMDocument")
set objHTTP = server.CreateObject("Msxml2.ServerXMLHTTP")
objHTTP.setTimeouts lResolve, lConnect, lSend, lReceive
objHTTP.open "POST", strURL, False
on error resume next
objHTTP.setRequestHeader "Content-Type", "text/xml; charset=UTF-8"
objHTTP.setRequestHeader "Content-Disposition", "attachment;filename=""PDFTEST.pdf"""
objHTTP.send strXML

The response I get is per below in binary
------=_Part_97_1242713853.1455190897041
Content-Type: text/xml; charset=utf-8
HTML
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body>
****XML related document****
</SOAP-ENV:Body></SOAP-ENV:Envelope>
------=_Part_97_1242713853.1455190897041
Content-Type: application/pdf
****PDF related document****

I could output into text using below function

Binary to String function
Function BinaryToString(Binary)
Dim I, S
For I = 1 To LenB(Binary)
S = S & Chr(AscB(MidB(Binary, I, 1)))
Next
BinaryToString = S
End Function

The request
Attachment is read like below:
'--- attachments ---'
'Create Datastream object to save the file
set DataStream = CreateObject("ADODB.Stream")
'Open Datastream
DataStream.Open
'Set type to binary
DataStream.Type = 1
'Create bianry datastream of the file
DataStream.Write objHTTP.ResponseBody 'strReturnfile

DataStream.Position = 0
'Set the File System Object, so we can check to see if it already exists.
set FSO = Createobject("Scripting.FileSystemObject")
'If the file already exists, delete it
if FSO.FileExists(SaveAsFile) then
Fso.DeleteFile SaveAsFile
End If
set FSO = Nothing
'Write the file to the location on the server
DataStream.SaveToFile SaveAsFile
'Close Datastream
DataStream.Close
'Delete Datastream object
set DataStream = Nothing
'--- attachments end---'
Now my problem is I need to just read XML using loadXML()
Can anyone please help as I have spent few days and really lost.

Thanks
AnswerRe: Classic asp Soap response with xml and attachment Pin
uglyeyes11-Feb-16 17:22
uglyeyes11-Feb-16 17:22 
GeneralRe: Classic asp Soap response with xml and attachment Pin
uglyeyes14-Feb-16 11:30
uglyeyes14-Feb-16 11:30 
QuestionERROR: Password not accepted from server Pin
Jassim Rahma10-Feb-16 22:53
Jassim Rahma10-Feb-16 22:53 
SuggestionRe: ERROR: Password not accepted from server Pin
Richard Deeming11-Feb-16 0:49
mveRichard Deeming11-Feb-16 0:49 
AnswerRe: ERROR: Password not accepted from server Pin
Richard MacCutchan11-Feb-16 1:41
mveRichard MacCutchan11-Feb-16 1:41 
QuestionMessage Removed Pin
3-Feb-16 19:24
Member 123065763-Feb-16 19:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.