--
You received this message because you are subscribed to the Google Groups "WS4D-gSOAP Users" group.
To post to this group, send email to ws4d-gso...@googlegroups.com.
To unsubscribe from this group, send email to ws4d-gsoap-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ws4d-gsoap-users?hl=en.
Hello Elmar,
Thanks for the information. I can reproduce the 8.5 MB limit reliably. I will investigate using MTOM attachments by studying the gSOAP User Guide. Do you have an example of using attachments with WS4D-gSOAP? Appreciate any info that you can give me about attachments in the context of WS4D-gSOAP.
Regards,
Jyothi
Hello Elmar,
Thanks for the information. I can reproduce the 8.5 MB limit reliably. I will investigate using MTOM attachments by studying the gSOAP User Guide. Do you have an example of using attachments with WS4D-gSOAP? Appreciate any info that you can give me about attachments in the context of WS4D-gSOAP.
Hi Elmar,
I was able to send a large file as an attachment using WS4D-gSOAP in a fraction of the time required for sending it as in-line (non-attachment). In order to send it as an MTOM attachment I need to set the following flag in gSOAP’s soap struct context:
struct soap *soap = soap_new1(SOAP_ENC_MTOM);
Can you tell me how to do this in WS4D-gSOAP without interfering with the normal execution? I have used the soap struct as given in the examples:
struct soap client;
struct soap service;
I will try to look into it further myself but appreciate your input since you are more familiar with the use of this struct. If I have an improved example over the ones that you sent me, I will try to send you one after discussing with my manager.
Hi Elmar,
I was able to send a large file as an attachment using WS4D-gSOAP in a fraction of the time required for sending it as in-line (non-attachment). In order to send it as an MTOM attachment I need to set the following flag in gSOAP’s soap struct context:
struct soap *soap = soap_new1(SOAP_ENC_MTOM);
Can you tell me how to do this in WS4D-gSOAP without interfering with the normal execution? I have used the soap struct as given in the examples:
Elmar,
Thanks for your prompt response! In order to use the MTOM attachments in my service, I need to import the following files:
#import ïmport/soap12.h"
/* alternatively, without the import above, use:
//gsoap SOAP-ENV schema namespace: http://www.w3.org/2003/05/soap-envelope
//gsoap SOAP-ENC schema namespace: http://www.w3.org/2003/05/soap-encoding
*/
#import ïmport/xop.h"
#import ïmport/xmime5.h"
(taken from gSOAP user guide)
I was able to import xop.h but not soap12.h and xmime5.h
If I use the SOAP-ENV and SOAP-ENC instead I get the following errors:
**WARNING**: option -1 or -2 overrides SOAP-ENV namespace (detected at line 46 in /home/jnarayan/ws4d-gsoap-projects/pd_mtom/src/pd.gsoap)
**WARNING**: option -1 or -2 overrides SOAP-ENC namespace (detected at line 47 in /home/jnarayan/ws4d-gsoap-projects/pd_mtom/src/pd.gsoap)
Without these imports I am able to build the application, but when I set the SOAP_ENC_MTOM flag the attachment is not sent properly. Can you suggest a solution?
By the way, can I set the SOAP_ENC_MTOM flag by “soap_set_omode(&service,SOAP_ENC_MTOM)” following the call to soap_init, or should I use soap_init1(&service, SOAP_ENC_MTOM) instead?
Thanks in advance for your help!
Jyothi
From: ws4d-gso...@googlegroups.com [mailto:ws4d-gso...@googlegroups.com] On Behalf Of Elmar Zeeb
Sent: Monday, August 08, 2011 11:51 AM
To: ws4d-gso...@googlegroups.com
Subject: Re: Limitations to size of request/response
Am 08.08.2011 17:41, schrieb Narayan, Jyothirmai (SCR US EXT):
--
Elmar,
Thanks for your prompt response! In order to use the MTOM attachments in my service, I need to import the following files:
#import ïmport/soap12.h"
/* alternatively, without the import above, use:
//gsoap SOAP-ENV schema namespace: http://www.w3.org/2003/05/soap-envelope
//gsoap SOAP-ENC schema namespace: http://www.w3.org/2003/05/soap-encoding
*/
#import ïmport/xop.h"
#import ïmport/xmime5.h"(taken from gSOAP user guide)
I was able to import xop.h but not soap12.h and xmime5.h
If I use the SOAP-ENV and SOAP-ENC instead I get the following errors:
**WARNING**: option -1 or -2 overrides SOAP-ENV namespace (detected at line 46 in /home/jnarayan/ws4d-gsoap-projects/pd_mtom/src/pd.gsoap)
**WARNING**: option -1 or -2 overrides SOAP-ENC namespace (detected at line 47 in /home/jnarayan/ws4d-gsoap-projects/pd_mtom/src/pd.gsoap)
Without these imports I am able to build the application, but when I set the SOAP_ENC_MTOM flag the attachment is not sent properly. Can you suggest a solution?
By the way, can I set the SOAP_ENC_MTOM flag by “soap_set_omode(&service,SOAP_ENC_MTOM)” following the call to soap_init, or should I use soap_init1(&service, SOAP_ENC_MTOM) instead?