JBoss Community

Re: Problem with generated WSDL containing wsdl:import

created by Daniel Straub in JBoss AS 7 Development - View the full discussion

We solved this problem with this setting in the standalone/domain.xml :

 

  <subsystem xmlns="urn:jboss:domain:web:1.1" native="false" default-virtual-server="default-host">

            <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" proxy-name="YOUR_PROXY_HOST"  proxy-port="YOUR_PROXY_HOST_PORT"  />

 

  <subsystem xmlns="urn:jboss:domain:webservices:1.1">

            <modify-wsdl-address>true</modify-wsdl-address>

            <wsdl-host>YOUR_PROXY_HOST</wsdl-host>

             <wsdl-port>YOUR_PROXY_HOST_PORT</wsdl-port>

 

 

Not only the schema import has a incorrect address, but also the port type (so loadbalancing etc. doesn't work)

With this setting we get the correct wsdl like this :

   ...

 

  <types>

  <xsd:schema>

      <xsd:import namespace="..." schemaLocation="YOUR_PROXY_HOST:YOUR_PROXY_HOST_PORT" />

    <xsd:schema>

  </types>

  ...

<service name="...">

   port binding="..." name="....">

     <soap:address location="YOUR_PROXY_HOST:YOUR_PROXY_HOST_PORT" />

   </port>

<service>

  ....

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community