|
mimimimilaw wrote: strResponse += szBuf;
If szBuf contains more than one \0 character, this obviously will not work.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
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]
|
|
|
|
|
could u be more specific? what code caused this issue? XMLHTTP?
Cheers Milton KB
|
|
|
|
|
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());
else
soap_print_fault(soap, stderr);
-- modified at 22:03 Wednesday 16th August, 2006
|
|
|
|
|
Ok well i have been asking around for sometime now to find this out so far no help. Hopefully someone here can help. Im trying to learn how i could make it so my already compiled program makes an exe file. For example a the program asks a question. You give an answer and then you press enter to create an exe with the answer. I tried the <fstream> but that dosn't work because im trying to make an exe.
Another example would be a trojan. Some trojans give you options. You fill in the options you want and then click create and it creates a server for you. Im trying to find how to make the exe so please help some. I tried to explain best i could.
|
|
|
|
|
In order to create an exe, you need to ship a compiler with your program.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Ok sweet thx for the reply. Can you be a little more specific. Like how would i go about doing that. Would i have to make my own compiler(which i doubt i can) or what.
|
|
|
|
|
gcc is free, you could distribute that, and run it from your code, and collect the result. I guess.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Alright thx. Ill give it a try. Thx again you have given me actual answers compared to other people on other forums.
|
|
|
|
|
Alright well i don't think thats gonna work. Im sure there must be an easier way to do it, so the question is still opened. If anyone has any idea. Then please reply. Also thx again Christian.
|
|
|
|
|
CheesyPoofs wrote: Im sure there must be an easier way to do it
Well, you're wrong. A C++ exe is created by a compiler. You either integrate with one, or you write one. That's your only option.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hmm ok well thx. Also do you think i would be able to bind a compiler to the app.
|
|
|
|
|
Not easily, no.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
To give a clue, coz i am not very sure about it,
if you working with win32 application, there are apis to change the string in the string table in the resource.
I think There are articles to manipulate the resource.
There are windows apis to do that aswell.
This way you can create a exe with that answer embedded into the exe file.
I am sorry for not being too specific, but i hope i gave you a direction.
-Prakash
|
|
|
|
|
CheesyPoofs wrote: Another example would be a trojan. Some trojans give you options. You fill in the options you want and then click create and it creates a server for you. Im trying to find how to make the exe so please help some.
So let me get this straight. You want someone here to tell you how to write a trojan?
Why not post your home address, and a couple of people will probably volunteer to pop round to your home and explain it to you...
Steve S
Developer for hire
|
|
|
|
|
CheesyPoofs wrote: I tried the but that dosn't work...
What did you try? What exactly does not work?
CheesyPoofs wrote: ...then you press enter to create an exe...
What would you expect the .exe file to do at this point?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Dude i have already written trojans. Im trying to learn something new that i could maybe add to one of my trojans. Anyways i have tried to use File I/O. Thats the ofstreams and ifstream.
|
|
|
|
|
CheesyPoofs wrote: Dude i have already written trojans.
Ok, so? I did not mention anything about them.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
So what you are asking is how to write a trojan?
You can embed any data you want into an EXE, including another EXE. You just store it as binary data in the resource table.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
I wouldn't consider it a trojan im trying to make. More of a monitering program. A trojan would be something where your think its something, but not. The monitering program I have made just needs a few adjustments. Like i would like others to use it, so instead of them having to edit the source code they can build a server from the client. That way they can put there ip in so that the server(more like a client since its reverse connecting)knows what to connect to. Also thx for the response Zac. You helped put me in the right direction.
|
|
|
|
|
I need to look at the HTTP packets for GET and POST transmitals to a web server, from a browser (IE, etc), in the case where a User is cliking on the SUBMIT button within a web page that has a Form on it.
We can use any browser, if that makes the job easier.
What I am trying to ultimately do is to mimic that action with my own C/C++ application.
Any help would be much appreciated.
Thanks,
Robert
|
|
|
|
|
It would be implemented in the way of a proxy application. Just listen in a free port and using it as a internet proxy
|
|
|
|
|
Thanks! Got it working.
Robert
|
|
|
|
|
Hello everybody, i have a SDI application and i need to call a window to display view of a database, i know CRecordView, but i want to call a new window inside my application to display a database view. how can i accomplish this? anyone got any suggestions?
|
|
|
|
|
ivanris wrote: ...i want to call a new window...
To create a new window, use the Create() function. Otherwise, be a bit more specific.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|