xml and NuSOAP

admin

Administrator
Staff member
I have a webservice that use to work on a previous server, but not on my new server. I an using PHP and NuSOAP. I am getting the following error:

wsdl: XML parse error: XML error on line 1: syntax error

Here is my wsdl file ( I don't see anything wrong with it):

<?xml version="1.0" ?>
- <definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd" xmlns:tns="urn:rastore" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:rastore">
- <types>
- <xsd:schema targetNamespace="urn:rastore">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
- <xsd:complexType name="storeinfo">
- <xsd:all>
<xsd:element name="name" type="xsd:string" />
<xsd:element name="store_number" type="xsd:int" />
<xsd:element name="addr1" type="xsd:string" />
<xsd:element name="city" type="xsd:string" />
<xsd:element name="state" type="xsd:string" />
<xsd:element name="zip" type="xsd:string" />
<xsd:element name="phone_fe" type="xsd:string" />
<xsd:element name="phone_ph" type="xsd:string" />
<xsd:element name="phone_phf" type="xsd:string" />
<xsd:element name="distance" type="xsd:string" />
<xsd:element name="convenience_foods" type="xsd:boolean" />
<xsd:element name="rite_express" type="xsd:boolean" />
<xsd:element name="one_hour_photo" type="xsd:boolean" />
<xsd:element name="ra_24_hour" type="xsd:boolean" />
<xsd:element name="drive_thru_rx" type="xsd:boolean" />
<xsd:element name="rite_rewards" type="xsd:boolean" />
<xsd:element name="gnc" type="xsd:boolean" />
<xsd:element name="western_union" type="xsd:boolean" />
<xsd:element name="hours_fe_mon" type="xsd:string" />
<xsd:element name="hours_fe_tue" type="xsd:string" />
<xsd:element name="hours_fe_wed" type="xsd:string" />
<xsd:element name="hours_fe_thu" type="xsd:string" />
<xsd:element name="hours_fe_fri" type="xsd:string" />
<xsd:element name="hours_fe_sat" type="xsd:string" />
<xsd:element name="hours_fe_sun" type="xsd:string" />
<xsd:element name="hours_rx_mon" type="xsd:string" />
<xsd:element name="hours_rx_tue" type="xsd:string" />
<xsd:element name="hours_rx_wed" type="xsd:string" />
<xsd:element name="hours_rx_thu" type="xsd:string" />
<xsd:element name="hours_rx_fri" type="xsd:string" />
<xsd:element name="hours_rx_sat" type="xsd:string" />
<xsd:element name="hours_rx_sun" type="xsd:string" />
<xsd:element name="store_date_open" type="xsd:string" />
<xsd:element name="store_date_relo" type="xsd:string" />
<xsd:element name="store_date_reopen" type="xsd:boolean" />
<xsd:element name="picture_maker" type="xsd:boolean" />
<xsd:element name="photo_ramp" type="xsd:boolean" />
<xsd:element name="store_status" type="xsd:string" />
<xsd:element name="detail_desc" type="xsd:string" />
<xsd:element name="division" type="xsd:string" />
</xsd:all>
</xsd:complexType>
- <xsd:complexType name="ArrayOfStoreInfo">
- <xsd:complexContent>
- <xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:storeinfo[]" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
</types>
- <message name="rastoreRequest">
<part name="zip" type="xsd:string" />
</message>
- <message name="rastoreResponse">
<part name="return" type="tns:ArrayOfStoreInfo" />
</message>
- <portType name="rastorePortType">
- <operation name="rastore">
<input message="tns:rastoreRequest" />
<output message="tns:rastoreResponse" />
</operation>
</portType>
- <binding name="rastoreBinding" type="tns:rastorePortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="rastore">
<soap:operation soapAction="http://rawebdev.ra.riteaid.us/prgjr1/ra-new/stores/locator/webservice_server_wsdl.php" style="rpc" />
- <input>
<soap:body use="encoded" namespace="urn:rastore" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
- <output>
<soap:body use="encoded" namespace="urn:rastore" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding>
- <service name="rastore">
- <port name="rastorePort" binding="tns:rastoreBinding">
<soap:address location="http://rawebdev.ra.riteaid.us/prgjr1/ra-new/stores/locator/webservice_server_wsdl.php" />
</port>
</service>
</definitions>

The only thing different, I think, on our new server is we have a newer version of PHP thatn the old one, but I don't think that should make a difference.

Thanks!
 
Back
Top