Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. gSOAP problem, who know this error message?

gSOAP problem, who know this error message?

Scheduled Pinned Locked Moved C / C++ / MFC
helpwcfxmlquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    simonchen net
    wrote on last edited by
    #1

    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]:zzz::-O

    M 1 Reply Last reply
    0
    • S simonchen net

      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]:zzz::-O

      M Offline
      M Offline
      Milton Karimbekallil
      wrote on last edited by
      #2

      could u be more specific? what code caused this issue? XMLHTTP? Cheers Milton KB

      S 1 Reply Last reply
      0
      • M Milton Karimbekallil

        could u be more specific? what code caused this issue? XMLHTTP? Cheers Milton KB

        S Offline
        S Offline
        simonchen net
        wrote on last edited by
        #3

        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", ""); soap_set_mime_attachment(soap, buff, nSize, SOAP_MIME_BINARY, "image/jpeg", "", 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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups