Category Archives: Web Service

Some explanation of XML Schema namespace using with Axis Web Service

We will use the following example to explain how schema works <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema&quot; xmlns:x="urn:sapParam" targetNamespace="urn:sapParam" elementFormDefault="qualified" attributeFormDefault="unqualified">                 <xs:complexType name="mainTable">                                 <xs:sequence>                                                 <xs:element name="child_email" type="x:TableOfChildEmail" nillable="true" minOccurs="0" maxOccurs="unbounded"/>                                                 <xs:element name="ipaddress_range" type="x:TableOfIpaddress" nillable="true" minOccurs="0" maxOccurs="unbounded"/>                                                 <xs:element name="website" nillable="false" … Continue reading

Posted in Web Service | Leave a comment

Build Web Service Application with Axis2

  We talked about the old fashion and how about the new one? For my understanding, the key difference from the earlier version is, Axis2 provides very convenient container to look after the web service application. With Axis2, you would … Continue reading

Posted in Web Service | Leave a comment

An old fashion to build Axis Web Service (1)

WSDL Structure <wsdl:definitions>     <wsdl:types>            <s:schema targetNamespace="xxxxxx">                   <s:element name="bbb" type="s:ComplexType"/> <s:element name="bbbResponse" type="s:ComplexType "/>            </s:schema>     </wsdl:types> <wsdl:message name=" bbbSoapIn "> <wsdl:part name="parameter" element="tns:bbb"/> </wsdl:message> <wsdl:message name=" bbbSoapOut "> <wsdl:part name="parameter" element="tns:bbbResponse"/> </wsdl:message>     <wsdl:portType name="xxxPortType">            … Continue reading

Posted in Web Service | Leave a comment

An old fashion to build Axis Web Service (2)

Maven plug-in for WSDL2Java <project>     <parent>            <groupId>Hongliang.Manven.FirstHibernate.wsdl</groupId>            <artifactId>wsdl</artifactId>            <version>1.0-SNAPSHOT</version>     </parent>     <modelVersion>4.0.0</modelVersion>     <groupId>Hongliang.Manven.FirstHibernate.wsdl</groupId>     <artifactId>hibernate_server</artifactId>     <name>hibernate_server</name>     <version>1.0-SNAPSHOT</version>     <build>              <plugins>                   <plugin>                         <groupId>org.codehaus.mojo</groupId>                         <artifactId>axistools-maven-plugin</artifactId>                         <executions>                                <execution>                                       <goals> … Continue reading

Posted in Web Service | Leave a comment