cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Bozzetto (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1895) Invalid character set UTF-8; action= urn:ihe:iti:2007:RetrieveDocumentSet in request in Contet-type
Date Tue, 04 Nov 2008 10:42:44 GMT

    [ https://issues.apache.org/jira/browse/CXF-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644939#action_12644939
] 

Andrea Bozzetto commented on CXF-1895:
--------------------------------------

Finally I did change the class HttpHeaderHelper in this way because HTTPConduit was not called
:

    public static String mapCharset(String enc) {
        if (enc == null) {
            return UTF8.name();
        }

	if (enc != null 
                && enc.indexOf(";") != -1) {
    		int idx2 = enc.indexOf(";");
   	 	if (idx2 != -1)
			enc = enc.substring(0, idx2).trim();
  	 	else
   	 		enc = enc.trim();
    			

            }

        // Charsets can be quoted. But it's quite certain that they can't have escaped quoted
or
        // anything like that.
        enc = enc.replace("\"", "");
        enc = enc.replace("'", "");
        if ("".equals(enc)) {
            return UTF8.name();
        }
        String newenc = encodings.get(enc);
        if (newenc == null) {
            try {
                newenc = Charset.forName(enc).name();
            } catch (IllegalCharsetNameException icne) {
                return null;
            } catch (UnsupportedCharsetException uce) {
                return null;
            }
            encodings.put(enc, newenc);
        }
        return newenc;
    }


bye


> Invalid character set UTF-8; action= urn:ihe:iti:2007:RetrieveDocumentSet in request
in Contet-type
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1895
>                 URL: https://issues.apache.org/jira/browse/CXF-1895
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1.3
>         Environment: Linux, Ubuntu 8.04
>            Reporter: Andrea Bozzetto
>
> Hi, I have a problem reading this soap Message, CXF throw  "java.io.IOException: Invalid
character set UTF-8; action= urn:ihe:iti:2007:RetrieveDocumentSet in request."
> POST /EuleroXDSRepository/repositoryb HTTP/1.1
> Content-Type: application/soap+xml; charset=UTF-8; action="urn:ihe:iti:2007:RetrieveDocumentSet"
> User-Agent: Axis2
> Host: 172.30.20.161:8888
> Transfer-Encoding: chunked
>  
> 2f3
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:To>http://localhost:8888/EuleroXDSRepository/repositoryb</wsa:To><wsa:MessageID>urn:uuid:F99C8EB3F258E6DC751225718664373</wsa:MessageID><wsa:Action>urn:ihe:iti:2007:RetrieveDocumentSet</wsa:Action></soapenv:Header><soapenv:Body><RetrieveDocumentSetRequest
xmlns="urn:ihe:iti:xds-b:2007" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>     <DocumentRequest>
>         <RepositoryUniqueId>urn:4a8afe2</RepositoryUniqueId>
>         <DocumentUniqueId>172.30.20.187262</DocumentUniqueId>
>     </DocumentRequest>
> </RetrieveDocumentSetRequest></soapenv:Body></soapenv:Envelope>
> 0
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message