-
Nov 8th, 2007, 03:12 PM
#11
The http log on the soapUI gives me the foll. error:
Thu Nov 08 16:05:01 EST 2007
EBUG:<< "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
-
Nov 9th, 2007, 01:09 PM
#12
Anyone else facing this problem ? Pls. help.
Thanks
Sunil
-
Nov 9th, 2007, 01:21 PM
#13
If you hit the wsdl url manually from your browser what do you get?
-
Nov 9th, 2007, 01:40 PM
#14
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
-
Nov 9th, 2007, 01:46 PM
#15
OK, and if you point SoapUI at that same URL you get a 405 error?
-
Nov 9th, 2007, 01:48 PM
#16
-
Nov 10th, 2007, 08:00 AM
#17
I'd double check the URL you're putting in SoapUI.
-
Nov 11th, 2007, 12:47 AM
#18
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.
-
Nov 11th, 2007, 06:48 AM
#19
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?
-
Nov 12th, 2007, 07:24 AM
#20
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
-
Forum Rules