[jboss-dev-forums] [JBoss AS 7 Development] - Re: Problem with generated WSDL containing wsdl:import
Daniel Straub
do-not-reply at jboss.com
Thu Apr 26 14:49:04 EDT 2012
Daniel Straub [https://community.jboss.org/people/dastraub] created the discussion
"Re: Problem with generated WSDL containing wsdl:import"
To view the discussion, visit: https://community.jboss.org/message/732495#732495
--------------------------------------------------------------
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
[https://community.jboss.org/message/732495#732495]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120426/8422b2dc/attachment.html
More information about the jboss-dev-forums
mailing list