[
https://jira.jboss.org/jira/browse/JBESB-3279?page=com.atlassian.jira.plu...
]
David Ward closed JBESB-3279.
-----------------------------
Resolution: Done
The fix was to add a property to the SOAPProxy action called "wsdlCharset"
(camel-case to be consistent with wsdlTransform, another supported property). If the user
defines a character encoding with this property, the wsdl will be read in as that charset,
before being transformed and displayed as UTF-8. Our contract JSP application and the
HttpGatewayServlet will always output UTF-8, to be consistent with WS Basic Profile. If
the wsdlCharset property is not defined, the charset returned by the HTTP Content-Type
response header (if the wsdl was loaded via http) will be attempted.
$ svn commit
Sending product/contract-web/src/main/webapp/contract.jsp
Sending product/contract-web/src/main/webapp/index.jsp
Sending product/docs/ProgrammersGuide.odt
Sending product/docs/ProgrammersGuide.pdf
Sending
product/rosetta/src/org/jboss/soa/esb/listeners/gateway/http/HttpGatewayServlet.java
Sending
product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/AbstractWsdlContractPublisher.java
Sending
product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/RemoteWsdlLoader.java
Sending
product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/proxy/SOAPProxy.java
Sending
product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/proxy/SOAPProxyWsdlLoader.java
Transmitting file data .........
Committed revision 32701.
character encoding problem with WSDL contracts
----------------------------------------------
Key: JBESB-3279
URL:
https://jira.jboss.org/jira/browse/JBESB-3279
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Web Services
Affects Versions: 4.8
Reporter: David Ward
Assignee: David Ward
Fix For: 4.9
Attachments: contract_encoding.zip
A user posted an issue where Russian characters are getting marred by the contract JSP
application, or WSDL getting chopped by the HttpGatewayServlet. (Please refer to the
JBoss Forum Reference link associated with this issue.)
In the original WSDL, (ItemService.wsdl), you see Russian characters like this:
<s:documentation xml:lang="RU">Öåëü:Öåëü</s:documentation>
If you front the ESB service with a JBR/HTTP gateway, the characters come out like this:
<s:documentation xml:lang="RU">????:????</s:documentation>
And if you front the ESB service with the HTTPGatewayServlet, the entire WSDL document
gets chopped:
XML Parsing Error: unclosed token
Location:
http://localhost:8080/contract_encoding/http/Examples/ItemService?wsdl
Line Number 1558, Column 11: <s:element minO
----------^
We need to handle the character encoding properly in both cases.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira