[User] RESTBC - unexpected XML header when using text/plain

Dave Woodman dave at naffnet.org.uk
Thu Jul 12 15:05:47 BST 2018


In case they are of any use, some more details - I'd love to know what I am
doing wrong (or failing to do right :-) ).

The BPEL design - as simple as simple can be:-
 
<http://openesb-community-forum.794670.n2.nabble.com/file/t395940/SimpleCA.png> 


The mapping;-
<http://openesb-community-forum.794670.n2.nabble.com/file/t395940/mapper.png> 

The result:-
<http://openesb-community-forum.794670.n2.nabble.com/file/t395940/result.png> 

And finally, the WSDL used:-

<definitions name="newWSDL"
    targetNamespace="http://j2ee.netbeans.org/wsdl/RESTtest/src/newWSDL"
    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/RESTtest/src/newWSDL">
    <types>
        <xsd:schema
targetNamespace="http://j2ee.netbeans.org/wsdl/RESTtest/src/newWSDL"/>
    </types>
    <message name="TestRequest">
        <part name="part1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
type="xsd:anyType"/>
    </message>
    <message name="TestResponse">
        <part name="part1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
type="xsd:anyType"/>
    </message>
    <portType name="RestInboundPortType">
        <operation name="Test">
            <input name="TestInput"
xmlns:tns="http://j2ee.netbeans.org/wsdl/RESTtest/src/newWSDL"
message="tns:TestRequest"/>
            <output name="TestOutput"
xmlns:tns="http://j2ee.netbeans.org/wsdl/RESTtest/src/newWSDL"
message="tns:TestResponse"/>
        </operation>
    </portType>
    <binding name="RestInboundBinding" type="tns:RestInboundPortType">
        <rest:binding/>
        <operation name="Test">
            <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=/test/path 

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

# optional, acceptable MIME types for request payload, defaults to
"application/json", "application/xml"
consume-types=[ "text/plain" ]

# optional, all possible MIME types of response payload, defaults to
"application/json", "application/xml"
produce-types=[ "text/plain" ]

forward-as-attachment=false

]]></rest:operation>
            <input name="TestInput"/>
            <output name="TestOutput"/>
        </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>






--
Sent from: http://openesb-community-forum.794670.n2.nabble.com/


More information about the User mailing list