This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <handler-chains xmlns="http://java.sun.com/xml/ns/javaee"> | |
| <handler-chain> | |
| <handler> | |
| <handler-name>mySoapHandler</handler-name> | |
| <handler-class>com.mh.project.service.mySoapHandler</handler-class> | |
| </handler> | |
| </handler-chain> | |
| </handler-chains> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | |
| xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
| xmlns:request="CustomerRequest" xmlns:response="CustomerResponse" | |
| targetNamespace="http://www.mh.org/" xmlns:tns="http://www.mh.org/"> | |
| <wsdl:types> | |
| <xsd:schema> | |
| <xsd:import namespace="CustomerRequest" schemaLocation="../xsd/CustomerRequest.xsd" /> | |
| <xsd:import namespace="CustomerResponse" schemaLocation="../xsd/CustomerResponse.xsd" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String filename = "customer.xml"; | |
| File file = new File(filename); | |
| SAXBuilder jdomBuilder = new SAXBuilder(); | |
| Document jdomDocument = jdomBuilder.build(file); | |
| XPathExpression<Element> expr; | |
| List<Element> elements; | |
| Element element; | |
| XPathFactory xFactory = XPathFactory.instance(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <mh> | |
| <customer> | |
| <contact> | |
| <name part="first">Ravi</name> | |
| <name part="last">Singh</name> | |
| <email>ravi.singh@gmail.com</email> | |
| </contact> | |
| </customer> | |
| </mh> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <xs:element name="customer"> | |
| <xs:complexType> | |
| <xs:sequence> | |
| <xs:element name="contact"> | |
| <xs:complexType> | |
| <xs:sequence> | |
| <xs:element maxOccurs="unbounded" name="name"> | |
| <xs:complexType> | |
| <xs:simpleContent> | |
| <xs:extension base="xs:string"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <customer> | |
| <contact> | |
| <name part="first">Rajesh</name> | |
| <name part="last">Verma</name> | |
| <email>rajesh@fabmail.com</email> | |
| <phone type="voice" time="evening" preferredcontact="1">9999999999 </phone> | |
| <address> | |
| <street line="1">41 Vatika Drive</street> | |
| <street line="2"></street> | |
| <city>Vasanth Nagar</city> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <xs:element name="shoesize"> | |
| <xs:complexType> | |
| <xs:simpleContent> | |
| <xs:extension base="xs:integer"> | |
| <xs:attribute name="country" type="xs:string" /> | |
| </xs:extension> | |
| </xs:simpleContent> | |
| </xs:complexType> | |
| </xs:element> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <shoesize country="france">35</shoesize> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <xs:element name="persons"> | |
| <xs:complexType> | |
| <xs:sequence> | |
| <xs:element name="person" maxOccurs="unbounded"> | |
| <xs:complexType> | |
| <xs:sequence> | |
| <xs:element name="full_name" type="xs:string"/> | |
| <xs:element name="child_name" type="xs:string" | |
| minOccurs="0" maxOccurs="5"/> | |
| </xs:sequence> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <persons xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:noNamespaceSchemaLocation="family.xsd"> | |
| <person> | |
| <full_name>Hege Refsnes</full_name> | |
| <child_name>Cecilie</child_name> | |
| </person> | |
| <person> | |
| <full_name>Tove Refsnes</full_name> |