Post by Kenberne1965 » Fri Nov 06, 2015 11:06 pm

Hi, Im working on a custom payment method for my client and having problems running a Soap request from inside Opencart V2.0.3.1

I wrote the soap request in a stand alone PHP file and put it in the root of the website and all works fine and dandy.

However when I place it in my Opencart function in my payments/controller file and click the confirm order button which fires off the order details in the usual way and then posts them to my controller file I get this

Code: Select all

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /index.php.

Reason: Error reading from remote server
:'(

what Am I doing wrong?

Freelance Opencart 1.5.x and 2.x Developer - Available For Hire
Latest Opencart 2 Project --> http://www.falcon-rangecookers.co.uk


User avatar
Active Member

Posts

Joined
Wed Apr 22, 2015 9:37 pm
Location - Doncaster, UK

Post by Kenberne1965 » Fri Nov 06, 2015 11:10 pm

I know its nothing to do with this actual Webservice, as ive tried other Webservices which I know also work in a normal PHP file and they do the same, so its something to do with my Opencart side of things.

Freelance Opencart 1.5.x and 2.x Developer - Available For Hire
Latest Opencart 2 Project --> http://www.falcon-rangecookers.co.uk


User avatar
Active Member

Posts

Joined
Wed Apr 22, 2015 9:37 pm
Location - Doncaster, UK

Post by Kenberne1965 » Fri Nov 06, 2015 11:51 pm

It seams to be when im calling the new soap-client

Code: Select all

$newclient = new SoapClient('https://mydomain.com/catalog/controller/soap/efiWSDL27.wsdl');
as if this is commented out it runs the rest of the function, so its not the call to the service itself that is causing the error.

Why would i be getting this error trying to call a new soapClient? from inside opencart

Freelance Opencart 1.5.x and 2.x Developer - Available For Hire
Latest Opencart 2 Project --> http://www.falcon-rangecookers.co.uk


User avatar
Active Member

Posts

Joined
Wed Apr 22, 2015 9:37 pm
Location - Doncaster, UK
Who is online

Users browsing this forum: No registered users and 239 guests