Bug 856600 - Imported XSDs in WSDL are rewritten wrongly by JBR Gateway
Summary: Imported XSDs in WSDL are rewritten wrongly by JBR Gateway
Keywords:
Status: NEW
Alias: None
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: JBossESB
Version: 5.3.0 GA
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-12 11:54 UTC by Tadayoshi Sato
Modified: 2021-10-15 11:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBESB-3844 0 Major Open Imported XSDs in WSDL are rewritten wrongly by JBR Gateway 2012-11-27 15:28:11 UTC

Description Tadayoshi Sato 2012-09-12 11:54:21 UTC
Description of problem:
Platform BZ for https://issues.jboss.org/browse/JBESB-3844

Turning 'cache-schemas' introduced by JBESB-3802 to true doens't rewrite the schema imports in WSDLs correctly for the JBoss Remoting Gateway. The definitions/import/@location or the definitions/types/schema/import/@schemaLocation in a WSDL should be rewritten to:
http://localhost:8080/contract/contract.jsp?wsdl&serviceCat=MyCategory&serviceName=MyService&protocol=http&resource=hello.xsd
but actually:
http://localhost:8765/?wsdl&resource=hello.xsd
where the JBR gateway is configured at http://localhost:8765.


How reproducible:
Easy


Steps to Reproduce:
1. Make a contract-first web service whose WSDL contains XSD imports and deploy it to SOA-P.
2. Make an ESB service which proxies the above web service using SOAPProcessor or SOAPProxy and re-publishes it through JBR Gateway/HTTP and deploy it to SOA-P.
3. Check the proxied WSDL from the contract web.


Actual results:
The schemaLocation attribute of an imported XSD looks like:
http://localhost:8765/?wsdl&resource=hello.xsd


Expected results:
The schemaLocation attribute should be like:
http://localhost:8080/contract/contract.jsp?wsdl&serviceCat=MyCategory&serviceName=MyService&protocol=http&resource=hello.xsd


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