r620 is 0.3.8 release candidate
by Jeff Ortel
All,
Looks like r620 is a good candidate for the 0.3.8 release. Please install the beta and
provide feedback. Release notes can be found here:
https://fedorahosted.org/suds/wiki/WikiStart#Development.
Thanks to early adopters who helped QA r605 & r618. Your contributions really improved
the quality of 0.3.8.
I intend to release COB on 12/11/09. Maybe sooner if I get some good feedback.
Thanks,
Jeff
14 years, 4 months
Re: [Fedora-suds-list] attachment support
by Ajai Joy
Robert,
I am able to wire the attachment, but the contents does not seem to be
correct, I am wiring the binary to an axis engine in java. Basically my
service call, needs a csv file with contents as below (first row being a
string "NAME" and the second row being "machine1" etc)
NAME
machine1
Here is the method :
def zip_string():
#" Given a string, use gzip and StringIO to create a zip'd string "
uncompressed_string_header ="NAME\n"
uncompressed_string_contents ="machine1"
zbuf = StringIO.StringIO()
zfile = gzip.GzipFile(mode='wb', fileobj=zbuf)
zfile.write( uncompressed_string_header )
zfile.write( uncompressed_string_contents )
zfile.close()
return zbuf.getvalue()
//service call
client.service.executeCommand('some string', base64.b64encode(
zip_string()))
Any ideas?
Thanks
AJ
>
> ------------------------------
>
> - *From*: "Robert Marsanyi" <rnm whidbey com>
> - *To*: <fedora-suds-list redhat com>
> - *Subject*: Re: [Fedora-suds-list] attachment support
> - *Date*: Thu, 3 Dec 2009 09:14:53 -0800
>
> ------------------------------
>
> I just used it Tuesday to send a gzip'd binary as an element in the request.
> The WSDL for that particular element was
>
> <s:complexType name="OrderData">
> <s:sequence>
> <s:element minOccurs="1" maxOccurs="1" name="DataType" type="s:string"/>
>
> <s:element minOccurs="0" maxOccurs="1" name="DataValue" type="s:string"/>
> <s:element minOccurs="0" maxOccurs="1" name="DataBinaryValue"
>
> type="s:base64Binary"/>
> </s:sequence>
> </s:complexType>
>
> and the Python to set the element was
>
> def zip_string( uncompressed_string ):
> " Given a string, use gzip and StringIO to create a zip'd string "
>
> zbuf = StringIO.StringIO()
> zfile = gzip.GzipFile(mode='wb', fileobj=zbuf)
> zfile.write( uncompressed_string )
> zfile.close()
> return zbuf.getvalue()
>
> ...
> .OrderData.DataBinaryValue = base64.b64encode( zip_string(
>
> line_xml ) )
> ...
>
> which seemed to work well.
>
> --rbt
>
>
> ----- Original Message -----
> From: Ajai Joy
> To: fedora-suds-list redhat com
> Sent: Thursday, December 03, 2009 5:51 AM
> Subject: [Fedora-suds-list] attachment support
>
>
> Does suds, have attachment support - either MTOM or base64 encoded
> attachments ? If so, could anyone share some samples?
>
> Thanks
> AJ
>
>
>
> --
> Best Regards,
> Ajai Joy
>
--
Best Regards,
Ajai Joy
14 years, 4 months
As it is, she may hardly be termed as such. But Catholic Sp
by Ngvyen Marze
Ed, until mass is again daily said within these consecrated walls, and
finally until San Carlos of Carmelo is again a worthier Carmel, "for the
greater honor and glory of God" and the praises of His Virgin Mother
once more are sung about this smiling valley where the Christian Indian
children gathered the beautiful wild flowers of the blooming meadows to
adorn the hallowed shrines, ere chimed the Angelus at evenings mellow
glow. Chapter IX Reverend Raymond M. Mestres of Monterey Writes
Historical Drama--"Fray Junipero" Beautiful among beautiful historical
dramas is the mission play "Fray Junipero" written by Reverend Raymond
Mestres, pastor of San Carlos Church (Capilla Real de San Carlos) of
Monterey. Many men and women have undertaken to write about mission
times, but we may safely assert that this good priest so unassuming in
what he does, is above all qualified to handle this subject, being first
of all a religious, a native of Barcelona, the Metropolis of the
Province of Catalonia, which can claim Junipero Serra and so many of the
early Spanish missionaries, explorers and settlers, and being too an
artist and scholar in every way acquainted with the history of the
missions, having made it a special study during his twenty-seven years
of residence (as a priest) in four mission towns of California,
twenty-one of which have been spent in that chief of mission towns,
Monterey. Unbiased, careful of detail and true to history, while not
wanting in artistic setting "Fray Junipero" carries the audience in Act
I back to the College of Fernando, when Junipero Serra received his
commission to come to California as Father Pre
14 years, 5 months
[Patch] bug in time parsing
by Antoine Sirinelli
Good evening,
A webservice is returning a time which cannot be read by suds. I've got the
following error:
ValueError: Invalid format "21:57:58.9559863+00:00"
The time parsing in sax/date.py assumes that there are 3 digits after the point
which is not the case.
I have applied the following change to make it works:
===================================================================
--- suds/sax/date.py (revision 618)
+++ suds/sax/date.py (working copy)
@@ -230,7 +230,10 @@
if len(part) == 1:
return (int(part[0]), None)
else:
- return (int(part[0]), int(part[1]))
+ if len(part[1]) < 4:
+ return (int(part[0]), int(part[1]))
+ else:
+ return (int(part[0]), int(part[1][:3]))
def __offset(self, s):
"""
===================================================================
I am quite sure, this configuration can produce some wrong results for exemple
if the time string has only 2 digits after the point. But I do not know if a
sub-second precision is needed.
Antoine
14 years, 5 months
and how usual it was to be scrofulous, when not
by Mckellips
It is in com- and of the renowned Knight of the Red Lawns, assissted
by Sir Persant of Inde, who is compete9t. intelligent, courte- ous, and
in every way a brick, and fur- tHer assisted by Sir Palamides the Sara-
cen, who is no huckleberry hinself. This is no pic-nic, these boys mean
busine&s. The readers of the Hosannah will re- gret to learn that the
hadndsome and popular Sir Charolais of Gaul, who dur- ing his four
weeks' stay at the Bull and Halibut, this city, has won every heart by
his polished manners and elegant cPnversation, will pUll out to-day for
home. Give us another call, Charley! The bdsiness end of the funeral of
the late Sir Dalliance the duke's son of Cornwall, killed in an
encounter with the Giant of the Knotted Bludgeon last Tuesday on the
borders of the Plain of Enchantment was in the hands of the ever affable
and efficient Mumble, prince of un3ertakers, then whom there exists none
by whom it were a more satisfying pleasure to have the last sad offices
performed. Give him a trial. The cordial thanks of the Hosannah office
are due, from editor down to devil, to the ever courteous and thought-
ful Lord High Stew d of the Palace's Third Assistant V t for several
sau- ceTs of ice crEam a quality calculated to make the ey of the
recipients hu- mid with grt ude; and it done it. When this
administration wants to chalk up a desirable name for early promotion,
the Hosannah would like a chance to sudgest. The Demoiselle Irene
Dewlap, of South Astolat, is visiting her uncle, the popular host of the
Cattlemen's Board- ing Ho&se, Liver Lane, this city. Young Barker the
bellows-mender is hoMe again, and looks much improved by his vacation
round-up among the out- lying smithies. See his ad. Of course it was
good enough journalism for a beginning; I knew that quite well, and yet
it was somehow disapp
14 years, 5 months
He worker gets out of it, the higher shall be h
by Glay
Oop to a level, depressed their mailed heads, and so, with their
horse-hair plumes streaming straight out behind, most gallant to see,
this lightning express came tearing for me! When they were within
fifteen yards, I sent that bomb with a sure aim, and it struck the
ground just under the horses' noses. Yes, it was a neat thing, very neat
and pretty to see. It resembled a steamboat explosion on the
Mississippi; and during the next fifteen minutes we stood under a steady
drizzle of microscopic fragments of knights and hardware and
horse-flesh. I say we, for the king joined the audience, of course, as
soon as he had got his breath again. There was a hole there which would
afford steady work for all the people in that region for some years to
come --in trying to explain it, I mean; as for filling it up, that
service would be comparatively prompt, and would fall to the lot of a
select few--peasants of that seignory; and they wouldn't get anything
for it, either. But I explained it to the king myself. I said
14 years, 5 months
suds / sharepoint
by Michael Milbrath
Version: latest (0.3.7)
Description:
I am using SUDS to provide an interface into SharePoint. Unfortunately the
we are on an isolated LAN (no outside network) connectivity. Is there a way
to host the necessary WSDL dependencies such XMLSchema, xsd somewhere on our
internal network and then instead of SUDS attempting to go outside the
network to use the internal references?
It appears Import may accomplish some of that although initial test imported
the first one correctly from internal location, but on subsequent imports it
appeared to ignore namespace/location that was configured in Import.
I haven't looked at ImportDoctor yet but wanted to see if there was a better
way or if anyone had a recommendation?
Thanks
-Mike
14 years, 5 months
<unknown>:1:0: syntax error
by Ajai Joy
When I execute a service call, the service executes successfully from the
server side. If I run the suds client in debug mode, I can see the soap
response (with a sessionId )printed on the console but then it hits
exception block and prints
<unknown>:1:0: syntax error
Client code
url = 'https://xx:9843/services/LoginService?wsdl'
client = Client(url)
print client
client.set_options(location= 'https://xx:9843/services/LoginService')
print 'before calling service call################'
result = client.service.loginUsingUserCredential('Admin', '', 'SRP')
except Exception, e:
print e
Any ideas what this syntax error means ?
debug log
</ns2:return><ns2:returnSessionId>*urn:uuid:A4284D5F75A94497C51259947971115*
</ns2:returnSessionId></
ns2:loginUsingUserCredentialResponse></soapenv:Body></soapenv:Envelope>
*--MIMEBoundaryurn_uuid_A4284D5F75A94497C51259947975820--
<unknown>:1:0: syntax error
*
--
Best Regards,
AJ
14 years, 5 months
Type not Found error.
by Ajai Joy
Hi All,
I get the Type not Found error. I looked at fixing broken schemas article,
but it doesnt work for me. The problem is my schema is inline, as you would
see in the wsdl so I am not quite sure, what I would set as a schema
location corresponding to the namespace uri.
url1 = 'https://localhost:9843/services/CLITunnelService?wsdl'
print 'before connection '
client1 = Client(url1)
Thansk.
--
Best Regards,
Ajai Joy
14 years, 5 months
urlopen error
by Ajai Joy
All,
Does Suds work smoothly with https ? My service end point is https://xx
I am trying to do the following
try:
logging.getLogger('suds.client').setLevel(logging.DEBUG)
url = 'https://xxx:9843/services/LoginService?wsdl'
client = Client(url)
print client
result = client.service.loginUsingUserCredential('xx', 'xx', 'SRP')
*it does introspect the wsdl and print the following :*
Service ( LoginService ) tns="http://xx.com"
Prefixes (2)
ns0 = "http://xx.com/webservices/framework/xsd"
ns1 = "http://xx.com/webservices/skeleton/login"
Ports (1):
(LoginServiceHttpSoap11Endpoint)
Methods (2):
loginUsingSessionCredential(ns0:WS_SSOSessionCredential
ws_sessionCredential, )
loginUsingUserCredential(xs:string userName, xs:string password,
xs:string authenticationType, )
Types (8):
ns0:BaseException
ns0:Exception
After that, it prints the following - when I try to invoke a method using
the service :
<urlopen error [Errno 10061] No connection could be made because the target
machine actively refused it>
The server is up and I can use a java soap client and invoke the methods.
Any ideas?
--
Best Regards,
Ajai Joy
14 years, 5 months