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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System ( introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

785 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