title: Calling SOAP web service from GWT client
body: <p>I don't have any experience working with <code>SOAP</code> so please help me.</p>
  
  <p>i have web project with <code>GWT</code> on the client side. as for the information needed for this site, i have to call/access <code>SOAP</code> web service. i've read some forums that i should use <code>RequestBuilder</code> in order to do so. i have the following code:</p>
  
  <pre><code>    RequestBuilder builder = new RequestBuilder( RequestBuilder.POST, URL.encode( url ) );
  
      try {
        builder.sendRequest( null, new RequestCallback() {
          public void onResponseReceived( Request request, Response response) {
              if (200 == response.getStatusCode()) {
                  // processing response here
              } else {
                  // Handle the error
              }
          }
  
          public void onError(Request request, Throwable exception) {
              // error
          }
  
        });
      } catch (RequestException e) {
          // Couldn't connect to server
      }
  </code></pre>
  
  <p>This code causes an error and return <code>status code 0</code>. I think it's the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Same_origin_policy_for_JavaScript" rel="nofollow"><code>SOP(Same-Origin-Policy)</code></a> again. </p>
  
  <p>Is there any other way I can do to access <code>SOAP</code> web service in <code>GWT</code>?</p>
  
  <h3>E D I T</h3>
  
  <p>In this project, a .wsdl file, which is located from an existing domain,  </p>
  
  <blockquote>
    <p><a href="http://sample.com/server/soap/soap.wsdl" rel="nofollow">http://sample.com/server/soap/soap.wsdl</a></p>
  </blockquote>
  
  <p>is already provided. And I also have this: </p>
  
  <blockquote>
    <p><a href="http://sample.com/server/soap/soapserver.php" rel="nofollow">http://sample.com/server/soap/soapserver.php</a></p>
  </blockquote>
  
  <p>How does it help me to connect to the SOAP web service? </p>
  
  <p>I have created a <code>SOAP Client</code> in java but i encountered an error on javax.xml.* about inheriting the required modules.</p>