Forum Discussion

Tom's avatar
Tom
New Contributor
16 years ago

Can't Load WSDL in soapUI

I use soapUI to verify the validity of my project's WSDL(s).  I inherited a WSDL that imports its schema (xsd) file. I can view my URL?WSDL and my URL?WSDL/schema.xsd normally as expected in a browser. However, when I attempt to load the WSDL using soapUI, an unexpected element: TAG_END exception is thrown.

The soapUI log (essentailly) shows: http://host:port/contextPath//contextPa ... schema.xsd.

It looks like the import location of the schema is being appended onto the namespace, resulting in the URL with the "//" in the middle.

Snippet from WSDL:

namespace="http://webservices.project.company.com/AAA/BBB/" />
where AAA/BBB = contextPath, CCCImpl = serviceURI.

Can you offer a suggestion as to why this result may occur? Or perhaps, could the contextPath be at fault (i.e., too many /'s)?

Thank you in advance.
Tom.
 

3 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Tom,

    two observations from my side;

    1) It seems as if soapUI is not creating the correct path to your xsd, can you show the exact URL to the WSDL (with a bogus hostname) and import location attribute?

    2) Consider using a relative path to your xsd so you can host the wsdl/xsd(s) differently if required

    regards!

    /Ole
    eviware..com
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Tom,

    just wanted to follow  up on this, did you get the WSDL loaded ok?

    regards,

    /Ole
    eviware.com
  • Tom's avatar
    Tom
    New Contributor
    Hi Ole!

    Thanks for responding! I appreciate your help.

    Previously I've been using SoapUI 2.02.  Yesterday...
    SoapUI complained:  Mon Dec 29 13:23:01 MST 2008:ERROR:Failed to load url [https://some.company.com:443/GlobalServices/transfer//GlobalServices/transfer/GlobalServicesTransferImpl?WSDL/EnterpriseGS.xsd]

    Today, I started using SoapUI 2.5, which loaded the WSDL without error!  Cool!  So, maybe version 2.5 treats the double slashes as one slash???.

    Thanks again!
    Tom.