-
Oct 31st, 2007, 08:34 AM
#1
Handling multiple xsd's in wsdl
How do you specify to expose the dependant multiple xsd's ? Read here on the forums, that there was Jira open(http://opensource.atlassian.com/proj...browse/SWS-162) to handle multiple xsd's in the wsdl.
Am getting an exception that the foll. property is not available, when I specify the foll. property in the spring servlet. Where can I get the fix for this?
<property name="followIncludeImport" value="true"/>
Appreciate your help.
Thanks
Sunil
-
Oct 31st, 2007, 11:41 AM
#2
That was fixed for Spring-WS 1.0.2, which hasn't been released yet.
If you want to use it now you can pull down one of the nightly snapshots...
http://static.springframework.org/sp...snapshots.html
-
Oct 31st, 2007, 11:51 AM
#3
Ray.
Any idea when is the Spring-WS 1.0.2 release date ?
Thanks
Sunil
-
Oct 31st, 2007, 11:52 AM
#4
Only Arjen can answer that 
I'm not one of the developers anyway :P
-
Oct 31st, 2007, 12:15 PM
#5
ok. I dont use, Maven for build. Am using Ant build. How do I download the necessary nightly snapshot for this fix ?
Thanks
Sunil
-
Nov 1st, 2007, 06:00 AM
#6
Hopefully, I will be able to release 1.0.2 this Friday. However, some new issues have been logged recently (which is a good thing
), which I'd like to fix for 1.0.2 as well.
-
Nov 1st, 2007, 03:12 PM
#7
Thanks Arjen. In the meantime, I wish to test out this. Where can I get the jar file or the class which has the fix for this issue ? Pls. let me know.
Thanks
Sunil
-
Nov 5th, 2007, 10:43 AM
#8
-
Nov 8th, 2007, 02:46 PM
#9
I downloaded the spring-ws 1.0.2, and am trying to test the webservice using the soapUI client. Am specifying add wsdl from url, and I get the following error:
ERROR:Error importing wsdl: org.apache.xmlbeans.XmlException: error: </body> does not close tag <HR>.
Have modified the MTOM sample to import another xsd. Both my xsd's are in the WEB-INF directory. Believe this was fixed in 1.0.2. What am I doing wrong?
Any help higly appreciated. As we dont want to distribute the wsdl manually.
Here's my spring servlet xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean id="imageRepository" class="org.spring.ws.samples.mtom.service.StubImag eRepository"/>
<bean class="org.spring.ws.samples.mtom.ws.ImageReposito ryEndpoint">
<constructor-arg ref="imageRepository"/>
</bean>
<bean class="org.springframework.ws.server.endpoint.mapp ing.PayloadRootAnnotationMethodEndpointMapping"/>
<bean class="org.springframework.ws.server.endpoint.adap ter.MarshallingMethodEndpointAdapter">
<constructor-arg ref="marshaller"/>
</bean>
<bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshalle r">
<property name="contextPath" value="org.spring.ws.jaxb.mtom.schema"/>
<property name="mtomEnabled" value="true"/>
</bean>
<bean id="mtom" class="org.springframework.ws.wsdl.wsdl11.DynamicW sdl11Definition">
<property name="builder">
<bean class="org.springframework.ws.wsdl.wsdl11.builder. XsdBasedSoap11Wsdl4jDefinitionBuilder">
<property name="schema" value="/WEB-INF/schema.xsd"/>
<property name="followIncludeImport" value="true"/>
<property name="portTypeName" value="ImageRepository"/>
<property name="locationUri" value="http://localhost:8080/mtom/"/>
</bean>
</property>
</bean>
</beans>
This is my schema.xsd
<?xml version="1.0"?>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.springframework.org/ws/samples/mtom/schema"
xmlns:tns="http://www.springframework.org/ws/samples/mtom/schema"
xmlns:comm="http://www.springframework.org/ws/samples/common"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xmime="http://www.w3.org/2005/05/xmlmime" elementFormDefault="qualified">
<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>
This is the common.xsd
<?xml version="1.0"?>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.springframework.org/ws/samples/common"
xmlns:tns="http://www.springframework.org/ws/samples/common"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xmime="http://www.w3.org/2005/05/xmlmime" elementFormDefault="qualified">
<xsd:complexType name="RequestType">
<xsd:sequence>
<xsd:element name="username" type="xsd:string"/>
<xsd:element name="client" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
Thanks
Sunil
-
Nov 8th, 2007, 03:03 PM
#10
"</body> does not close tag <HR>"
That to me looks like your webserver returned you an html page. More than like a 404 error page or maybe a 500 internal server error page.
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