About restbc Chinese garbled!

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

About restbc Chinese garbled!

BaoChuang
This post has NOT been accepted by the mailing list yet.
Done a restbc inbound demo.Request the message,the english message is ok,but the chinese was error.
English message:
<inputEPI xmlns="http://xml.netbeans.org/schema/inputSH">
  <inputAA>test rest</inputAA>
  <inputBB>test rest</inputBB>
</inputEPI>
Chinese message:
<inputEPI xmlns="http://xml.netbeans.org/schema/inputSH">
  <inputAA>你好</inputAA>
  <inputBB>我很好</inputBB>
</inputEPI>
Error message:
RESTBC-7102: Error while serving inbound request java.lang.Exception: RESTBC-7114: Error during inbound request java.lang.RuntimeException: BPJBI-6029: NormalizedMessage is not  JBI WSDL 1.1 message Message Content(Type): null
            Properties Count:   17
              Name: org.glassfish.openesb.rest.accept-languages
              Value: ["null"]
              Name: org.glassfish.openesb.rest.headers.connection
              Value: keep-alive
              Name: org.glassfish.openesb.rest.accept-types
              Value: ["text/html","application/xhtml+xml","application/xml;q=0.9","*/*;q=0.8"]
              Name: org.glassfish.openesb.rest.headers.user-agent
              Value: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0
              Name: org.glassfish.openesb.rest.path-params
              Value: {}
              Name: org.glassfish.openesb.rest.method
              Value: POST
              Name: org.glassfish.openesb.rest.headers.accept-language
              Value: null
              Name: org.glassfish.openesb.rest.headers.host
              Value: localhost:9696
              Name: org.glassfish.openesb.rest.headers.accept
              Value: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
              Name: org.glassfish.openesb.rest.url
              Value: http://localhost:9696/daoliEPI
              Name: org.glassfish.openesb.rest.headers.content-type
              Value: application/xml
              Name: org.glassfish.openesb.rest.headers.content-length
              Value: 128
              Name: org.glassfish.openesb.rest.param-style
              Value: QUERY
              Name: org.glassfish.openesb.rest.headers.accept-encoding
              Value: gzip, deflate
              Name: org.glassfish.openesb.rest.content-type
              Value: application/xml
              Name: org.glassfish.openesb.rest.params
              Value: {}
              Name: org.glassfish.openesb.rest.headers
              Value: {"content-type":"application/xml","connection":"keep-alive","host":"localhost:9696","accept-language":"null","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","content-length":"128","user-agent":"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0","accept-encoding":"gzip, deflate"}
            Attachments Count:  0

restbc inbound wsdl:
<definitions name="daoliEPI"
    targetNamespace="http://j2ee.netbeans.org/wsdl/daoliEPI/src/daoliEPI"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:rest="http://schemas.sun.com/jbi/wsdl-extensions/rest/"
    xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:tns="http://j2ee.netbeans.org/wsdl/daoliEPI/src/daoliEPI" xmlns:ns0="http://xml.netbeans.org/schema/inputSH">
    <types>
        <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/daoliEPI/src/daoliEPI">
            <xsd:import namespace="http://xml.netbeans.org/schema/inputSH" schemaLocation="inputSH.xsd"/>
        </xsd:schema>
    </types>
    <message name="daoliEPIRequest">
        <part name="part1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" element="ns0:inputEPI"/>
    </message>
    <message name="daoliEPIResponse">
        <part name="part1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" element="ns0:inputEPI"/>
    </message>
    <portType name="RestInboundPortType">
        <operation name="daoliEPI">
            <input name="daoliEPIInput" xmlns:tns="http://j2ee.netbeans.org/wsdl/daoliEPI/src/daoliEPI" message="tns:daoliEPIRequest"/>
            <output name="daoliEPIOutput" xmlns:tns="http://j2ee.netbeans.org/wsdl/daoliEPI/src/daoliEPI" message="tns:daoliEPIResponse"/>
        </operation>
    </portType>
    <binding name="RestInboundBinding" type="tns:RestInboundPortType">
        <rest:binding/>
        <operation name="daoliEPI">
            <rest:operation>
<![CDATA[
# optional, name of HTTP listener to bind to, defaults to "default-listener"
http-listener-name=default-listener

# required, path to this resource
path=/daoliEPI

# optional, HTTP verb to access the resource, defaults to GET
method=POST

# optional, acceptable MIME types for request payload, defaults to "application/json", "application/xml"
consume-types=[ "application/json;charset=utf-8", "application/xml;charset=utf-8" ]

# optional, all possible MIME types of response payload, defaults to "application/json", "application/xml"
produce-types=[ "application/json;charset=utf-8", "application/xml;charset=utf-8" ]

forward-as-attachment=false


]]></rest:operation>
            <input name="daoliEPIInput"/>
            <output name="daoliEPIOutput"/>
        </operation>
    </binding>
    <service name="RestInboundService">
        <port name="RestInboundWSDL_InboundPort" binding="tns:RestInboundBinding">
            <rest:address/>
        </port>
    </service>
    <plnk:partnerLinkType name="RestInboundWSDL">
       
        <plnk:role name="RestInboundPortTypeRole" portType="tns:RestInboundPortType"/>
    </plnk:partnerLinkType>
</definitions>
# optional, acceptable MIME types for request payload, defaults to "application/json", "application/xml"
consume-types=[ "application/json;charset=utf-8", "application/xml;charset=utf-8" ]

# optional, all possible MIME types of response payload, defaults to "application/json", "application/xml"
produce-types=[ "application/json;charset=utf-8", "application/xml;charset=utf-8" ]

forward-as-attachment=false

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: About restbc Chinese garbled!

David BRASSELY
Administrator
This post has NOT been accepted by the mailing list yet.
Please provide the full stack trace.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: About restbc Chinese garbled!

BaoChuang
This post has NOT been accepted by the mailing list yet.
OpenESB-SE-3.0.5

The project:
garbled.zip
Pl help.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: About restbc Chinese garbled!

BaoChuang
This post has NOT been accepted by the mailing list yet.
Need help! Is restBC of bugs? Who can be help me! Thank you!
I have found a lot of information, do not find a solution!
Loading...