Setting element attributes... on a method
by Wyatt Baldwin
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
15 years, 9 months
Setting element attributes
by Wyatt Baldwin
How are element attributes set using Suds?
I have an element that needs to look like <MyElement ID="123" />, but I
can't figure out how to set ID.
Wyatt
15 years, 9 months
Question concering document wrapped/literal
by Oliver Andrich
Hi,
my team is developing webservice which is offered using document
wrapped/literal or document/literal wrapped. If I try to access it
using suds 0.2.3, I can create the Client instance, but this instance
doesn't offer any methods. Is this encoding support by suds?
Best regards,
Oliver
15 years, 9 months
Suds 0.2.2 released
by Jeff Ortel
--
Jeff Ortel
RHN Satellite Engineering
Red Hat, Inc.
1801 Varsity Dr. Raleigh, NC 27606
(P) 919-754-4603
15 years, 10 months
Release 0.2.2 candidate
by Jeff Ortel
All,
Attached is the 0.2.2 release candidate. This release was slated to
contain a number of new features. Some have been fully implemented and
others only partially. The release candidate also contains a number of
important bug fixes and refactoring. A lot of the code has changed
since 0.2.1. In the interest of getting these bug fixes into a release
and narrowing the gap between trunk and the releases, it seemed like a
good idea to go ahead and 'cut a release' with r189.
I've got my jboss tests back 'on-line' and 0.2.2 runs clean on my
rhq(jboss), axis and public (xmethods) tests. However, I would
appreciate it you all would take a few minutes and take 0.2.2 for a
'test drive' and send me some feedback.
Thanks,
Jeff
--
Jeff Ortel
RHN Satellite Engineering
Red Hat, Inc.
1801 Varsity Dr. Raleigh, NC 27606
(P) 919-754-4603
15 years, 10 months