You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Dave Meier (JIRA)" <ji...@apache.org> on 2006/11/27 22:04:21 UTC

[jira] Commented: (AXIS2C-431) MTOM fails with C# client due to repeated charset specification in HTTP Header

    [ http://issues.apache.org/jira/browse/AXIS2C-431?page=comments#action_12453703 ] 
            
Dave Meier commented on AXIS2C-431:
-----------------------------------

Sorry, forgot to fill in the version - this is with the latest code from svn.

> MTOM fails with C# client due to repeated charset specification in HTTP Header
> ------------------------------------------------------------------------------
>
>                 Key: AXIS2C-431
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-431
>             Project: Axis2-C
>          Issue Type: Bug
>            Reporter: Dave Meier
>            Priority: Blocker
>
> I'm using Axis2C as my server and have mtom enabled there.
> I'm using Visual Studio 2005 C# with WSE 3.0 on the client side.  I have enabled MTOM on the client.  I issue a web service call from the client and get this error when c# parses the response.
> Item has already been added. Key in dictionary: 'charset'  Key being added: 'charset'
> The problem lies in the HTTP Header of the response which has two charset entries:
> <HTTPHeaders>
>     <content-type>multipart/related; boundary=MIMEBoundaryda478ea0-894b-46af-94f4-45eee848a3a9; type="application/xop+xml"; start="<0....@apache.org>"; start-info="text/xml"; charset="UTF-8";charset=UTF-8</content-type>
>     <connection>Keep-Alive</connection>
>     <content-length>472</content-length>
> </HTTPHeaders>
> Here is the HTTP Header from the request:
> <HTTPHeaders>
>     <user-agent>Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.42)</user-agent>
>     <vsdebuggercausalitydata>uIDPo38UGewlRKNGpJGlyRpCe50AAAAA5th5sR8KGUa7Wq5mQmg1hcFCN5nvo4xGj9ipA9c/HYoACAAA</vsdebuggercausalitydata>
>     <soapaction>""</soapaction>
>     <host>localhost:9091</host>
>     <content-type>multipart/related; type="application/xop+xml"; boundary=--MIMEBoundary633002286379805984; start="<0....@example.org>"; start-info="text/xml; charset=utf-8"</content-type>
>     <content-length>2106</content-length>
>     <expect>100-continue</expect>
>     <connection>Keep-Alive</connection>
> </HTTPHeaders>
> Also, I noticed that the request itself has more than one charset.  Here's the request message:
> ----MIMEBoundary633002286379805984
> content-id: <0....@example.org>
> content-type: application/xop+xml; charset=utf-8; type="text/xml; charset=utf-8"
> content-transfer-encoding: binary
> <soap:Envelope xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><soap:Header><wsa:Action></wsa:Action><wsa:MessageID>urn:uuid:09d4b6e2-365b-43ff-84ae-792b8bdfeed0</wsa:MessageID><wsa:ReplyTo><wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address></wsa:ReplyTo><wsa:To>http://localhost:9091/axis2/services/ttwebservices</wsa:To><wsse:Security><wsu:Timestamp wsu:Id="Timestamp-de0b2e82-c179-48eb-bd36-c09c726ae034"><wsu:Created>2006-11-27T20:50:37Z</wsu:Created><wsu:Expires>2006-11-27T20:55:37Z</wsu:Expires></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><CreatePrimaryItem xmlns="urn:ttwebservices"><auth><userId>bill</userId><password>b</password><hostname xsi:nil="true" /></auth><projectID>16</projectID><item><genericItem><itemID xsi:nil="true" /><itemName>BUG</itemName></genericItem><classification>Image Builder</classification><title>my tiæ?¥æ?¬äººã?ã??く使tle</title><description>my desc</description><createdBy>bill</createdBy><createDate>2006-01-01T00:12:12</createDate><modifiedBy>bill</modifiedBy><modifiedDate>2006-01-01T00:12:12</modifiedDate><activeInactive>true</activeInactive><state>Waiting</state><owner>joe</owner><extendedFieldList><name>FOUND_IN_VERSION</name><values>v1.1</values><values>foo</values></extendedFieldList><extendedFieldList><name>FUNCTIONAL_AREA</name><values>Help</values><values>foo</values></extendedFieldList></item></CreatePrimaryItem></soap:Body></soap:Envelope>
> ----MIMEBoundary633002286379805984--
> And here is the response message from Axis2C:
> --MIMEBoundaryda478ea0-894b-46af-94f4-45eee848a3a9
> content-transfer-encoding: binary
> content-id: <0....@apache.org>
> content-type: application/xop+xml; charset=UTF-8; type="text/xml";
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header></soapenv:Header><soapenv:Body></soapenv:Body></soapenv:Envelope>
> --MIMEBoundaryda478ea0-894b-46af-94f4-45eee848a3a9--

-- 
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org