Re: [SOAP] SoapClient/WSDL Port Problem

[email protected] (noddle)
Newsgroups php.soap
Message-ID <[email protected]>
Hello,

I'd don't know how new you are to web services so I'll have to assume you
substituted http://crash:8090/ for the real location because crash is not a
valid name, if you fix that 
you may fix the problem. 

Rewrite to line in the WSDL to say:

<xs:include
schemaLocation="../schemas/flightHazardsService/request_flight_hazards.xsd"/>

because the wsdl & schemas you have here is located I suppose in a directory
structure like this:

wsdl/flightHazardsService.wsdl
&
schemas/request_flight_hazards.xsd

Ciao,
Andrew


brent.ertz wrote:
> 
> Hello All,
> 
> I am trying to use PHP5 SoapClient to integrate a web-service that is
> running on a specific port.
> 
> 	http://crash:8090/FlightHazardsService?wsdl
> 
> The wsdl contains several xs:include/import statements, an example is
> shown below.
> 
> 	<xs:include
> schemaLocation="http://crash:8090/FlightHazardsService?xsd=../schemas/flightHazardsService/request_flight_hazards.xsd"/>
> 
> Whenever I try to create a SoapClient, I get the following error.  I see
> that the port (8090) is not included in the url below and assume that it
> why things are not working.
> 
> 	[WSDL] SOAP-ERROR: Parsing Schema: can't import schema from
> 'http://crash/FlightHazardsService?xsd=../schemas/owsExceptionReport.xsd'
> 
> Here is the code that I am using to create the SoapClient.
> 
> 	$soapClient = new
> SoapClient("http://crash:8090/FlightHazardsService?wsdl",
> 		array('soap_version' => SOAP_1_2,
> 			'trace' => 1));
> 
> Can anyone offer advice on how to resolve this issue?
> 
> Regards,
> Brent
> 

-- 
View this message in context: http://www.nabble.com/SoapClient-WSDL-Port-Problem-tp24954806p25930863.html
Sent from the Php - Soap mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.