Click here to Skip to main content
15,887,214 members
Home / Discussions / Web Development
   

Web Development

 
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 
Questiondisplay the time according the clien time zone asp.net Pin
Anil Sharma19831-Feb-16 20:19
professionalAnil Sharma19831-Feb-16 20:19 
AnswerRe: display the time according the clien time zone asp.net Pin
Richard MacCutchan1-Feb-16 21:54
mveRichard MacCutchan1-Feb-16 21:54 
AnswerRe: display the time according the clien time zone asp.net Pin
Eddy Vluggen2-Feb-16 12:19
professionalEddy Vluggen2-Feb-16 12:19 
Questionweb development Pin
Member 1229196627-Jan-16 18:23
Member 1229196627-Jan-16 18:23 
AnswerRe: web development Pin
Eddy Vluggen2-Feb-16 12:17
professionalEddy Vluggen2-Feb-16 12:17 
AnswerRe: web development Pin
Tomas Linkinsen7-Feb-16 12:36
Tomas Linkinsen7-Feb-16 12:36 
QuestionWebsite permalink Url Problem Pin
mantihinto26-Jan-16 20:01
mantihinto26-Jan-16 20:01 
SuggestionRe: Website permalink Url Problem Pin
Richard Deeming27-Jan-16 1:56
mveRichard Deeming27-Jan-16 1:56 
AnswerRe: Website permalink Url Problem Pin
F-ES Sitecore27-Jan-16 4:10
professionalF-ES Sitecore27-Jan-16 4:10 
QuestionWeb API needed or not?! Pin
Amr.Mohammad8721-Jan-16 22:38
Amr.Mohammad8721-Jan-16 22:38 
AnswerRe: Web API needed or not?! Pin
F-ES Sitecore22-Jan-16 0:49
professionalF-ES Sitecore22-Jan-16 0:49 

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.