My WSDL for reference: http://cert.synxis.com/interface/ChannelConnect.asmx?WSDL
One of the methods in the service I'm using requires an attribute to be set on the method's element. Is there a way to set the attributes of a method's associated element?
In case it's not clear what I mean, I'm trying to use a method named OTA_HotelResRQ (corresponds to CreateReservations in the operations list [1]). The OTA_HotelResRQ element has a required attribute named ResStatus. Since I'm not creating an OTA_HotelResRQ object using the client factory when I call the method, I don't see how to set the ResStatus attribute. I tried sending keyword args into the method call, but that didn't work.
Here's the type definition for OTA_HotelResRQ:
<s:element name="OTA_HotelResRQ" type="s0:OTA_HotelResRQ" /> <s:complexType name="OTA_HotelResRQ"> <s:complexContent mixed="false"> <s:extension base="s0:OtaRequestMessage"> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="POS" type="s0:POS" /> <s:element minOccurs="0" maxOccurs="1" name="HotelReservations" type="s0:ArrayOfHotelReservation" /> </s:sequence> <s:attribute name="ResStatus" type="s:string" /> </s:extension> </s:complexContent> </s:complexType>
I want an OTA_HotelResRQ method call to generate something like this:
soap:Body <OTA_HotelResRQ ResStatus="Commit"> <Args to OTA_HotelResRQ method> </OTA_HotelResRQ> </soap:Body>
Any ideas?
[1] http://cert.synxis.com/interface/ChannelConnect.asmx?op=CreateReservations
-Wyatt