Possible? asp.net <--> xml <--> php

H

Haffe

I'm trying to get something back from a server. The communication
between is XML.
But I can't make it work.

My asp.net code (doesn't work!):

Dim requestText, serverResponseText As String

Dim xmlServerHttp As New MSXML2.XMLHTTPClass

// makes the xml:
requestText = functionToXML(methodName, paramList)

TextBox1.Text = requestText

xmlServerHttp.open("POST",
"https://secure1.revilution.dk/api/index.php", False)
xmlServerHttp.send(requestText)

The xml is valid.

it works fine with asp but not asp.net...

Code in asp (works fine):

Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")

requestText = functionToXML(methodName,paramList)

' Call the remote machine the request
objXML.open "POST",
"https://secure1.revilution.dk/api/index.php", false

' This is necessary for some implementations (ZOPE).
objXML.setRequestHeader "Content-type", "text/xml"
objXML.setRequestHeader "Content-lenght", len(requestText)
objXML.setRequestHeader "Connection", "close"
objXML.send(requestText)
serverResponseText = objXML.responseText

Haffe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top