Workaround for PHP SOAP request failure when wsdl defines service port binding as https and port 80?
Posted
by scooterhanson
on Stack Overflow
See other posts from Stack Overflow
or by scooterhanson
Published on 2009-09-17T15:33:13Z
Indexed on
2010/05/14
5:04 UTC
Read the original article
Hit count: 234
I am consuming a SOAP web service using php5's soap extension. The service' wsdl was generated using Axis java2wsdl, and whatever options are used during generation result in the port binding url being listed as https://xxx.xxx.xxx.xxx**:80**
If I download the wsdl to my server, remove the port 80 specification from the port binding location value, and reference the local file in my soapclient call it works fine.
However, if I try to reference it remotely (or download it and reference it locally, as-is) the call fails with a soap fault.
I have no input into the service side so I can't make them change their wsdl-generation process. So, unless there's a way to make the soapclient ignorant of the port, I'm stuck with using a locally modified copy of someone else' wsdl (which I'd rather not do).
Any thoughts on how to make my soapclient ignore the port 80?
© Stack Overflow or respective owner