Jump to content

Used Wsdl with php and xml file


Recommended Posts

Hello everyone, I have my wsdl file and a php page with Soap and I would use the XML files, but I'm a bit lost with namespace and schemaLocation when I call the xml file it appears empty, i just take the some line to show the namespace and Schemaslocation.



<?xml version="1.0" encoding="UTF-8"?><definitions xmlns:typens="urn:b2bHotelSOAP" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" name="b2bHotelSOAP" targetNamespace="urn:b2bHotelSOAP">	<types>		<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:b2bHotelSOAP">					<!--<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>-->						<complexType name="roomArray">				<complexContent>					<restriction base="soapenc:Array">						<attribute ref="soapenc:arrayType" wsdl:arrayType="typens:paxesArray[]"/>					</restriction>				</complexContent>			</complexType>			<complexType name="paxesArray">				<complexContent>					<restriction base="soapenc:Array">						<attribute ref="soapenc:arrayType" wsdl:arrayType="typens:pax[]"/>					</restriction>				</complexContent>


<?xml version="1.0" encoding="UTF-8" ?> - <XMLResponse schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:b2bHotelSOAP" >    	<ResponseType>HotelListResponse</ResponseType>  - <RequestInfo>      <AffiliateCode>XX0000</AffiliateCode>       <AffRequestId>XXX</AffRequestId>       <AffRequestTime>yyyy-mm-ddThh:mm:ss</AffRequestTime>     </RequestInfo>    <TotalNumber>XXXXX</TotalNumber>   - <Hotels>

Thank you !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...