0

When I use port with URL I get error:

Code:

    try {
        $options = [
            'login' => "999999",
            'password' => "999999testtest"
        ];
        $request = new SoapClient("https://erpefaturatest.cs.com.tr:8043/efatura/ws/connectorService?wsdl", $options);
        print_r($request);
    } catch (Exception $exc) {
        print_r($exc);
    }

Error: SOAP-ERROR: Parsing WSDL: Couldn't load from

But wihthout port I don't get error:

Code:

    try {
        $options = [
            'login' => "999999",
            'password' => "999999testtest"
        ];
        $request = new SoapClient("https://connectortest.efinans.com.tr/connector/ws/connectorService?wsdl", $options);
        print_r($request);
    } catch (Exception $exc) {
        print_r($exc);
    }

I don't understand the problem. Any idea?

2
  • Not sure why it would be the case with your example, but most of these questions are tied to SSL. Could just try setting all the verify_ options to false to see if it works. Example. I know that doesn't fit well with what you are showing. I mean you can say use curl and load that WSDL from the machine where the code runs? Commented Sep 30, 2020 at 21:02
  • i tried curl. It is also failed. I think the problem is with the port. But I don't know the solution. Commented Sep 30, 2020 at 21:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.