How to configure a web service generated by WebLogic 10.3.6 using JAX-WS to include an object schema within a single WSDL file declaration instead of an import declaration?
Code example:
Interface
import javax.ejb.Local; @Local public interface CustomerBeanLocal { public void updateCustomer(Customer customer); }
Bean Session
import javax.ejb.Stateless; import javax.jws.WebService; @Stateless @WebService public class CustomerBean implements CustomerBeanLocal { @Override public void updateCustomer(Customer customer) {
Created by WSDL
We want the schema definitions not to be imported with the <xsd:import> in the example below, but to be declared inside the WSDL, which means that all contract information is in the same WSDL file. No dependencies on other files.
<types> <xsd:schema> <xsd:import namespace="http://mybeans/" schemaLocation="http://192.168.10.1:7001/CustomerBean/CustomerBeanService?xsd=1" /> </xsd:schema> </types>
The same code with WildFly includes schema types inside WSDL and does not use the import function. After some research, I did not find a way to configure bean / server to do this in WebLogic (I did not find JAX-WS or WebLogic's own properties for this).
I understand the benefits of having an exported schema (reuse, etc.), but it is a project requirement that types be declared inside WSDL and not imported.
java wsdl web-services jax-ws weblogic
Bonanzaone
source share