Add basic client implementation
This commit is contained in:
parent
04160b8cb0
commit
44a674cba4
1
.idea/vcs.xml
generated
1
.idea/vcs.xml
generated
@ -2,6 +2,5 @@
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/MoviesWebApp" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -6,6 +6,7 @@
|
||||
<webroots>
|
||||
<root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
|
||||
</webroots>
|
||||
<sourceRoots />
|
||||
</configuration>
|
||||
</facet>
|
||||
</component>
|
||||
@ -13,6 +14,7 @@
|
||||
<output url="file://$MODULE_DIR$/target/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
@ -57,5 +59,6 @@
|
||||
<orderEntry type="library" name="Maven: jakarta.xml.soap:jakarta.xml.soap-api:1.4.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.jws:jakarta.jws-api:1.1.1" level="project" />
|
||||
<orderEntry type="module" module-name="MoviesCommon" />
|
||||
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.10" level="project" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,18 @@
|
||||
package at.technikumwien.movies;
|
||||
|
||||
import javax.sound.sampled.Port;
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.ws.Service;
|
||||
import java.net.URL;
|
||||
|
||||
public class MoviesWebServiceClient {
|
||||
public static void main(String[] args) throws Exception {
|
||||
URL wsdl = new URL("http://localhost:8080/movies/MoviesWebService?wsdl");
|
||||
QName serviceName = new QName("http://movies.technikumwien.at/", "MoviesWebService");
|
||||
|
||||
Service service = Service.create(wsdl, serviceName);
|
||||
MoviesWebService port = service.getPort(MoviesWebService.class);
|
||||
|
||||
port.getAllMovies().forEach(System.out::println);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user