Web services OpenESB GlassFish-WSDL导入不正确的位置URL。

Web services OpenESB GlassFish-WSDL导入不正确的位置URL。,web-services,soap,wsdl,glassfish,open-esb,Web Services,Soap,Wsdl,Glassfish,Open Esb,我正在尝试将我的复合项目部署到生产环境中,该环境具有一个域,即 esbservices.mydomain.com 我通过此URL成功地从我的域获取WSDL。。。i、 e esbservices.mydomain.com/myproject/services/myservice?wsdl 但是,WSDL文档(甚至通过域访问)包含到其他WSDL文档的导入,路径为本地网络/计算机 <definitions targetNamespace="my-integration-composite">

我正在尝试将我的复合项目部署到生产环境中,该环境具有一个域,即

esbservices.mydomain.com

我通过此URL成功地从我的域获取WSDL。。。i、 e

esbservices.mydomain.com/myproject/services/myservice?wsdl

但是,WSDL文档(甚至通过域访问)包含到其他WSDL文档的导入,路径为本地网络/计算机

<definitions targetNamespace="my-integration-composite"><import namespace="http://j2ee.netbeans.org/wsdl/my-integration-services/new-transactions" location="http://my-pc-name.com:9080/my-integration-composite-sun-http-binding/my-integration-services/channel/smsc/inbound/wsdl/new-transactions.wsdl">
    </import><import namespace="http://j2ee.netbeans.org/my/wsdl/my-transactions" location="http://my-pc-name.com:9080/my-integration-composite-sun-http-binding/my-integration-services/transaction/common/wsdl/my-transactions.wsdl">
    </import><import namespace="http://j2ee.netbeans.org/wsdl/my-integration-services/other-transactions" location="http://my-pc-name.com:9080/my-integration-composite-sun-http-binding/my-integration-services/channel/ivr/inbound/wsdl/other-transactions.wsdl">
    </import><portType name="dummyCasaPortType">
  </portType>


我想摆脱这个,并能够使用它。因为当有人试图从其他网络生成web服务客户端时,它失败了

在GlassFish ESB v2.2中,与之前的GlassFish ESB v2.1一样,URL中指定的主机名很重要。指定“localhost”作为主机名时可能会生成不同的工件,指定主机的FQDN时可能会生成不同的工件,指定别名主机名时可能会生成不同的工件(FQDN的替代名称,可能在“hosts”文件中指定)。如果别名引用127.0.0.1,则不会正确生成工件

最好的策略是使用服务部署到的主机的FQDN。这将生成正确的工件