Lamentably, I don't know much about visual basic and using it with SOAP but
I'd be very suprised if there were not a way to do this. It might be as
simple as casting your XML String to a byte[] (or whathever the visual basic
equivelent is) and passing it as a parameter. On the Apache SOAP side of
things, if you make the parameter byte[] then it will expect it to be base64
and do the decoding for you. Visual Basic is probably similar so in all
probability, you don't need to worry about it. Here is a link to the (terse)
SOAP spec on the topic:

http://www.w3.org/TR/2001/WD-soap12-20010709/#_Toc478383517

Hope it works out,
Barnaby

-----Original Message-----
From: Ding, Chengmin [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 8:07 AM
To: '[EMAIL PROTECTED]'
Subject: RE: What is the best way to send Large String from the Client
to the Service?


Barnaby,
Thanks a lot for your hint. The string I am passing is validated XML string,
I read from somewhere that the best way is to use LITERAL_XML encodingStyle.
But I don't how to write the client VB code/WSDL to use LITERAL_XML or
BASE64 ? Are there any samples on using different encodingStyles?

Regards,

-Chengmin

-----Original Message-----
From: Barnaby James [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 6:56 PM
To: [EMAIL PROTECTED]
Subject: RE: What is the best way to send Large String from the Client
to the Service?


Did you try sending it as a data base64 encoded parameter rather than a
string? i.e. a parameter of xsi:type="SOAP-ENC:base64"? I would think this
would be handled more efficiently than an xsi:type="xsd:string" parameter.
If your class on the Apache SOAP side is byte[] it will be automagically
converted to SOAP-ENC:base64.

Barnaby

-----Original Message-----
From: Paramdeep Singh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 3:13 AM
To: [EMAIL PROTECTED]
Subject: Re: What is the best way to send Large String from the Client
to the Service?


Hi,

I think that if the size of the string is too large, then you should send it
as an attachment.

I remember of seeing an article somewhere, which mentioned that if the
string that you are sending is of a very large length, then it may not get
the correct results as well. I think that I read it on this mailing list
only, but cant remember it off-hand.

Regards
Paramdeep


----- Original Message -----
From: "Ding, Chengmin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 2:05 AM
Subject: What is the best way to send Large String from the Client to the
Service?


> HI, Soap folks,
>   Our web service is based on Apache Soap 2.2 and the web service client
is
> based on Microsoft Soap Tool kit 2.0.
> The client periodically sends an XML String as one of an array parameter
to
> the web service and the web service will do some manipulations of that
> string. The input string used to be below 100 KB and the performance is
> satisfactory. Recently the input XML string increases to around 1 MB and
the
> web service starts to respond extremely slow.
> We put some output statement at the beginning of the web service function,
> now it takes about 15 minutes before we see those output. We want to know
> why it takes Apache Soap 2.2 so long to respond? We found some previous
post
> that mentions using XML_LITERAL_ENCODING will make it faster, but since we
> are using MS SOAPtoolkit, we don't know how to sent this encoding.
>
> Any of your help will be highly appreciated.
>
> Thanks.
>
> -Chengmin


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to