Bug 780931 (SOA-3398)

Summary: Quickstart bpel_esb_helloworld_saml not runnable with CXF
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Filip Nguyen <fnguyen>
Component: JBossWSAssignee: Gary Brown <gary.pi4tech>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.2.0.ER4CC: fnguyen
Target Milestone: ---   
Target Release: 5.2.0 GA, 5.2.0.ER5   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3398
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-21 08:56:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Filip Nguyen 2011-09-21 08:35:02 UTC
project_key: SOA

Fix SOA-3285 introduced another bug - the quickstart is not runnable with CXF. Problem upon running the QS: 

{code:title=Exception|borderStyle=solid}
10:24:22,667 ERROR [org.jboss.soa.bpel.runtime.ws.WebServiceClient] WS invocation failed
org.apache.cxf.wsdl11.WSDLRuntimeException: Part Security defined as element {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security which is not in the schema.
{code} 


CXF requires the schema to locate the Types. In my opinion best solution is to define wsse:Security element type directly in the WSDLs (./bpelContent/HelloWorld.wsdl, ./bpelContent/HelloWorldProxy.wsdl, ./bpelContent/HelloWorldWS.wsdl) to avoid SOA-3285+this issue.

Comment 1 Filip Nguyen 2011-09-21 08:35:30 UTC
Link: Added: This issue relates to SOA-3285


Comment 2 Filip Nguyen 2011-09-21 12:31:48 UTC
It seems that there is a common solution to all of this. Using include instead of import seems to work for both Native and CXF stacks: 

{code:title=WSDL|borderStyle=solid}
...
 <types>
  ...
    <xsd:schema targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://www.w3.org/2001/XMLSchema">
     <xsd:include  schemaLocation="oasis-200401-wss-wssecurity-secext-1.0.xsd" />     
   </xsd:schema>
 </types>
...
{code}

Comment 3 Anne-Louise Tangring 2011-09-27 18:30:33 UTC
Candidate for 5.2

Comment 4 Gary Brown 2011-09-29 09:28:16 UTC
Thanks for the solution Filip.

Comment 5 David Le Sage 2011-09-29 23:01:53 UTC
Release Notes Docs Status: Added: Not Required
Writer: Added: dlesage


Comment 6 Filip Nguyen 2011-10-21 08:56:43 UTC
Verified in ER5.