users@glassfish.java.net

Glassfish changes wsdl file when it is deployed

From: <glassfish_at_javadesktop.org>
Date: Thu, 24 May 2007 05:06:06 PDT

Hi

We are developing a web application that uses web services which needs to deployed on glassfish (application server 9 patch 1 update 1, bundled in j2ee5) . Today we have come across a problem:

When the application is deployed, glassfish changes the wsdl files for our web services. Among other things, it hardcodes the computers name into some location attributes in a couple of places. Depending on the computer setup, the computer name might change when you move a computer around on a network or when you simply disconnect the network cable. Unfortunately this means the web services will no longer work until you redeploy.

Can you somehow prevent glassfish from modifying the wsdl files upon deployment?

Can anyone think of another workaround?

Greatful for any help
/Kristofer

p.s. here is an example of what is changed...

Original wsdl:
<wsdl:import namespace="http://www.csapi.org/wsdl/parlayx/terminal_status/notification_manager/v2_2/interface" location="parlayx_terminal_status_notification_manager_interface_2_2.wsdl"/>

After deplyment:
<wsdl:import namespace="http://www.csapi.org/wsdl/parlayx/terminal_status/notification_manager/v2_2/interface" location="http://mycomputer.ericsson.se:8080/parlayx_gateway/ParlayXTsAccess/services/TerminalStatusNotificationManager/__container$publishing$subctx/WEB-INF/wsdl/parlayx_terminal_status_notification_manager_interface_2_2.wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"/>
[Message sent by forum member 'krippa' (krippa)]

http://forums.java.net/jive/thread.jspa?messageID=218680