Autor Beitrag
melanie75
Hält's aus hier
Beiträge: 4



BeitragVerfasst: Mo 24.09.07 11:26 
Hallo,
Ich möchte in c# auf den Webservice eines TOMCAT zugreifen. Die URL ist bekannt (localhost:8083/SOAP/soaprouter)
es kommt eine Meldung "Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me."
Dies ist klar.
wie kann ich in c# diesen service ansprechen? brauche ich einen Proxy?

in LUA funktioniert der Aufruf folgendermaßen
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
function postrq(url, rqfile)
    local rsp, errortxt
    xmlhttp:open("POST",url, false)
    xmlhttp:setRequestHeader("Content-Type","text/xml")
    luacom.config.last_error = nil
    xmlhttp:send(io.open(rqfile, "r"):read("*all"))
    errortxt = luacom.config.last_error
    return xmlhttp.responseXML.xml, errortxt
end


vielen Dank schon mal
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Sa 29.09.07 16:40 
Das sollte eigentlich über die HttpRequest-Klasse gehen. Falls ich Dein Problem richtig verstanden habe ;-)

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
sharpx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 51



BeitragVerfasst: So 04.01.09 15:12 
Warum nimmst du nicht einfach ein Socket verbindet dich damit auf Port 8080 zu dem Server.
I.d.r sowas wie:

POST /path/datei.php HTTP/1.1
Host: yourhost
...
...