Results 1 to 2 of 2

Thread: WSDL import error on SOAP UI

  1. #1
    Join Date
    Jul 2007
    Location
    Mauritius
    Posts
    127

    Default 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. #2
    Join Date
    Jul 2007
    Location
    Mauritius
    Posts
    127

    Default

    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>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •