title: How to test a webservice / WSDL
body: <p>I have generated this WSDL file...</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.6 in JDK 6. --&gt;
  &lt;definitions targetNamespace="http://math/" name="MathServicesService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://math/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"&gt;
    &lt;types&gt;
      &lt;xsd:schema&gt;
        &lt;xsd:import namespace="http://math/" schemaLocation="MathServicesService_schema1.xsd"/&gt;
      &lt;/xsd:schema&gt;
    &lt;/types&gt;
    &lt;message name="addTwoInts"&gt;
      &lt;part name="parameters" element="tns:addTwoInts"/&gt;
    &lt;/message&gt;
    &lt;message name="addTwoIntsResponse"&gt;
      &lt;part name="parameters" element="tns:addTwoIntsResponse"/&gt;
    &lt;/message&gt;
    &lt;message name="multiplyTwoFloats"&gt;
      &lt;part name="parameters" element="tns:multiplyTwoFloats"/&gt;
    &lt;/message&gt;
    &lt;message name="multiplyTwoFloatsResponse"&gt;
      &lt;part name="parameters" element="tns:multiplyTwoFloatsResponse"/&gt;
    &lt;/message&gt;
    &lt;portType name="MathServices"&gt;
      &lt;operation name="addTwoInts"&gt;
        &lt;input message="tns:addTwoInts"/&gt;
        &lt;output message="tns:addTwoIntsResponse"/&gt;
      &lt;/operation&gt;
      &lt;operation name="multiplyTwoFloats"&gt;
        &lt;input message="tns:multiplyTwoFloats"/&gt;
        &lt;output message="tns:multiplyTwoFloatsResponse"/&gt;
      &lt;/operation&gt;
    &lt;/portType&gt;
    &lt;binding name="MathServicesPortBinding" type="tns:MathServices"&gt;
      &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/&gt;
      &lt;operation name="addTwoInts"&gt;
        &lt;soap:operation soapAction=""/&gt;
        &lt;input&gt;
          &lt;soap:body use="literal"/&gt;
        &lt;/input&gt;
        &lt;output&gt;
          &lt;soap:body use="literal"/&gt;
        &lt;/output&gt;
      &lt;/operation&gt;
      &lt;operation name="multiplyTwoFloats"&gt;
        &lt;soap:operation soapAction=""/&gt;
        &lt;input&gt;
          &lt;soap:body use="literal"/&gt;
        &lt;/input&gt;
        &lt;output&gt;
          &lt;soap:body use="literal"/&gt;
        &lt;/output&gt;
      &lt;/operation&gt;
    &lt;/binding&gt;
    &lt;service name="MathServicesService"&gt;
      &lt;port name="MathServicesPort" binding="tns:MathServicesPortBinding"&gt;
        &lt;soap:address location="REPLACE_WITH_ACTUAL_URL"/&gt;
      &lt;/port&gt;
    &lt;/service&gt;
  &lt;/definitions&gt;
  </code></pre>
  
  <p>from this class...</p>
  
  <pre><code>package math;
  
  import javax.jws.WebService;
  
  @WebService
  public class MathServices {
  
      public int addTwoInts(int int1, int int2){
          return int1+int2;
      }
  
      public float multiplyTwoFloats(float float1, float float2){
          return float1 * float2;
      }
  }
  </code></pre>
  
  <p>How can I test to see if this webservice is working properly using the WSDL? I don't understand how the functionality (<code>int1+int2</code> and <code>float1*float2</code>) translates to the XML. All I see in the WSDL are what translate to method names and parameter names. I don't see where the math goes on. :/</p>
  
  <p>That said, where do the parameters come from when using the webservice? How do you even use the webservice? Can I just use it through my browser?</p>