title: javascript and web services WSDL
body: <p>i want to call a web service using javascript. i have a form where i give some parameters (int) and want to get the result how can do it using javascript?</p>
  
  <p>here are the WSDL files</p>
  
  <pre><code>&lt;definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://lapack.sws4hpsc.uth/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://lapack.sws4hpsc.uth/" name="DgesvSampleWsService"&gt;
  &lt;ns1:Policy xmlns:ns1="http://www.w3.org/ns/ws-policy" wsu:Id="DgesvSampleWsPortBinding_MTOM_Policy"&gt;
  &lt;ns1:ExactlyOne&gt;
  &lt;ns1:All&gt;
  &lt;ns2:OptimizedMimeSerialization xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization" ns1:Optional="true"/&gt;
  &lt;/ns1:All&gt;
  &lt;/ns1:ExactlyOne&gt;
  &lt;/ns1:Policy&gt;
  &lt;types&gt;
  &lt;xsd:schema&gt;
  &lt;xsd:import namespace="http://lapack.sws4hpsc.uth/" schemaLocation="http://83.212.96.238:8080/DgesvSampleWs/DgesvSampleWsService?xsd=1"/&gt;
  &lt;/xsd:schema&gt;
  &lt;/types&gt;
  &lt;message name="_dgesv"&gt;
  &lt;part name="parameters" element="tns:_dgesv"/&gt;
  &lt;/message&gt;
  &lt;message name="_dgesvResponse"&gt;
  &lt;part name="parameters" element="tns:_dgesvResponse"/&gt;
  &lt;/message&gt;
  &lt;portType name="DgesvSampleWs"&gt;
  &lt;operation name="_dgesv"&gt;
  &lt;input message="tns:_dgesv"/&gt;
  &lt;output message="tns:_dgesvResponse"/&gt;
  &lt;/operation&gt;
  &lt;/portType&gt;
  &lt;binding name="DgesvSampleWsPortBinding" type="tns:DgesvSampleWs"&gt;
  &lt;ns3:PolicyReference xmlns:ns3="http://www.w3.org/ns/ws-policy" URI="#DgesvSampleWsPortBinding_MTOM_Policy"/&gt;
  &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/&gt;
  &lt;operation name="_dgesv"&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="DgesvSampleWsService"&gt;
  &lt;port name="DgesvSampleWsPort" binding="tns:DgesvSampleWsPortBinding"&gt;
  &lt;soap:address location="http://83.212.96.238:8080/DgesvSampleWs/DgesvSampleWsService"/&gt;
  &lt;/port&gt;
  &lt;/service&gt;
  &lt;/definitions&gt;
  </code></pre>
  
  <hr>
  
  <p>and the second one</p>
  
  <pre><code>&lt;definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://lapack.sws4hpsc.uth/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://lapack.sws4hpsc.uth/" name="DgtsvSampleWsService"&gt;
  &lt;ns1:Policy xmlns:ns1="http://www.w3.org/ns/ws-policy" wsu:Id="DgtsvSampleWsPortBinding_MTOM_Policy"&gt;
  &lt;ns1:ExactlyOne&gt;
  &lt;ns1:All&gt;
  &lt;ns2:OptimizedMimeSerialization xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization" ns1:Optional="true"/&gt;
  &lt;/ns1:All&gt;
  &lt;/ns1:ExactlyOne&gt;
  &lt;/ns1:Policy&gt;
  &lt;types&gt;
  &lt;xsd:schema&gt;
  &lt;xsd:import namespace="http://lapack.sws4hpsc.uth/" schemaLocation="http://83.212.96.238:8080/DgtsvSampleWs/DgtsvSampleWsService?xsd=1"/&gt;
  &lt;/xsd:schema&gt;
  &lt;/types&gt;
  &lt;message name="_dgtsv"&gt;
  &lt;part name="parameters" element="tns:_dgtsv"/&gt;
  &lt;/message&gt;
  &lt;message name="_dgtsvResponse"&gt;
  &lt;part name="parameters" element="tns:_dgtsvResponse"/&gt;
  &lt;/message&gt;
  &lt;portType name="DgtsvSampleWs"&gt;
  &lt;operation name="_dgtsv"&gt;
  &lt;input message="tns:_dgtsv"/&gt;
  &lt;output message="tns:_dgtsvResponse"/&gt;
  &lt;/operation&gt;
  &lt;/portType&gt;
  &lt;binding name="DgtsvSampleWsPortBinding" type="tns:DgtsvSampleWs"&gt;
  &lt;ns3:PolicyReference xmlns:ns3="http://www.w3.org/ns/ws-policy" URI="#DgtsvSampleWsPortBinding_MTOM_Policy"/&gt;
  &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/&gt;
  &lt;operation name="_dgtsv"&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="DgtsvSampleWsService"&gt;
  &lt;port name="DgtsvSampleWsPort" binding="tns:DgtsvSampleWsPortBinding"&gt;
  &lt;soap:address location="http://83.212.96.238:8080/DgtsvSampleWs/DgtsvSampleWsService"/&gt;
  &lt;/port&gt;
  &lt;/service&gt;
  &lt;/definitions&gt;
  </code></pre>