Announcement Announcement Module
Collapse
No announcement yet.
WSDL import error on SOAP UI Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • WSDL import error on SOAP UI

    Hi guys,

    I have exposed my wsdl and I am able to access it on a browser with the URL below
    http://localhost:8080/custid-service...chService.wsdl


    However, when I attempt to load it from Soap UI there is a failure which says

    Error loading [http://localhost:8080/custid-service...hrequest.xsd]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error:
    The fact that my XSD is in my WEB-INF folder, it will obviously not be able to retrieve it that way. And I have defined the location in my wsdl as follows

    Code:
       <wsdl:types>
            <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                <xsd:import namespace="http://mycompany/schemas/1/00" 
                		schemaLocation="cust_searchrequest.xsd"/>
            </xsd:schema>
        </wsdl:types>
    How should I be configuring the WSDL such that it picks up the XSD from the WEB-INF folder? Or let me know if it should be in the webapp folder directly.

    Cheers
    Kris

  • #2
    I thought I would just document the solution for myself


    Code:
    <sws:dynamic-wsdl id="customerSearchServiceInterface"  
        	portTypeName="CustomerSearchServicePort"                                                         
        	locationUri="http://server:port/customerSearchService/"                                                       
       		 targetNamespace="http://mycompany/definitions">      
       		                          
      		<sws:xsd location="/WEB-INF/customerSearchService-request.xsd"/>                                              
    	</sws:dynamic-wsdl>

    Comment

    Working...
    X