|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
SoapClient/WSDL Port ProblemHello 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 |
|
|
Re: SoapClient/WSDL Port ProblemHello,
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
|
| Free embeddable forum powered by Nabble | Forum Help |