Bug 1214550 - (6.0.x) HTTP headers are not available with SwitchYard SOAP binding
Summary: (6.0.x) HTTP headers are not available with SwitchYard SOAP binding
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: SwitchYard
Version: 6.0.0 GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: CR1
: ---
Assignee: Rob Cernich
QA Contact: ppecka
URL:
Whiteboard:
Depends On: 1214544
Blocks: 1214695
TreeView+ depends on / blocked
 
Reported: 2015-04-23 04:30 UTC by Tadayoshi Sato
Modified: 2025-02-10 03:47 UTC (History)
5 users (show)

Fixed In Version:
Clone Of: 1214544
Environment:
Last Closed: 2025-02-10 03:47:33 UTC
Type: Support Patch
Embargoed:


Attachments (Terms of Use)
bean-service.zip (27.45 KB, application/zip)
2015-04-23 04:31 UTC, Tadayoshi Sato
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SWITCHYARD-2236 0 Critical Resolved http headers in soap binding are broken 2018-04-30 20:04:31 UTC

Description Tadayoshi Sato 2015-04-23 04:30:43 UTC
+++ This bug was initially created as a clone of Bug #1214544 +++

Description of problem:
Platform BZ for https://issues.jboss.org/browse/SWITCHYARD-2236

Even if context mapper is set to includes=".*" for SOAP binding, HTTP headers are not propagated.


Version-Release number of selected component (if applicable):
n/a


How reproducible:
100%


Steps to Reproduce:
1. Run 'mvn test' against the attached reproducer (bean-service.zip).
2. Confirm no HTTP headers are propagated to OrderService in the trace log:

12:45:12,839 INFO  [org.apache.cxf.services.OrderService.OrderServicePort.OrderService] Inbound Message
----------------------------
ID: 1
Address: http://localhost:18001/quickstart-bean/OrderService
Encoding: UTF-8
Http-Method: POST
Content-Type: application/soap+xml; charset=UTF-8
Headers: {connection=[keep-alive], Content-Length=[392], content-type=[application/soap+xml; charset=UTF-8], Host=[localhost:18001], User-Agent=[Apache-HttpClient/4.2.6.redhat-3 (java 1.5)]}
Payload: <?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header/>
	<soap:Body>
		<orders:submitOrder xmlns:orders="urn:switchyard-quickstart:bean-service:1.0">
			<order>
				<orderId>PO-19838-XYZ</orderId>
				<itemId>BUTTER</itemId>
				<quantity>200</quantity>
			</order>
		</orders:submitOrder>
	</soap:Body>
</soap:Envelope>

--------------------------------------
12:45:12,910 INFO  [org.switchyard.handlers.MessageTraceHandler] 
------- Begin Message Trace -------
Consumer -> {urn:switchyard-quickstart:bean-service:0.1.0}OrderService
Provider -> [unassigned]
Operation -> submitOrder
MEP -> IN_OUT
Phase -> IN
State -> OK
Exchange Context -> 
    CamelCreatedTimestamp ..........................: Thu Apr 23 12:45:12 JST 2015
    CamelFilterMatched .............................: false
    CamelToEndpoint ................................: direct://%7Burn:switchyard-quickstart:bean-service:0.1.0%7DOrderService
    org.switchyard.bus.camel.consumer ..............: ServiceReference [name={urn:switchyard-quickstart:bean-service:0.1.0}OrderService, interface=SWITCHYARD010007: BaseServiceInterface [type=wsdl, operations=[SWITCHYARD010008: submitOrder : IN_OUT  : [{urn:switchyard-quickstart:bean-service:1.0}submitOrder, {urn:switchyard-quickstart:bean-service:1.0}submitOrderResponse, null]]], domain=ServiceDomain [name=org.switchyard.domains.root]]
    org.switchyard.bus.camel.contract ..............: org.switchyard.metadata.BaseExchangeContract@50e6cb7e
    org.switchyard.bus.camel.dispatcher ............: org.switchyard.bus.camel.ExchangeDispatcher@6039e6b0
    org.switchyard.bus.camel.labels ................: {org.switchyard.exchangeGatewayName=[org.switchyard.label.behavior.transient], org.switchyard.exchangeInitiatedNS=[org.switchyard.label.behavior.transient], org.switchyard.security.context.SecurityContext=[org.switchyard.label.behavior.transient]}
    org.switchyard.bus.camel.phase .................: IN
    org.switchyard.bus.camel.replyHandler ..........: org.switchyard.component.common.SynchronousInOutHandler@79585e2a
    org.switchyard.exchangeGatewayName .............: _OrderService_soap_1
    org.switchyard.exchangeInitiatedNS .............: 60562112980679
    org.switchyard.security.context.SecurityContext : DefaultSecurityContext@619513442[systemUUID=c96abdca-87be-458f-a7ab-c1e1e517f33e, expirationMillis=0, credentials=[ConfidentialityCredential@1161699038[confidential=false]], securityDomainsToSubjects={}]
Message Context -> 
    Accept ..............................: application/soap+xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    breadcrumbId ........................: ID-reunion-42724-1429760707015-4-1
    org.switchyard.bus.camel.labels .....: {org.switchyard.contentType=[org.switchyard.label.behavior.transient], org.switchyard.bus.camel.messageSent=[org.switchyard.label.behavior.transient], Accept=[org.switchyard.label.endpoint.http, org.switchyard.label.component.soap]}
    org.switchyard.bus.camel.messageSent : true
    org.switchyard.contentType ..........: {urn:switchyard-quickstart:bean-service:1.0}submitOrder
    org.switchyard.messageId ............: ID-reunion-42724-1429760707015-4-1
    org.switchyard.soap.messageName .....: submitOrder
Message Content -> 
<orders:submitOrder xmlns:orders="urn:switchyard-quickstart:bean-service:1.0">
			<order>
				<orderId>PO-19838-XYZ</orderId>
				<itemId>BUTTER</itemId>
				<quantity>200</quantity>
			</order>
		</orders:submitOrder>

------ End Message Trace -------


Actual results:
- HTTP headers are not propagated.


Expected results:
- HTTP headers should be propagated.


Additional info:
n/a

Comment 1 Tadayoshi Sato 2015-04-23 04:31:08 UTC
Created attachment 1017702 [details]
bean-service.zip

Comment 5 Red Hat Bugzilla 2025-02-10 03:47:33 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


Note You need to log in before you can comment on or make changes to this bug.