8 Replies Latest reply on Jan 18, 2010 11:37 PM by David Ward

    WSDL import problem with SOAPProxy action

    Leon Doud Newbie

      Hello,

      I'm running into a problem while trying to use the new (ESB 4.7) SOAPProxy action with a WSDL that imports a schema file using a relative path.

      The wsdl attribute of the SOAPProxy contains a http url, http://localhost:8080/services/service_name?wsdl. The imported schema url in the WSDL is ../schema/morestuff.xsd.

      The problem appears to be that when JBossWSDLReaderImpl tries to resolve the url for the imported schema file the path is relative to the root of the default server and not relative to http://localhost:8080/services.

      Here is the stack trace:

      Caused by: java.lang.IllegalArgumentException: Cannot resolve imported resource: file:/D:/tools/jboss-5.1.0.GA_esb4.7/server/..../morestuff.xsd
      at org.jboss.ws.tools.wsdl.WSDLLocatorImpl.getImportInputSource(WSDLLocatorImpl.java:139)
      at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.parseImport(JBossWSDLReaderImpl.java:398)
      at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.parseDefinitions(JBossWSDLReaderImpl.java:322)
      at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2292)
      at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2256)
      at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2309)
      at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2330)
      at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2362)
      at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128)
      at org.jboss.soa.esb.actions.soap.proxy.SOAPProxyWsdlLoader.loadDefinitions(SOAPProxyWsdlLoader.java:102)
      at org.jboss.soa.esb.actions.soap.proxy.SOAPProxy.(SOAPProxy.java:145)

      I'm trying to use SOAPProxy to replace the SOAPClient action that used to do something similiar. The SOAPClient didn't have this issue with the import.

      Any ideas?

      Thanks in advance,
      Leon