[ http://issues.apache.org/jira/browse/AXISCPP-732?page=all ]
     
Mark Whitlock closed AXISCPP-732:
---------------------------------

    Resolution: Fixed

I have now fixed this problem by separating out SoapAttachmentReference from 
SoapAttachment. This allows a ISoapAttachment to be reused, and it also allows 
multiple references to point to the same attachment.

> Content-type header appears twice in MIME Header
> ------------------------------------------------
>
>          Key: AXISCPP-732
>          URL: http://issues.apache.org/jira/browse/AXISCPP-732
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Stub
>     Reporter: James Jose
>     Assignee: Mark Whitlock

>
> If the client program invokes a service more than once, then the content-type 
> attribute occurs twice in the request message.
>        
> Result=ws.echoContent(att);                           
>     cout<<Result<<endl;       
> Result=ws.getContentType(att);
>     cout<<Result<<endl;
> generated reuest message for the second call:
> --------=MIME_BOUNDARY--
> POST /DataHandlerService/services/DataHandlerService HTTP/1.1
> Host: localhost:13260
> SOAPAction: ""
> Content-Type: multipart/related; type="text/xml"; 
> boundary="------=MIME_BOUNDARY"; start="<2>"
> Content-Length: 859
> Content-Type: multipart/related; type="text/xml"; 
> boundary="------=MIME_BOUNDARY"; start="<3>"
> --------=MIME_BOUNDARY
> Content-Type: text/xml; charset=UTF-8
> Content-Transfer-Encoding: binary
> Content-Id: <3>
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> <SOAP-ENV:Body>
> <ns1:getContentType xmlns:ns1="http://datahandler.attachment.test.org";>
> <ns1:arg_0_0 href="cid:1";
>    xsi:type="ns2:DataHandler"
>    xmlns:ns2="http://xml.apache.org/xml-soap";
>    xsi:type="ns2:DataHandler"
>    xmlns:ns2="http://xml.apache.org/xml-soap"/>
> </ns1:getContentType>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> --------=MIME_BOUNDARY
> Content-Id: <1>
> Content-Type: text/plain
> Content-Transfer-Encoding: base64
> VGhpcyBpcyBhIHRlc3QgbWVzc2FnZSBmb3IgYXR0YWNobWVudA==
> --------=MIME_BOUNDARY--

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to