PHP issue with SOAP?

Posted on 2008-06-21
Medium Priority
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="http://schemas.xmlsoap.org/soap/http" />
		<operation name="demo2">
			<soap:operation soapAction="http://foo.com/demo" />
				<soap:body use="encoded" namespace="http://foo.com/demo" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
				<soap:body use="encoded" namespace="http://foo.com/demo" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
	<service name="DemoService">
		<port name="DemoPort" binding="DemoBinding">
			<soap:address location="http://foo.com/demo" />

Open in new window

Question by:imaginative
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 23

Accepted Solution

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



Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to count occurrences of each item in an array.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

765 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