Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 33

Thread: Handling multiple xsd's in wsdl

  1. #11

    Default

    The http log on the soapUI gives me the foll. error:

    Thu Nov 08 16:05:01 EST 2007EBUG:<< "HTTP/1.1 405 Method Not Allowed"
    The specified HTTP method is not allowed for the requested resource

    But if copy the wsdl & xsd manually to a local folder, and Add wsdl from file in the soapUI client, am successfully able to load.

    I think this is related to the Issue SWS-162.

    Thanks
    Sunil

  2. #12

    Default

    Anyone else facing this problem ? Pls. help.

    Thanks
    Sunil

  3. #13
    Join Date
    Oct 2004
    Posts
    207

    Default

    If you hit the wsdl url manually from your browser what do you get?

  4. #14

    Default

    Ray.

    This is the response I get when I hit the wsdl url manually:

    <?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:schema="http://www.springframework.org/ws/samples/mtom/schema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://www.springframework.org/ws/samples/mtom/schema">
    <wsdl:types>
    <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:comm="http://www.springframework.org/ws/samples/common" xmlns:tns="http://www.springframework.org/ws/samples/mtom/schema" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.springframework.org/ws/samples/mtom/schema">

    <xsd:import namespace="http://www.springframework.org/ws/samples/common" schemaLocation="common.xsd"/>

    <xsd:element name="StoreImageRequest" type="tns:Image"/>

    <xsd:element name="LoadImageRequest" type="xsd:string"/>

    <xsd:element name="LoadImageResponse" type="tns:Image"/>

    <xsd:complexType name="Image">
    <xsd:sequence>
    <xsd:element name="request" type="comm:RequestType"/>
    <xsd:element name="name" type="xsd:string"/>
    <xsd:element name="image" type="base64Binary" xmime:expectedContentTypes="image/png"/>
    </xsd:sequence>
    </xsd:complexType>

    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="LoadImageRequest">
    <wsdl:part element="schema:LoadImageRequest" name="LoadImageRequest">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="StoreImageRequest">
    <wsdl:part element="schema:StoreImageRequest" name="StoreImageRequest">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="LoadImageResponse">
    <wsdl:part element="schema:LoadImageResponse" name="LoadImageResponse">
    </wsdl:part>
    </wsdl:message>
    <wsdl:portType name="ImageRepository">
    <wsdl:operation name="LoadImage">
    <wsdl:input message="schema:LoadImageRequest" name="LoadImageRequest">
    </wsdl:input>
    <wsdl:output message="schema:LoadImageResponse" name="LoadImageResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="StoreImage">
    <wsdl:input message="schema:StoreImageRequest" name="StoreImageRequest">
    </wsdl:input>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="ImageRepositoryBinding" type="schema:ImageRepository">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="LoadImage">
    <soap:operation soapAction=""/>
    <wsdl:input name="LoadImageRequest">
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="LoadImageResponse">
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="StoreImage">
    <soap:operation soapAction=""/>
    <wsdl:input name="StoreImageRequest">
    <soap:body use="literal"/>
    </wsdl:input>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="ImageRepositoryService">
    <wsdl:port binding="schema:ImageRepositoryBinding" name="ImageRepositoryPort">
    <soap:address location="http://localhost:8080/mtom/"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

    Thanks
    Sunil

  5. #15
    Join Date
    Oct 2004
    Posts
    207

    Default

    OK, and if you point SoapUI at that same URL you get a 405 error?

  6. #16

    Default

    Thats right Ray.

  7. #17
    Join Date
    Oct 2004
    Posts
    207

    Default

    I'd double check the URL you're putting in SoapUI.

  8. #18
    Join Date
    Jun 2005
    Location
    Australia
    Posts
    16

    Default

    What happens if you attempt to get common.xsd via the browser (same url, just replace the wsdl filename with common.xsd)? SOAP UI will try and retrieve that as well.

  9. #19
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    You might need to change your servlet mapping, so that the common XSD URL is not handled by the servlet, but the common.xsd is returned. Common.xsd is in the web-app root, isn't it?
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  10. #20

    Default followIncludeImport

    Hi,

    I have added the the followIncludeImport attr to the WSDL builder

    <property name="builder">
    <bean class="...XsdBasedSoap11Wsdl4jDefinitionBuilder">
    <property name="schema" value="/WEB-INF/mySchema.xsd"/>
    <property name="followIncludeImport" value="true"/>
    <property name="portTypeName" value="mySchema"/>
    <property name="locationUri" value=".../Server/services"/>
    </bean>
    </property>

    However, the xsd's included in mySchema still do not show up in the WSDL (only as <xs:include schemaLocation="included.xsd" />). Am I forgetting something?

    Thanks
    Eugene

Posting Permissions

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