Click here to Skip to main content
15,891,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCAsyncSocket::Create for IPV6 Pin
Pappu5star15-Aug-06 19:40
Pappu5star15-Aug-06 19:40 
QuestionSerialize a Wizard Pin
DanYELL15-Aug-06 17:59
DanYELL15-Aug-06 17:59 
QuestionHelp!!Get image and save at local computer... Pin
mimimimilaw15-Aug-06 17:08
mimimimilaw15-Aug-06 17:08 
AnswerRe: Help!!Get image and save at local computer... Pin
Hamid_RT15-Aug-06 19:11
Hamid_RT15-Aug-06 19:11 
AnswerRe: Help!!Get image and save at local computer... Pin
David Crow16-Aug-06 3:36
David Crow16-Aug-06 3:36 
QuestiongSOAP problem, who know this error message? Pin
simonchen.net15-Aug-06 16:37
simonchen.net15-Aug-06 16:37 
AnswerRe: gSOAP problem, who know this error message? Pin
Milton Karimbekallil15-Aug-06 18:09
Milton Karimbekallil15-Aug-06 18:09 
GeneralRe: gSOAP problem, who know this error message? [modified] Pin
simonchen.net16-Aug-06 16:02
simonchen.net16-Aug-06 16:02 
I try to send a jpeg image to SOAP server using gSOAP from www.sourceforge.net, but it always reponses me the error message:

SOAP 1.1 fault: SOAP-ENV:Client [no-subcode]
"Multipart/Related type specified a root type other than the
one that was found."
Detail: [no-detail]

How to solve this problem?

the code is as following:

std::string message = "image/jpeg";
xsd__hexBinary image;
ns1__sendMimeImageJPEGResponse pr;

FILE* file = ::fopen("d:\\t-shirt.jpg", "rb");
char buff[655350] = {0};
int nSize = 0;
if (file != NULL)
{
char* pos = buff;

int size = 0;
while((size = ::fread(pos, sizeof(char), 25, file)) > 0)
{
pos += size;
nSize += size;
}
}

image.__ptr = NULL;
image.__size = 0;
soap->http_content = "text/xml;charset=utf-8";
soap_set_mime(soap, "MIME_boundary", "<mimepart=29922.29292@mydot.com>");
soap_set_mime_attachment(soap, buff, nSize, SOAP_MIME_BINARY, "image/jpeg", "<mimepart=29922.29292@mydot.com>", NULL, NULL);

int nRet = soap_call_ns1__sendMimeImageJPEG(soap, url, NULL, message, image, pr);
if (nRet == SOAP_OK)
printf("\nCurrent returned value %s\n", pr.result.begin());
elseSniff | :^)
soap_print_fault(soap, stderr);



-- modified at 22:03 Wednesday 16th August, 2006
QuestionC++ make exe Pin
CheesyPoofs15-Aug-06 16:17
CheesyPoofs15-Aug-06 16:17 
AnswerRe: C++ make exe Pin
Christian Graus15-Aug-06 16:36
protectorChristian Graus15-Aug-06 16:36 
GeneralRe: C++ make exe Pin
CheesyPoofs15-Aug-06 16:38
CheesyPoofs15-Aug-06 16:38 
GeneralRe: C++ make exe Pin
Christian Graus15-Aug-06 16:48
protectorChristian Graus15-Aug-06 16:48 
GeneralRe: C++ make exe Pin
CheesyPoofs15-Aug-06 16:50
CheesyPoofs15-Aug-06 16:50 
GeneralRe: C++ make exe [modified] Pin
CheesyPoofs15-Aug-06 16:57
CheesyPoofs15-Aug-06 16:57 
GeneralRe: C++ make exe Pin
Christian Graus15-Aug-06 17:03
protectorChristian Graus15-Aug-06 17:03 
GeneralRe: C++ make exe Pin
CheesyPoofs15-Aug-06 17:07
CheesyPoofs15-Aug-06 17:07 
GeneralRe: C++ make exe Pin
Christian Graus15-Aug-06 17:25
protectorChristian Graus15-Aug-06 17:25 
AnswerRe: C++ make exe Pin
Prakash Nadar15-Aug-06 19:37
Prakash Nadar15-Aug-06 19:37 
AnswerRe: C++ make exe Pin
Steve S15-Aug-06 21:42
Steve S15-Aug-06 21:42 
QuestionRe: C++ make exe Pin
David Crow16-Aug-06 3:37
David Crow16-Aug-06 3:37 
AnswerRe: C++ make exe Pin
CheesyPoofs16-Aug-06 4:17
CheesyPoofs16-Aug-06 4:17 
GeneralRe: C++ make exe Pin
David Crow16-Aug-06 4:50
David Crow16-Aug-06 4:50 
AnswerRe: C++ make exe Pin
Zac Howland16-Aug-06 4:40
Zac Howland16-Aug-06 4:40 
GeneralRe: C++ make exe Pin
CheesyPoofs16-Aug-06 4:54
CheesyPoofs16-Aug-06 4:54 
QuestionView/sniff HTTP packets from browser to Web server Pin
Robert Palma Jr.15-Aug-06 11:19
Robert Palma Jr.15-Aug-06 11:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.