Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

PHP issue with SOAP?

Posted on 2008-06-21
3
Medium Priority
?
1,533 Views
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"
	targetNamespace="http://foo.com/demo"
	xmlns:tns="http://foo.com/demo"
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap"
	xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding"
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns="http://schemas.xmlsoap.org/wsdl/">
	
	<message name="DemoRequest">
		<part name="param1" type="xsd:string" />
	</message>
 
	<message name="DemoResponse">
		<part name="Result" type="xsd:string" />
	</message>
 
	<portType name="DemoPortType">
		<operation name="demo2">
			<input message="tns:DemoRequest" />
			<output message="tns:DemoResponse" />
		</operation>
	</portType>
 
	<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" />
			<input>
				<soap:body use="encoded" namespace="http://foo.com/demo" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
			</input>
			<output>
				<soap:body use="encoded" namespace="http://foo.com/demo" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
			</output>
		</operation>
	</binding>
 
	<service name="DemoService">
		<port name="DemoPort" binding="DemoBinding">
			<soap:address location="http://foo.com/demo" />
		</port>
	</service> 
 
</definitions>

Open in new window

0
Comment
Question by:imaginative
[X]
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
3 Comments
 
LVL 23

Accepted Solution

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

check:

http://bugs.php.net/bug.php?id=41337
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
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.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

604 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