我是使用zeep的新手。并尝试实施 wsdl: http: //leon.leonardotravel.com/Leon.svc/wsdl
我必须像这样发送请求:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<Search xmlns="http://tempuri.org/">
<Header>
<AgentId>agentid</AgentId>
<Password>password</Password>
<Username>username</Username>
</Header>
<Search>
<CheckIn>2017-06-10</CheckIn>
<CheckOut>2017-06-12</CheckOut>
<CityId>4339</CityId>
<CurrencyId>2</CurrencyId>
<HotelId>122079</HotelId>
<PaxCountryId>2</PaxCountryId>
<DefaultPhotoInclude>false</DefaultPhotoInclude>
<GeoCoordinatesInclude>false</GeoCoordinatesInclude>
<HotelAddressInclude>false</HotelAddressInclude>
<HotelDescriptionInclude>false</HotelDescriptionInclude>
<HotelNameInclude>true</HotelNameInclude>
<MaxResponseTime>0</MaxResponseTime>
<SearchRooms>
<SearchRoom>
<Adult>1</Adult>
<Child1Age>0</Child1Age>
<Child2Age>0</Child2Age>
<Child3Age>0</Child3Age>
<Quantity>1</Quantity>
</SearchRoom>
</SearchRooms>
</Search>
</Search>
</s:Body>
</s:Envelope>
当我想使用这个 wsdl 的每个方法时,我应该发送标题。你能帮助我吗?!