[
https://jira.jboss.org/browse/JBIDE-6593?page=com.atlassian.jira.plugin.s...
]
Brian Fitzpatrick commented on JBIDE-6593:
------------------------------------------
Ok... I'm at a loss on this one. I'm setting the WSDL Reader to import
documents... Shouldn't that pick up the import?
public static Definition readWSDLURL(URL contextURL) throws WSDLException {
Properties props = System.getProperties();
String oldPropValue = props.getProperty(DEF_FACTORY_PROPERTY_NAME);
props.setProperty(DEF_FACTORY_PROPERTY_NAME, PRIVATE_DEF_FACTORY_CLASS);
WSDLFactory factory = WSDLFactory.newInstance();
WSDLReader wsdlReader = factory.newWSDLReader();
wsdlReader.setFeature(Constants.FEATURE_VERBOSE, false);
wsdlReader.setFeature("javax.wsdl.importDocuments", true); //$NON-NLS-1$
String context = null;
if (contextURL != null)
context = contextURL.toString();
Definition def = wsdlReader.readWSDL(context);
if (oldPropValue != null) {
props.setProperty(DEF_FACTORY_PROPERTY_NAME, oldPropValue);
} else {
props.remove(DEF_FACTORY_PROPERTY_NAME);
}
return def;
}
[tester] Sample soap message is not being generated for the second
service defined in a WSDL
--------------------------------------------------------------------------------------------
Key: JBIDE-6593
URL:
https://jira.jboss.org/browse/JBIDE-6593
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Webservices
Affects Versions: 3.2.0.M1
Reporter: Lukas Jungmann
Assignee: Brian Fitzpatrick
Attachments: imported.wsdl, original.wsdl, schema.xsd
-have attached wsdls/xsd
-load it into tester
-choose "gsearch_rss" service in service selection popup
=> generated SOAP msg is empty but should be:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
<soap:Body>
<GetSearchResults xmlns = "http://www.ecubicle.net/webservices">
<searchPage>?</searchPage>
<gQuery>?</gQuery>
<numOfResults>?</numOfResults>
</GetSearchResults>
</soap:Body>
</soap:Envelope>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira