[Fedora-suds-list] attachment support
Ajai Joy
ajai.joy at gmail.com
Tue Dec 8 16:49:54 UTC 2009
Robert,
When I recieve the attachment on the server side, and check if the binary
is base 64 encoded it say false
ByteArrayDataSource bsrc = (ByteArrayDataSource)dataHandler.getDataSource();
InputStream in = bsrc.getInputStream();
byte[] array = new byte[100];
int offset = 0;
int n;
do
n = in.read(array, offset, 100 - offset);
while (n != -1);
org.apache.commons.codec.binary.Base64.isArrayByteBase64(array); // this
returns false ?
i would expect it to return true, since i did base64 encode the attachment
in the python client.
On Tue, Dec 8, 2009 at 8:43 AM, Ajai Joy <ajai.joy at gmail.com> wrote:
> Hre is the wsdl signature, the attachment type is base64Binary
>
> <xs:element name="executeCommand">
> <xs:complexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="nameSpace"
> nillable="true" type="xs:string"/>
> <xs:element minOccurs="0" name="commandName"
> nillable="true" type="xs:string"/>
> <xs:element maxOccurs="unbounded" minOccurs="0"
> name="commandArguments" nillable="true" type="xs:string"/>
> <xs:element minOccurs="0" name="dh" nillable="true"
> type="*xs:base64Binary*"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>
> On Mon, Dec 7, 2009 at 7:33 PM, Robert Marsanyi <rnm at whidbey.com> wrote:
>
>> What's the WSDL signature for "executeCommand"?
>>
>> 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)
>> ...
>> //service call
>> client.service.executeCommand('some string', base64.b64encode(
>> zip_string()))
>>
>>
>> _______________________________________________
>> fedora-suds-list mailing list
>>
>> fedora-suds-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/fedora-suds-list
>>
>
>
>
> --
> Best Regards,
> Ajai Joy
>
--
Best Regards,
Ajai Joy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/suds/attachments/20091208/b954293c/attachment.html
More information about the suds
mailing list