Autor Beitrag
Boller
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Do 30.08.07 16:01 
die unten eingetragenen Proxy Einstellungen funktionieren leider nicht.

Könnte jemand da helfen?

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
function Getxxx(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): xxx;
const
  defWSDL = 'https://xxx?wsdl';
  defURL  = 'https://xxx';
  defSvc  = 'xxxService';
  defPrt  = 'xxxPort';
var
  RIO: THTTPRIO;
begin
  Result := nil;
  if (Addr = ''then
  begin
    if UseWSDL then
      Addr := defWSDL
    else
      Addr := defURL;
  end;
  if HTTPRIO = nil then
    RIO := THTTPRIO.Create(nil)
  else
    RIO := HTTPRIO;
  try
    Result := (RIO as xxx);
      RIO.HTTPWebNode.UserName:='xxx';
      RIO.HTTPWebNode.Password:='xxx';
      RIO.HTTPWebNode.ProxybyPass:='111.111.111.111:8080';

    if UseWSDL then
    begin
      RIO.WSDLLocation := Addr;
      RIO.Service := defSvc;
      RIO.Port := defPrt;
    end else
      RIO.URL := Addr;

  finally
    if (Result = niland (HTTPRIO = nilthen
      RIO.Free;
  end;
end;


Moderiert von user profile iconmatze: Delphi-Tags hinzugefügt
Boller Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Di 04.09.07 09:09 
wie oben im ersten Beispiel beschrieben klappt das so gar nicht!

habe den Proxy in der If UseWSDL then eingebaut

rio.httpwebnode.proxy:=145.254.11.88
rio.httpwebnode.user:= beinhaltet ein % Zeichen - evtl gibt es dort Probleme
rio.httpwebnode.password:= keine Besonderheiten

Nach dem Aufruf von getwsdl(true) dauert es eine Weile und dann bekomme ich diese Fehlermeldung.

"Leeres Dokument gefunden."


Anders sieht es beim Aufruf von getwsdl(false) aus.

Es erscheint dann erstmal die Einwahlmaske des Proxies und danach erhalte ich die Connection.

Habe auch schon gegoogelt ohne Erfolg.
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Di 04.09.07 09:26 
Wenn du vermutest, dass das % im Usernamen ein Problem darstellt... hast dus mal mit nem andern User versucht, der keine Sonderzeichen enthält?

_________________
Bravery calls my name in the sound of the wind in the night...