Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

1. The Configuration of pom.xml

To

generate

java

code

using

the

*

uaws

*

web

service

WSDL,

use

the

Maven

{color:blue}

maven-antrun-plugin

{color}

and

place

following

xml

statements

within

the

<plugins>

element

of

the

Maven

project's

pom.xml:

Panel
Wiki Markup
{
Code Block
}
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-antrun-plugin</artifactId>
    <executions>
        <execution>
            <id>generate java code from wsdl</id>
            <phase>generate-sources</phase>
            <configuration>
                <tasks>
                    <property name="service.wsdl" value="https://mapws.mit.edu/uaws/services/ua?wsdl"/>
                    <property name="server.truststore" value="/path/to/keystore/<the name of your Trused Servers keystore>.jks" />
                    <property name="client.keystore" value="/path/to/keystore/<the name of your application certificate keystore>.jks." />
                    <property name="compile_classpath" refid="maven.compile.classpath" />
                    <java classname="org.apache.axis.wsdl.WSDL2Java" fork="true" classpathref="maven.compile.classpath" dir="src/main/java">
                        <sysproperty key="javax.net.ssl.keyStore" value="${client.keystore}" />
                        <sysproperty key="javax.net.ssl.keyStorePassword" value="<clientKeystorePassword>" />
                        <sysproperty key="javax.net.ssl.keyStoreType" value="jks"/>
                        <sysproperty key="javax.net.ssl.trustStore" value="${server.truststore}" />
                        <sysproperty key="javax.net.ssl.trustStorePassword" value="<trustStorePassword>" />
                        <sysproperty key="javax.net.ssl.trustStoreType" value="jks" />
                        <arg value="-v" />
                        <arg value="-o${basedir}/src/main/java" />
                        <arg value="${service.wsdl}" />
                    </java>
                </tasks>
            </configuration>
            <goals>
                <goal>run</goal>
            </goals>
        </execution>
    </executions>
</plugin>
{code}
{indent:1}
indent
1
1
Where in the above:
{indent}{indent:2}
indent
2
2
Replace {color:green}/path/to/keystore/<the name of your Trused Servers keystore>.jks{color} with the path to and name of the Trusted Servers keystore.
Replace {color:green}/path/to/keystore/<the name of your Trused Servers keystore>.jks{color} with the path to and name of the Applicaiton Certificate keystore.
Replace {color:green}<trustStorePassword>{color} with the password for your {color:green}<the name of your Trusted Servers keystore>{color}.jks.
Replace {color:green}<clientKeystorePassword>{color} with the password for your {color:green}<the name of your Application Certificate keystore>{color}.jks.{
indent
1
1
indent}{indent:1}
The above plug-in can be used to build the Java code from any of the ISDA supported web services.  You only have to replace the property value of *service.wsdl* with any of the URL's shown below.\\
\\
For example, if you wish to build the Java code for the moiraws web service from the DSPS Production servers, change the line:{indent}{indent:2}
indent
2
2
<property name="service.wsdl" value="https://mapws.mit.edu/uaws/services/ua?wsdl"/>{indent}{indent:1}to:{indent}
indent
1
1
to:
indent
2
2
{indent:2}
<property name="service.wsdl" value="https://mapws.mit.edu/moiraws/services/moira?wsdl"/>
indent
1
1
{indent}{indent:1}
Note: with the above plug-in configuration, maven will generate java code during generate-source phase.
{indent}
Panel

The following are the web service wsdl's that are currently available:

indent
*Testing Servers:*\\
indent
2
2
* https://ws-test.mit.edu/geows/services/geo?wsdl
* https://ws-test.mit.edu/mitidws/services/mitid?wsdl
* https://ws-test.mit.edu/moiraws/services/moira?wsdl
* https://ws-test.mit.edu/uaws/services/ua?wsdl
indent
*Staging Servers:*\\
indent
2
2
* https://ws-stage.mit.edu/geows/services/geo?wsdl
* https://ws-stage.mit.edu/mitidws/services/mitid?wsdl
* https://ws-stage.mit.edu/moiraws/services/moira?wsdl
* https://ws-stage.mit.edu/uaws/services/ua?wsdl
indent
*Production servers:*
indent
2
2
* https://geows.mit.edu/geows/services/geo?wsdl
* https://mitidws.mit.edu/mitidws/services/mitid?wsdl
* https://moiraws.mit.edu/moiraws/services/moira?wsdl
* https://uaws.mit.edu/uaws/services/ua?wsdl