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
| <jaxb:bindings version="2.1" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" | |
| xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
| <jaxb:globalBindings generateElementProperty="false"> | |
| <jaxb:javaType name="java.util.Date" xmlType="xsd:dateTime" | |
| parseMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.parseDateTime" | |
| printMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.printDateTime" /> | |
| <jaxb:javaType name="java.util.Date" xmlType="xsd:date" | |
| parseMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.parseDateTime" | |
| printMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.printDateTime" /> | |
| <jaxb:javaType name="java.util.Date" xmlType="xsd:time" |
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
| <jaxb:bindings version="2.1" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" | |
| xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
| <jaxb:globalBindings generateElementProperty="false"> | |
| <jaxb:javaType name="java.util.Date" xmlType="xsd:dateTime" | |
| parseMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.parseDateTime" | |
| printMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.printDateTime" /> | |
| <jaxb:javaType name="java.util.Date" xmlType="xsd:date" | |
| parseMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.parseDateTime" | |
| printMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.printDateTime" /> | |
| <jaxb:javaType name="java.util.Date" xmlType="xsd:time" |
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'?> | |
| <xs:schema xmlns:tns="http://com.pelssers.helloworld/wrapper" | |
| xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" | |
| targetNamespace="http://com.pelssers.helloworld/wrapper"> | |
| <xs:element name="helloWorldRequest" type="tns:HelloWorldRequestType" /> | |
| <xs:element name="helloWorldResponse" type="tns:HelloWorldResponseType" /> | |
| <xs:element name="error" type="tns:errorType"/> | |
| <xs:element name="unused" type="xs:string"/> | |
| <xs:element name="Unused" type="xs:integer"/> |
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
| <definitions targetNamespace="http://com.pelssers.helloworld/" | |
| name="HelloWorldService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | |
| xmlns:tns="http://com.pelssers.helloworld/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
| xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wrapper="http://com.pelssers.helloworld/wrapper"> | |
| <types> | |
| <xsd:schema> | |
| <xsd:import namespace="http://com.pelssers.helloworld/wrapper" | |
| schemaLocation="xsd/helloworld.xsd" /> | |
| </xsd:schema> |
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
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.pelssers</groupId> | |
| <artifactId>objectfactory</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <properties> | |
| <cxf.version>2.7.8</cxf.version> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
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
| /** | |
| * Check out following URL's | |
| * http://www.html5rocks.com/en/tutorials/es6/promises/ | |
| * http://www.html5rocks.com/en/tutorials/es6/promises/#toc-async | |
| * http://blog.parse.com/2013/01/29/whats-so-great-about-javascript-promises/ | |
| * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise | |
| * | |
| * Try this code out on http://repl.it/ | |
| * | |
| * At present, promises are not yet supported by all browsers and some javascript libraries |
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
| Robby Pelssers 37 | |
| Valerie Pelssers 7 | |
| Lindsey Pelssers 11 |
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
| require.config({ | |
| baseUrl: 'scripts', | |
| paths: { | |
| jquery: 'jquery-2.1.0.min' | |
| } | |
| }); | |
| requirejs(["jquery"], function($) { | |
| /** | |
| 0 -> UNSENT |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Ajax demo</title> | |
| <script data-main="scripts/ajax" src="scripts/require.js"></script> | |
| </head> | |
| <body> | |
| <h1>This is a demo showing making an AJAX call<h1> | |
| <div id="result"/> | |
| </body> |
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
| /** | |
| https://developer.mozilla.org/en-US/docs/Web/XPath | |
| **/ | |
| requirejs([], function() { | |
| //count the number of <li> tags | |
| var listItemCount = document.evaluate( 'count(/html/body//li)', document, null, XPathResult.ANY_TYPE, null ); | |
| alert("There are " + listItemCount.numberValue + " <li> tags inside the <body> tag"); | |
| //output: There are 5 <li> tags inside the <body> tag | |
| //stringjoin the values of the <li> nodes |
NewerOlder