How to find the soapAction with JQuery
<p>can somebody help me with JQuery?</p>

<p>I want to find the soapAction of the element with the operation name Login in the following xml (I tried already with the method find but I didn't have success):</p>

<pre><code>&lt;wsdl:definitions name="AuthenticationService" targetNamespace="urn:zeitag.ch.tms.authenticationservice:v1" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="urn:zeitag.ch.tms.authenticationservice:v1" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"&gt;
&lt;wsdl:types&gt;
&lt;xsd:schema targetNamespace="urn:zeitag.ch.tms.authenticationservice:v1/Imports"&gt;
&lt;xsd:import schemaLocation="http://localhost:8833/TimeManagementService/Services/AuthenticationService/?xsd=xsd0" namespace="urn:zeitag.ch.tms.authenticationservice:v1"/&gt;
&lt;xsd:import schemaLocation="http://localhost:8833/TimeManagementService/Services/AuthenticationService/?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/&gt;
&lt;xsd:import schemaLocation="http://localhost:8833/TimeManagementService/Services/AuthenticationService/?xsd=xsd2" namespace="urn:zeitag.ch.tms.entities.authenticationservice:v1"/&gt;
&lt;xsd:import schemaLocation="http://localhost:8833/TimeManagementService/Services/AuthenticationService/?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/Ch.ZeitAg.Tms.TimeManagementService.Interface.ServiceEntities.AuthenticationService"/&gt;
&lt;xsd:import schemaLocation="http://localhost:8833/TimeManagementService/Services/AuthenticationService/?xsd=xsd4" namespace="urn:zeitag.ch.tms.entities.common:v1"/&gt;
&lt;/xsd:schema&gt;
&lt;/wsdl:types&gt;
&lt;wsdl:message name="AuthenticationService_GetServiceVersion_InputMessage"&gt;
&lt;wsdl:part name="parameters" element="tns:GetServiceVersion"/&gt;
&lt;/wsdl:message&gt;
&lt;wsdl:message name="AuthenticationService_GetServiceVersion_OutputMessage"&gt;
&lt;wsdl:part name="parameters" element="tns:GetServiceVersionResponse"/&gt;
&lt;/wsdl:message&gt;
&lt;wsdl:message name="AuthenticationService_Login_InputMessage"&gt;
&lt;wsdl:part name="parameters" element="tns:Login"/&gt;
&lt;/wsdl:message&gt;
&lt;wsdl:message name="AuthenticationService_Login_OutputMessage"&gt;
&lt;wsdl:part name="parameters" element="tns:LoginResponse"/&gt;
&lt;/wsdl:message&gt;
&lt;wsdl:message name="AuthenticationService_Logout_InputMessage"&gt;
&lt;wsdl:part name="parameters" element="tns:Logout"/&gt;
&lt;/wsdl:message&gt;
&lt;wsdl:message name="AuthenticationService_Logout_OutputMessage"&gt;
&lt;wsdl:part name="parameters" element="tns:LogoutResponse"/&gt;
&lt;/wsdl:message&gt;
&lt;wsdl:message name="AuthenticationService_TouchSession_InputMessage"&gt;
&lt;wsdl:part name="parameters" element="tns:TouchSession"/&gt;
&lt;/wsdl:message&gt;
&lt;wsdl:message name="AuthenticationService_TouchSession_OutputMessage"&gt;
&lt;wsdl:part name="parameters" element="tns:TouchSessionResponse"/&gt;
&lt;/wsdl:message&gt;
&lt;wsdl:portType name="AuthenticationService"&gt;
&lt;wsdl:operation name="GetServiceVersion"&gt;
&lt;wsdl:input wsaw:Action="urn:zeitag.ch.tms.authenticationservice:v1/AuthenticationService/GetServiceVersion" message="tns:AuthenticationService_GetServiceVersion_InputMessage"/&gt;
&lt;wsdl:output wsaw:Action="urn:zeitag.ch.tms.authenticationservice:v1/AuthenticationService/GetServiceVersionResponse" message="tns:AuthenticationService_GetServiceVersion_OutputMessage"/&gt;
&lt;/wsdl:operation&gt;
&lt;wsdl:operation name="Login"&gt;
&lt;wsdl:input wsaw:Action="urn:zeitag.ch.tms.authenticationservice:v1/AuthenticationService/Login" message="tns:AuthenticationService_Login_InputMessage"/&gt;
&lt;wsdl:output wsaw:Action="urn:zeitag.ch.tms.authenticationservice:v1/AuthenticationService/LoginResponse" message="tns:AuthenticationService_Login_OutputMessage"/&gt;
&lt;/wsdl:operation&gt;
&lt;wsdl:operation name="Logout"&gt;
&lt;wsdl:input wsaw:Action="urn:zeitag.ch.tms.authenticationservice:v1/AuthenticationService/Logout" message="tns:AuthenticationService_Logout_InputMessage"/&gt;
&lt;wsdl:output wsaw:Action="urn:zeitag.ch.tms.authenticationservice:v1/AuthenticationService/LogoutResponse" message="tns:AuthenticationService_Logout_OutputMessage"/&gt;
&lt;/wsdl:operation&gt;
&lt;wsdl:operation name="TouchSession"&gt;
&lt;wsdl:input wsaw:Action="urn:zeitag.ch.tms.authenticationservice:v1/AuthenticationService/TouchSession" message="tns:AuthenticationService_TouchSession_InputMessage"/&gt;
&lt;wsdl:output wsaw:Action="urn:zeitag.ch.tms.authenticationservice:v1/AuthenticationService/TouchSessionResponse" message="tns:AuthenticationService_TouchSession_OutputMessage"/&gt;
&lt;/wsdl:operation&gt;
&lt;/wsdl:portType&gt;
&lt;wsdl:binding name="BasicHttpBinding_AuthenticationService" type="tns:AuthenticationService"&gt;
&lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http"/&gt;
&lt;wsdl:operation name="GetServiceVersion"&gt;
&lt;soap:operation soapAction="urn:zeitag.ch.tms.authenticationservice:v1/AuthenticationService/GetServiceVersion" style="document"/&gt;
&lt;wsdl:input&gt;
&lt;soap:body use="literal"/&gt;
&lt;/wsdl:input&gt;
&lt;wsdl:output&gt;
&lt;soap:body use="literal"/&gt;
&lt;/wsdl:output&gt;
&lt;/wsdl:operation&gt;
&lt;wsdl:operation name="Login"&gt;
&lt;soap:operation soapAction="urn:zeitag.ch.tms.authenticationservice:v1/AuthenticationService/Login" style="document"/&gt;
&lt;wsdl:input&gt;
&lt;soap:body use="literal"/&gt;
&lt;/wsdl:input&gt;
&lt;wsdl:output&gt;
&lt;soap:body use="literal"/&gt;
&lt;/wsdl:output&gt;
&lt;/wsdl:operation&gt;
&lt;wsdl:operation name="Logout"&gt;
&lt;soap:operation soapAction="urn:zeitag.ch.tms.authenticationservice:v1/AuthenticationService/Logout" style="document"/&gt;
&lt;wsdl:input&gt;
&lt;soap:body use="literal"/&gt;
&lt;/wsdl:input&gt;
&lt;wsdl:output&gt;
&lt;soap:body use="literal"/&gt;
&lt;/wsdl:output&gt;
&lt;/wsdl:operation&gt;
&lt;wsdl:operation name="TouchSession"&gt;
&lt;soap:operation soapAction="urn:zeitag.ch.tms.authenticationservice:v1/AuthenticationService/TouchSession" style="document"/&gt;
&lt;wsdl:input&gt;
&lt;soap:body use="literal"/&gt;
&lt;/wsdl:input&gt;
&lt;wsdl:output&gt;
&lt;soap:body use="literal"/&gt;
&lt;/wsdl:output&gt;
&lt;/wsdl:operation&gt;
&lt;/wsdl:binding&gt;
&lt;wsdl:service name="AuthenticationService"&gt;
&lt;wsdl:port name="BasicHttpBinding_AuthenticationService" binding="tns:BasicHttpBinding_AuthenticationService"&gt;
&lt;soap:address location="http://localhost:8833/TimeManagementService/Services/AuthenticationService/"/&gt;
&lt;/wsdl:port&gt;
&lt;/wsdl:service&gt;
&lt;/wsdl:definitions&gt;
</code></pre>

<p>Kind regards
Marco</p>
