<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[WSDL - HTTP Fehler 406 - Verzweifle :(]]></title><description><![CDATA[<p>Hallo zusammen!</p>
<p>Ich möchte mir für den WebService FootieFox einen eigenen Client bauen ...</p>
<p>Die WSDL datei liegt hier:</p>
<p><a href="http://www9.hpi-web.de/footiefox/service.wsdl" rel="nofollow">http://www9.hpi-web.de/footiefox/service.wsdl</a></p>
<p>Die WSDL habe ich bereits importiert!</p>
<p>Wenn ich jedoch irgendeine Methode aufrufe, bekomme ich eine exception mit dem HTTP Fehler 406 ...</p>
<p><a href="http://pmneo.de/exception.PNG" rel="nofollow">http://pmneo.de/exception.PNG</a></p>
<p>Ich Programmiere eigentlich C++ (Borland C++), habs jetzt aber auch mal auf Delphi 7 Probiert, jedoch bei beiden der selbe Fehler ...</p>
<p>Wäre für eure Hilfe SUUUUUPER Dankbar!!</p>
<p>DANKE!</p>
<p>Hier der Aufruf:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
        _di_FootiefoxFootiefoxPort ffp;

        ffp = GetFootiefoxFootiefoxPort(true);

        ffp-&gt;Login();

        TIntegerDynArray updateLeagues;

        updateLeagues.set_length(1);
        updateLeagues.operator [](0) = 4000;

        MatchDiffWSArray leagues = ffp-&gt;UpdateLeagues(updateLeagues);

        for (int i = 0; i &lt; leagues.Length; i++)
        {
                ShowMessage(leagues.operator [](i)-&gt;matchId);
        }

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/150908/wsdl-http-fehler-406-verzweifle</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 16:01:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/150908.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Jun 2006 11:22:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WSDL - HTTP Fehler 406 - Verzweifle :( on Wed, 21 Jun 2006 11:22:54 GMT]]></title><description><![CDATA[<p>Hallo zusammen!</p>
<p>Ich möchte mir für den WebService FootieFox einen eigenen Client bauen ...</p>
<p>Die WSDL datei liegt hier:</p>
<p><a href="http://www9.hpi-web.de/footiefox/service.wsdl" rel="nofollow">http://www9.hpi-web.de/footiefox/service.wsdl</a></p>
<p>Die WSDL habe ich bereits importiert!</p>
<p>Wenn ich jedoch irgendeine Methode aufrufe, bekomme ich eine exception mit dem HTTP Fehler 406 ...</p>
<p><a href="http://pmneo.de/exception.PNG" rel="nofollow">http://pmneo.de/exception.PNG</a></p>
<p>Ich Programmiere eigentlich C++ (Borland C++), habs jetzt aber auch mal auf Delphi 7 Probiert, jedoch bei beiden der selbe Fehler ...</p>
<p>Wäre für eure Hilfe SUUUUUPER Dankbar!!</p>
<p>DANKE!</p>
<p>Hier der Aufruf:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
        _di_FootiefoxFootiefoxPort ffp;

        ffp = GetFootiefoxFootiefoxPort(true);

        ffp-&gt;Login();

        TIntegerDynArray updateLeagues;

        updateLeagues.set_length(1);
        updateLeagues.operator [](0) = 4000;

        MatchDiffWSArray leagues = ffp-&gt;UpdateLeagues(updateLeagues);

        for (int i = 0; i &lt; leagues.Length; i++)
        {
                ShowMessage(leagues.operator [](i)-&gt;matchId);
        }

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1082002</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1082002</guid><dc:creator><![CDATA[pmneo]]></dc:creator><pubDate>Wed, 21 Jun 2006 11:22:54 GMT</pubDate></item><item><title><![CDATA[Reply to WSDL - HTTP Fehler 406 - Verzweifle :( on Wed, 21 Jun 2006 11:33:42 GMT]]></title><description><![CDATA[<p>Die Funktionen scheinen die angegebene URL nicht zu akzeptieren.<br />
Was soll eigentlich dieses operator[]()-Gewurschtel. Schreib da doch z.Bsp. einfach leagues[i]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1082009</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1082009</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 21 Jun 2006 11:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to WSDL - HTTP Fehler 406 - Verzweifle :( on Wed, 21 Jun 2006 11:46:53 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Komischerweise funktioniert [] nicht immer ...</p>
<p>Wie meinst du er akzeptiert die Url nicht?</p>
<p>Hier mal die service.cpp</p>
<pre><code class="language-cpp">// ************************************************************************ //
// Die in dieser Datei deklarierten Typen wurden aus Daten generiert, die aus 
// unten beschriebener WSDL-Datei stammen:
// WSDL     : C:\Dokumente und Einstellungen\admmairph\Desktop\footiefox\service.wsdl
// Codieren : UTF-8
// Codegen  : [wfDebug,wfVerbose,wfSkipHttpBindings,wfSkipUnusedTypes]
// Version  : 1.0
// (21.06.2006 12:14:35 - $Revision:   1.0.1.0.1.82  $)
// ************************************************************************ //

#include &lt;vcl.h&gt;
#pragma hdrstop

#if !defined(serviceH)
#include &quot;service.h&quot;
#endif

namespace NS_service {

_di_FootiefoxFootiefoxPort GetFootiefoxFootiefoxPort(bool useWSDL, AnsiString addr)
{
  static const char* defWSDL= &quot;service.wsdl&quot;;
  static const char* defURL = &quot;http://www9.hpi.uni-potsdam.de/&quot;;
  static const char* defSvc = &quot;FootiefoxService&quot;;
  static const char* defPrt = &quot;FootiefoxFootiefoxPort&quot;;
  if (addr==&quot;&quot;)
    addr = useWSDL ? defWSDL : defURL;

  THTTPRIO* rio = new THTTPRIO(0);

  rio-&gt;HTTPWebNode-&gt;UseUTF8InHeader = true;
  rio-&gt;HTTPWebNode-&gt;Agent = &quot;Firefox/1.5.0.4&quot;;

  if (useWSDL) {
    rio-&gt;WSDLLocation = addr;
    rio-&gt;Service = defSvc;
    rio-&gt;Port = defPrt;
  } else {
    rio-&gt;URL = addr;
  }
  _di_FootiefoxFootiefoxPort service;

  rio-&gt;QueryInterface(service);
  if (!service)
    delete rio;
  return service;
}

__fastcall MessageWS::~MessageWS()
{
  delete Ftime;
}

__fastcall MatchWS::~MatchWS()
{
  delete FstartTime;
}

__fastcall LeagueWS::~LeagueWS()
{
  delete Ftimestamp;
  for(int i=0; i&lt;Fmatches.Length; i++)
    if (Fmatches[i])
      delete Fmatches[i];
}

__fastcall LoginPackageWS::~LoginPackageWS()
{
  delete FteamsListTimestamp;
  delete FleaguesListTimestamp;
  for(int i=0; i&lt;Fmessages.Length; i++)
    if (Fmessages[i])
      delete Fmessages[i];
  for(int i=0; i&lt;Fleagues.Length; i++)
    if (Fleagues[i])
      delete Fleagues[i];
}

// ************************************************************************ //
// Diese Routine registriert die Interfaces und Typen, die vom
// SOAP-Service aufgerufen werden.
// ************************************************************************ //
static void RegTypes()
{
  /* FootiefoxFootiefoxPort */
  InvRegistry()-&gt;RegisterInterface(__interfaceTypeinfo(FootiefoxFootiefoxPort), L&quot;urn:ActionWebService&quot;, L&quot;UTF-8&quot;);
  InvRegistry()-&gt;RegisterDefaultSOAPAction(__interfaceTypeinfo(FootiefoxFootiefoxPort), L&quot;/footiefox/api/%operationName%&quot;);
  RemClassRegistry()-&gt;RegisterXSInfo(__arrayTypeinfo(DateTimeArray), L&quot;urn:ActionWebService&quot;, L&quot;DateTimeArray&quot;);
  /* MessageWS */
  RemClassRegistry()-&gt;RegisterXSClass(__classid(MessageWS), L&quot;urn:ActionWebService&quot;, L&quot;MessageWS&quot;);
  RemClassRegistry()-&gt;RegisterXSInfo(__arrayTypeinfo(MessageWSArray), L&quot;urn:ActionWebService&quot;, L&quot;MessageWSArray&quot;);
  /* MatchWS */
  RemClassRegistry()-&gt;RegisterXSClass(__classid(MatchWS), L&quot;urn:ActionWebService&quot;, L&quot;MatchWS&quot;);
  /* MatchDiffWS */
  RemClassRegistry()-&gt;RegisterXSClass(__classid(MatchDiffWS), L&quot;urn:ActionWebService&quot;, L&quot;MatchDiffWS&quot;);
  RemClassRegistry()-&gt;RegisterXSInfo(__arrayTypeinfo(MatchDiffWSArray), L&quot;urn:ActionWebService&quot;, L&quot;MatchDiffWSArray&quot;);
  RemClassRegistry()-&gt;RegisterXSInfo(__arrayTypeinfo(IntegerArray), L&quot;urn:ActionWebService&quot;, L&quot;IntegerArray&quot;);
  RemClassRegistry()-&gt;RegisterXSInfo(__arrayTypeinfo(MatchWSArray), L&quot;urn:ActionWebService&quot;, L&quot;MatchWSArray&quot;);
  /* LeagueWS */
  RemClassRegistry()-&gt;RegisterXSClass(__classid(LeagueWS), L&quot;urn:ActionWebService&quot;, L&quot;LeagueWS&quot;);
  RemClassRegistry()-&gt;RegisterXSInfo(__arrayTypeinfo(LeagueWSArray), L&quot;urn:ActionWebService&quot;, L&quot;LeagueWSArray&quot;);
  /* LoginPackageWS */
  RemClassRegistry()-&gt;RegisterXSClass(__classid(LoginPackageWS), L&quot;urn:ActionWebService&quot;, L&quot;LoginPackageWS&quot;);
}
#pragma startup RegTypes 32

};     // NS_service
</code></pre>
<p>und hier die service.h</p>
<pre><code class="language-cpp">// ************************************************************************ //
// Die in dieser Datei deklarierten Typen wurden aus Daten generiert, die aus 
// unten beschriebener WSDL-Datei stammen:
// WSDL     : C:\Dokumente und Einstellungen\admmairph\Desktop\footiefox\service.wsdl
// Codieren : UTF-8
// Codegen  : [wfDebug,wfVerbose,wfSkipHttpBindings,wfSkipUnusedTypes]
// Version  : 1.0
// (21.06.2006 12:14:35 - $Revision:   1.0.1.0.1.82  $)
// ************************************************************************ //

#ifndef   serviceH
#define   serviceH

#include &lt;System.hpp&gt;
#include &lt;InvokeRegistry.hpp&gt;
#include &lt;XSBuiltIns.hpp&gt;
#include &lt;SoapHTTPClient.hpp&gt;

namespace NS_service {

class  MessageWS;
class  MatchWS;
class  MatchDiffWS;
class  LeagueWS;
class  LoginPackageWS;

typedef DynamicArray&lt;TXSDateTime*&gt; DateTimeArray;  

// ************************************************************************ //
// Namespace : urn:ActionWebService
// ************************************************************************ //
class MessageWS : public TRemotable {
private:
  TXSDateTime*    Ftime;
  AnsiString      Flinkurl;
  AnsiString      Flinktext;
  AnsiString      Furl;
public:
  __fastcall ~MessageWS();
__published:
  __property TXSDateTime*       time = { read=Ftime, write=Ftime };
  __property AnsiString    linkurl = { read=Flinkurl, write=Flinkurl };
  __property AnsiString   linktext = { read=Flinktext, write=Flinktext };
  __property AnsiString        url = { read=Furl, write=Furl };
};

typedef DynamicArray&lt;MessageWS*&gt;  MessageWSArray; 

// ************************************************************************ //
// Namespace : urn:ActionWebService
// ************************************************************************ //
class MatchWS : public TRemotable {
private:
  AnsiString      Fteam1Title;
  AnsiString      Fstatus;
  int             Fteam2Score;
  int             Fteam1Score;
  int             FmatchID;
  TXSDateTime*    FstartTime;
  int             Fteam2Id;
  int             Fteam1Id;
  AnsiString      Furl;
  AnsiString      Fteam2Title;
public:
  __fastcall ~MatchWS();
__published:
  __property AnsiString team1Title = { read=Fteam1Title, write=Fteam1Title };
  __property AnsiString     status = { read=Fstatus, write=Fstatus };
  __property int        team2Score = { read=Fteam2Score, write=Fteam2Score };
  __property int        team1Score = { read=Fteam1Score, write=Fteam1Score };
  __property int           matchID = { read=FmatchID, write=FmatchID };
  __property TXSDateTime*  startTime = { read=FstartTime, write=FstartTime };
  __property int           team2Id = { read=Fteam2Id, write=Fteam2Id };
  __property int           team1Id = { read=Fteam1Id, write=Fteam1Id };
  __property AnsiString        url = { read=Furl, write=Furl };
  __property AnsiString team2Title = { read=Fteam2Title, write=Fteam2Title };
};

// ************************************************************************ //
// Namespace : urn:ActionWebService
// ************************************************************************ //
class MatchDiffWS : public TRemotable {
private:
  AnsiString      Fstatus;
  int             Fteam2Score;
  int             Fteam1Score;
  int             FmatchId;
public:
__published:
  __property AnsiString     status = { read=Fstatus, write=Fstatus };
  __property int        team2Score = { read=Fteam2Score, write=Fteam2Score };
  __property int        team1Score = { read=Fteam1Score, write=Fteam1Score };
  __property int           matchId = { read=FmatchId, write=FmatchId };
};

typedef DynamicArray&lt;MatchDiffWS*&gt; MatchDiffWSArray; 
typedef DynamicArray&lt;int&gt;         IntegerArray;   
typedef DynamicArray&lt;MatchWS*&gt;    MatchWSArray;   

// ************************************************************************ //
// Namespace : urn:ActionWebService
// ************************************************************************ //
class LeagueWS : public TRemotable {
private:
  TXSDateTime*    Ftimestamp;
  int             FleagueID;
  MatchWSArray    Fmatches;
public:
  __fastcall ~LeagueWS();
__published:
  __property TXSDateTime*  timestamp = { read=Ftimestamp, write=Ftimestamp };
  __property int          leagueID = { read=FleagueID, write=FleagueID };
  __property MatchWSArray    matches = { read=Fmatches, write=Fmatches };
};

typedef DynamicArray&lt;LeagueWS*&gt;   LeagueWSArray;  

// ************************************************************************ //
// Namespace : urn:ActionWebService
// ************************************************************************ //
class LoginPackageWS : public TRemotable {
private:
  MessageWSArray  Fmessages;
  int             FupdateInterval;
  TXSDateTime*    FteamsListTimestamp;
  TXSDateTime*    FleaguesListTimestamp;
  LeagueWSArray   Fleagues;
public:
  __fastcall ~LoginPackageWS();
__published:
  __property MessageWSArray   messages = { read=Fmessages, write=Fmessages };
  __property int        updateInterval = { read=FupdateInterval, write=FupdateInterval };
  __property TXSDateTime* teamsListTimestamp = { read=FteamsListTimestamp, write=FteamsListTimestamp };
  __property TXSDateTime* leaguesListTimestamp = { read=FleaguesListTimestamp, write=FleaguesListTimestamp };
  __property LeagueWSArray    leagues = { read=Fleagues, write=Fleagues };
};

// ************************************************************************ //
// Namespace : urn:ActionWebService
// soapAction: /footiefox/api/%operationName%
// Transport : http://schemas.xmlsoap.org/soap/http
// Stil     : rpc
// binding   : FootiefoxFootiefoxBinding
// Service   : FootiefoxService
// Port      : FootiefoxFootiefoxPort
// URL       : http://www9.hpi-web.de/footiefox/api
// ************************************************************************ //
__interface INTERFACE_UUID(&quot;{B6E89CC8-2B4F-9680-F5C4-3B20AF93DA72}&quot;) FootiefoxFootiefoxPort : public IInvokable
{
public:
  virtual bool            Login() = 0; 
  virtual MatchDiffWSArray WhatsOnUpdate(const IntegerArray param0) = 0; 
  virtual AnsiString      GetAd() = 0;
  virtual DateTimeArray   LeaguesLastTimestamp(const IntegerArray param0) = 0; 
  virtual LoginPackageWS* WhatsOn(const IntegerArray param0, const IntegerArray param1) = 0; 
  virtual MatchDiffWSArray UpdateLeagues(const IntegerArray param0) = 0; 
  virtual TXSDateTime*    AdLastModified() = 0; 
};
typedef DelphiInterface&lt;FootiefoxFootiefoxPort&gt; _di_FootiefoxFootiefoxPort;

_di_FootiefoxFootiefoxPort GetFootiefoxFootiefoxPort(bool useWSDL=false, AnsiString addr=&quot;&quot;);

#endif // __service_h__

};     // NS_service

#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using  namespace NS_service;
#endif
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1082019</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1082019</guid><dc:creator><![CDATA[pmneo]]></dc:creator><pubDate>Wed, 21 Jun 2006 11:46:53 GMT</pubDate></item></channel></rss>