Jump to content
Sign in to follow this  
louison

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.

 

wsdl:

<?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 :

<?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 !

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...