Failed to load external entity

Nirali Joshi

I am trying to integrate fedex API and getting this error .

Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning : failed to load external entity "../wsdl/RateService_v13.wsdl" in test.php on line 12

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from '../wsdl/RateService_v13.wsdl' in D:\wamp\www\fedexapi\AddressValidationService_v4_php\php\AddressValidationWebServiceClient\rate_test.php:12 Stack trace: #0 D:\wamp\www\fedexapi\AddressValidationService_v4_php\php\AddressValidationWebServiceClient\rate_test.php(12): SoapClient->SoapClient('../wsdl/RateSer...', Array) #1 {main} thrown in test.php on line 12

<?php
// Copyright 2009, FedEx Corporation. All rights reserved.
// Version 2.0.0

require_once('../library/fedex-common.php5');

//The WSDL is not included with the sample code.
//Please include and reference in $path_to_wsdl variable.
$path_to_wsdl = "../wsdl/LocationsService_v3.wsdl";

ini_set("soap.wsdl_cache_enabled", "0");

$client = new SoapClient($path_to_wsdl, array('trace' => 1)); // Refer to http://us3.php.net/manual/en/ref.soap.php for more information

$request['WebAuthenticationDetail'] = array(
        'ParentCredential' => array(
            'Key' => getProperty('parentkey'),
            'Password' => getProperty('parentpassword')
        ),
        'UserCredential' => array(
            'Key' => getProperty('key'), 
            'Password' => getProperty('password')
    )
);

?>

How to solve this ?

cb0

Afaik the SoapClient first aprameter need to be an URI, not a local filename on your disk.

The error indicated that it was unable to load the wsdl. Have a look at the specs and this expample should make it clear.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

R readHTMLTable failed to load external entity

From Dev

Joomla : XML: failed to load external entity

From Dev

Failed to load external entity on simplexml_load_file at Openstreetmap

From Dev

How to remove I/O warning failed to load external entity

From Dev

How to prevent LXML error 'failed to load external entity'

From Dev

lxml.html. Error reading file; Failed to load external entity

From Dev

SoapClient could not load external entity

From Dev

jquery .load() external content failed in modal

From Dev

Gedit external tools plugin failed to load

From Dev

backbone jsffidle failed to load external resource

From Dev

Failed to load Hive External table from flat file in GCS environment

From Dev

simplexml_load_file: Unable to load external entity (called for local path)

From Dev

How to load related entity of external data source in Lightswitch (Visual Studio 2013)

From Dev

DOMDocument->load external entity fail for local file with PHP-FPM

From Dev

GCP external http load balancer 502 server error:"failed_to_connect_to_backend"

From Dev

Error : Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)

From Dev

Failed to load resource: the server responded with a status of 422 (unprocessable entity) in reactjs with python api

From Dev

DDD external entity reference

From Dev

load external page in appFramework

From

Load external CSS into component

From Dev

LitElement load external script

From Java

SpringBoot external jar not load

From Dev

Unable to Load an external Swf

From Dev

Entity Framework load relation

From Dev

Programmatically load Entity in symfony

From Java

Spring: Failed to load ApplicationContext

From Dev

Failed to load ApplicationContext exception

From Dev

NUnit failed to load DLL

From Dev

Failed to load .js resource

Related Related

  1. 1

    R readHTMLTable failed to load external entity

  2. 2

    Joomla : XML: failed to load external entity

  3. 3

    Failed to load external entity on simplexml_load_file at Openstreetmap

  4. 4

    How to remove I/O warning failed to load external entity

  5. 5

    How to prevent LXML error 'failed to load external entity'

  6. 6

    lxml.html. Error reading file; Failed to load external entity

  7. 7

    SoapClient could not load external entity

  8. 8

    jquery .load() external content failed in modal

  9. 9

    Gedit external tools plugin failed to load

  10. 10

    backbone jsffidle failed to load external resource

  11. 11

    Failed to load Hive External table from flat file in GCS environment

  12. 12

    simplexml_load_file: Unable to load external entity (called for local path)

  13. 13

    How to load related entity of external data source in Lightswitch (Visual Studio 2013)

  14. 14

    DOMDocument->load external entity fail for local file with PHP-FPM

  15. 15

    GCP external http load balancer 502 server error:"failed_to_connect_to_backend"

  16. 16

    Error : Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)

  17. 17

    Failed to load resource: the server responded with a status of 422 (unprocessable entity) in reactjs with python api

  18. 18

    DDD external entity reference

  19. 19

    load external page in appFramework

  20. 20

    Load external CSS into component

  21. 21

    LitElement load external script

  22. 22

    SpringBoot external jar not load

  23. 23

    Unable to Load an external Swf

  24. 24

    Entity Framework load relation

  25. 25

    Programmatically load Entity in symfony

  26. 26

    Spring: Failed to load ApplicationContext

  27. 27

    Failed to load ApplicationContext exception

  28. 28

    NUnit failed to load DLL

  29. 29

    Failed to load .js resource

HotTag

Archive