Created by
Kamil Banach
last modified
| <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns:tns="http:///webapp.xxx.elwin013.com/UserService"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http:///webapp.xxx.elwin013.com/UserService">
<xsd:element name="RegisterUserRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="username" type="xsd:string" maxOccurs="1" minOccurs="1" />
<xsd:element name="password" type="xsd:string" maxOccurs="1" minOccurs="1" />
<xsd:element name="name" type="xsd:string" maxOccurs="1" minOccurs="1" />
<xsd:element name="surname" type="xsd:string" maxOccurs="1" minOccurs="1" />
<xsd:element name="udid" type="xsd:string" maxOccurs="1" minOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RegisterUserResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Status" maxOccurs="1" minOccurs="1" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="OK"/>
<xsd:enumeration value="Not OK"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Message" type="xsd:string" maxOccurs="1" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="LoginRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="username" type="xsd:string" maxOccurs="1" minOccurs="1" />
<xsd:element name="password" type="xsd:string" maxOccurs="1" minOccurs="1" />
<xsd:element name="udid" type="xsd:string" maxOccurs="1" minOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="LoginResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="token" type="xsd:string" maxOccurs="1" minOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
|
| <beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sws="http://www.springframework.org/schema/web-services"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/web-services
http://www.springframework.org/schema/web-services/web-services-2.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<bean id="userWebservice" class="com.elwin013.xxx.webapp.ws.UsersWebserviceEndpoint"/>
<import resource="webappContext.xml" />
<sws:annotation-driven />
<!-- publish wsdl from xsd (use during development) -->
<sws:dynamic-wsdl id="UserService" portTypeName="UserService"
locationUri="/api/soap/userService" requestSuffix="Request" responseSuffix="Response"
targetNamespace="http:///webapp.xxx.elwin013.com/UserService">
<sws:xsd location="classpath:xsd/UserService.xsd" />
</sws:dynamic-wsdl>
</beans>
|