Solved

PHP issue with SOAP?

Posted on 2008-06-21
3
1,435 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
3 Comments
 
LVL 23

Accepted Solution

by:
Siva Prasanna Kumar earned 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now