PHP SOAP client accessing server on non-standard port

Posted by sims on Stack Overflow See other posts from Stack Overflow or by sims
Published on 2010-04-07T01:14:25Z Indexed on 2010/04/07 1:33 UTC
Read the original article Hit count: 482

Filed under:
|
|

The service I'm trying to send requests to is accessible via a non-standard port - so not port 80. It is accessible locally via port 80. So I've tested the app locally and it works fine. But when I deploy it on the production server (not on the LAN), it fails.

Once again for clarity:

-dev server is on the LAN

-SOAP server is on the LAN

-production server is on the WAN

-SOAP server is accessible through the NAT/FW via a non-standard http port (not 80)

The soap client is created with the specified WSDL URI. For example:

$this->client = new Zend_Soap_Client('http://server.com:10080/path/service.asmx?WSDL');

But queries to not work:

$this->client->function($query);

I get an:

Internal Server Error

Exception thrown.

Is PHP broken in this regard? Is there a workaround?

© Stack Overflow or respective owner

Related posts about php

Related posts about zend-framework