PHP issue with SOAP?

Posted on 2008-06-21
Last Modified: 2013-11-18
I'm having a bit of difficulty working with a web service I'm trying to create in PHP.  Here's some output:

root@catalyst:/www/ll-prod-api/api# php soap.php

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: No address associated with <port> in /www/ll-prod-api/api/soap.php:3
Stack trace:
#0 /www/ll-prod-api/api/soap.php(3): SoapClient->SoapClient('foo.wsdl', Array)
#1 {main}
  thrown in /www/ll-prod-api/api/soap.php on line 3

And here is the WSDL:

<?xml version="1.0" encoding="UTF-8" ?>
<definitions name="limelock"
	<message name="DemoRequest">
		<part name="param1" type="xsd:string" />
	<message name="DemoResponse">
		<part name="Result" type="xsd:string" />
	<portType name="DemoPortType">
		<operation name="demo2">
			<input message="tns:DemoRequest" />
			<output message="tns:DemoResponse" />
	<binding name="DemoBinding" type="tns:DemoPortType">
		<soap:binding style="rpc" transport="" />
		<operation name="demo2">
			<soap:operation soapAction="" />
				<soap:body use="encoded" namespace="" encodingStyle="" />
				<soap:body use="encoded" namespace="" encodingStyle="" />
	<service name="DemoService">
		<port name="DemoPort" binding="DemoBinding">
			<soap:address location="" />

Open in new window

Question by:imaginative
LVL 23

Accepted Solution

Siva Prasanna Kumar earned 500 total points
ID: 21841488
This seems to be a bug in PHP, WSDL is proper.


Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question