4 * This file was auto-generated from WSDL
5 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
8 package com.pentila.evalcomp.moodlews;
10 public class MoodleWSLocator extends org.apache.axis.client.Service implements com.pentila.evalcomp.moodlews.MoodleWS {
12 public MoodleWSLocator() {
16 public MoodleWSLocator(org.apache.axis.EngineConfiguration config) {
20 public MoodleWSLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
21 super(wsdlLoc, sName);
24 // Use to get a proxy class for MoodleWSPort
25 private java.lang.String MoodleWSPort_address = "http://localhost:8890/moodle19/wspp/service_pp.php";
27 public java.lang.String getMoodleWSPortAddress() {
28 return MoodleWSPort_address;
31 // The WSDD service name defaults to the port name.
32 private java.lang.String MoodleWSPortWSDDServiceName = "MoodleWSPort";
34 public java.lang.String getMoodleWSPortWSDDServiceName() {
35 return MoodleWSPortWSDDServiceName;
38 public void setMoodleWSPortWSDDServiceName(java.lang.String name) {
39 MoodleWSPortWSDDServiceName = name;
42 public com.pentila.evalcomp.moodlews.MoodleWSPortType getMoodleWSPort() throws javax.xml.rpc.ServiceException {
43 java.net.URL endpoint;
45 endpoint = new java.net.URL(MoodleWSPort_address);
47 catch (java.net.MalformedURLException e) {
48 throw new javax.xml.rpc.ServiceException(e);
50 return getMoodleWSPort(endpoint);
53 public com.pentila.evalcomp.moodlews.MoodleWSPortType getMoodleWSPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
55 com.pentila.evalcomp.moodlews.MoodleWSBindingStub _stub = new com.pentila.evalcomp.moodlews.MoodleWSBindingStub(portAddress, this);
56 _stub.setPortName(getMoodleWSPortWSDDServiceName());
59 catch (org.apache.axis.AxisFault e) {
64 public void setMoodleWSPortEndpointAddress(java.lang.String address) {
65 MoodleWSPort_address = address;
69 * For the given interface, get the stub implementation.
70 * If this service has no port for the given interface,
71 * then ServiceException is thrown.
73 public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
75 if (com.pentila.evalcomp.moodlews.MoodleWSPortType.class.isAssignableFrom(serviceEndpointInterface)) {
76 com.pentila.evalcomp.moodlews.MoodleWSBindingStub _stub = new com.pentila.evalcomp.moodlews.MoodleWSBindingStub(new java.net.URL(MoodleWSPort_address), this);
77 _stub.setPortName(getMoodleWSPortWSDDServiceName());
81 catch (java.lang.Throwable t) {
82 throw new javax.xml.rpc.ServiceException(t);
84 throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
88 * For the given interface, get the stub implementation.
89 * If this service has no port for the given interface,
90 * then ServiceException is thrown.
92 public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
93 if (portName == null) {
94 return getPort(serviceEndpointInterface);
96 java.lang.String inputPortName = portName.getLocalPart();
97 if ("MoodleWSPort".equals(inputPortName)) {
98 return getMoodleWSPort();
101 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
102 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
107 public javax.xml.namespace.QName getServiceName() {
108 return new javax.xml.namespace.QName("http://localhost:8890/moodle19/wspp/wsdl", "MoodleWS");
111 private java.util.HashSet ports = null;
113 public java.util.Iterator getPorts() {
115 ports = new java.util.HashSet();
116 ports.add(new javax.xml.namespace.QName("http://localhost:8890/moodle19/wspp/wsdl", "MoodleWSPort"));
118 return ports.iterator();
122 * Set the endpoint address for the specified port name.
124 public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
126 if ("MoodleWSPort".equals(portName)) {
127 setMoodleWSPortEndpointAddress(address);
130 { // Unknown Port Name
131 throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
136 * Set the endpoint address for the specified port name.
138 public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
139 setEndpointAddress(portName.getLocalPart(), address);