Ankündigung

Einklappen
Keine Ankündigung bisher.

In Xampp PHP-Version aktualisieren

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • In Xampp PHP-Version aktualisieren

    Hallo!

    Ich arbeite noch nicht so lange mit PHP und habe immer Xampp 1.4.13 benutzt (Standardinstallation) (Windows , PHP 5.0.4)

    Zur Zeit arbeite ich an einem Projekt, in dem es um Web Services, speziell WSRP geht. Dazu muss man SOAP nutzen. Dieses hat bei mir auch einwandfrei funktioniert. Jetzt kurz vor der Abgabe des Projektes bekomme ich immer einen Fehler mit der Meldung: "Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: union has both 'memberTypes' attribute and subtypes in" +dateiname

    Also wie gesagt, dass Skript hat bis vor zwei Wochen einwandfrei funktioniert.

    Zu dem Fehler habe ich folgenden Bug-Report gefunden: http://bugs.php.net/bug.php?id=34453

    Die Frage ist jetzt, was kann ich tuen? Wie kann ich den Snapshot bei mir einbauen? Kann ich die PHP-Version von Xampp aktualisieren??

    Danke

    Dominik

  • #2
    Da fragst du am besten im Xampp Forum.
    (Ich weiß, blöde Antwort )

    Kommentar


    • #3
      Ich poste das Skript mal hier herein.

      Vielleicht hat jemand eine PHP-Version, bei der dieses funktioniert und kann mir helfen.

      Wie gesagt, dass Skript hat bis vor ungefähr 14 Tagen funktioniert!

      Ergebnis sollte sein: Es wird von Oracle ein Portlet mit Lotto-Zahlen angezeigt.


      PHP-Code:
      <?php

      $wsdl_url 
      'http://portalstandards.oracle.com/wsrp/jaxrpc?WSDL';
          
      $registration_url $wsdl_url;
              
      $description_url $wsdl_url;
              
      $markup_url $wsdl_url
              
      // create the clients
              
      $registration_service = new SoapClient($registration_url
                  
      );

              
      $description_service = new SoapClient($description_url,
                  array(
      'trace' => 1)
                  );

              
      $markup_service = new SoapClient($markup_url,
                  array(
      'trace' => 1)
                  );

              try {
                  
      // register the consumer
                  
      $RegistrationData =
                  array(
      "consumerName" => "test",
                      
      "consumerAgent" => "test.1.0",
                      
      "methodGetSupported" => false,
                      );

                  
      $RegistrationContext $registration_service->register($RegistrationData);

                  
      $getMarkup = array ("registrationContext" => array ("registrationHandle" => $RegistrationContext->registrationHandle
                          
      ),
                      
      "portletContext" => array ("portletHandle" => "E:1:default"// "E:5:default"
                          
      ),
                      
      "runtimeContext" => array ("userAuthentication" => "wsrp:none",
                          ),
                      
      "userContext" => array ("userContextKey" => "php",
                          ),
                      
      "markupParams" => array ("secureClientCommunication" => "false",
                          
      "locales" => "en",
                          
      "mimeTypes" => "text/html",
                          
      "mode" => "wsrp:view",
                          
      "windowState" => "wsrp:normal",
                          )
                      );
              
      //getMarkup
                  
      $MarkupResponse $markup_service->getMarkup($getMarkup);
                  echo 
      $MarkupResponse->markupContext->markupString;
              } 
              catch (
      Exception $e) {
                  
      $html $html "[b]Error:[/b]
      "
      ;
                  
      $html $html $e;
                  
      $html $html "<hr>";
                  
      var_dump ($e);
              } 
           

      ?>

      Kommentar

      Lädt...
      X