Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33

Thread: Handling multiple xsd's in wsdl

  1. #1

    Default 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

  2. #2
    Join Date
    Oct 2004
    Posts
    207

    Default

    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

  3. #3

    Default

    Ray.

    Any idea when is the Spring-WS 1.0.2 release date ?

    Thanks
    Sunil

  4. #4
    Join Date
    Oct 2004
    Posts
    207

    Default

    Only Arjen can answer that

    I'm not one of the developers anyway :P

  5. #5

    Default

    ok. I dont use, Maven for build. Am using Ant build. How do I download the necessary nightly snapshot for this fix ?

    Thanks
    Sunil

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

    Default

    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.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  7. #7

    Default

    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

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

  9. #9

    Default

    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

  10. #10
    Join Date
    Oct 2004
    Posts
    207

    Default

    "</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
  •