How to find the soapAction with JQuery -


can me jquery?

i want find soapaction of element operation name login in following xml (i tried method find didn't have success):

<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"> <wsdl:types> <xsd:schema targetnamespace="urn:zeitag.ch.tms.authenticationservice:v1/imports"> <xsd:import schemalocation="http://localhost:8833/timemanagementservice/services/authenticationservice/?xsd=xsd0" namespace="urn:zeitag.ch.tms.authenticationservice:v1"/> <xsd:import schemalocation="http://localhost:8833/timemanagementservice/services/authenticationservice/?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/serialization/"/> <xsd:import schemalocation="http://localhost:8833/timemanagementservice/services/authenticationservice/?xsd=xsd2" namespace="urn:zeitag.ch.tms.entities.authenticationservice:v1"/> <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"/> <xsd:import schemalocation="http://localhost:8833/timemanagementservice/services/authenticationservice/?xsd=xsd4" namespace="urn:zeitag.ch.tms.entities.common:v1"/> </xsd:schema> </wsdl:types> <wsdl:message name="authenticationservice_getserviceversion_inputmessage"> <wsdl:part name="parameters" element="tns:getserviceversion"/> </wsdl:message> <wsdl:message name="authenticationservice_getserviceversion_outputmessage"> <wsdl:part name="parameters" element="tns:getserviceversionresponse"/> </wsdl:message> <wsdl:message name="authenticationservice_login_inputmessage"> <wsdl:part name="parameters" element="tns:login"/> </wsdl:message> <wsdl:message name="authenticationservice_login_outputmessage"> <wsdl:part name="parameters" element="tns:loginresponse"/> </wsdl:message> <wsdl:message name="authenticationservice_logout_inputmessage"> <wsdl:part name="parameters" element="tns:logout"/> </wsdl:message> <wsdl:message name="authenticationservice_logout_outputmessage"> <wsdl:part name="parameters" element="tns:logoutresponse"/> </wsdl:message> <wsdl:message name="authenticationservice_touchsession_inputmessage"> <wsdl:part name="parameters" element="tns:touchsession"/> </wsdl:message> <wsdl:message name="authenticationservice_touchsession_outputmessage"> <wsdl:part name="parameters" element="tns:touchsessionresponse"/> </wsdl:message> <wsdl:porttype name="authenticationservice"> <wsdl:operation name="getserviceversion"> <wsdl:input wsaw:action="urn:zeitag.ch.tms.authenticationservice:v1/authenticationservice/getserviceversion" message="tns:authenticationservice_getserviceversion_inputmessage"/> <wsdl:output wsaw:action="urn:zeitag.ch.tms.authenticationservice:v1/authenticationservice/getserviceversionresponse" message="tns:authenticationservice_getserviceversion_outputmessage"/> </wsdl:operation> <wsdl:operation name="login"> <wsdl:input wsaw:action="urn:zeitag.ch.tms.authenticationservice:v1/authenticationservice/login" message="tns:authenticationservice_login_inputmessage"/> <wsdl:output wsaw:action="urn:zeitag.ch.tms.authenticationservice:v1/authenticationservice/loginresponse" message="tns:authenticationservice_login_outputmessage"/> </wsdl:operation> <wsdl:operation name="logout"> <wsdl:input wsaw:action="urn:zeitag.ch.tms.authenticationservice:v1/authenticationservice/logout" message="tns:authenticationservice_logout_inputmessage"/> <wsdl:output wsaw:action="urn:zeitag.ch.tms.authenticationservice:v1/authenticationservice/logoutresponse" message="tns:authenticationservice_logout_outputmessage"/> </wsdl:operation> <wsdl:operation name="touchsession"> <wsdl:input wsaw:action="urn:zeitag.ch.tms.authenticationservice:v1/authenticationservice/touchsession" message="tns:authenticationservice_touchsession_inputmessage"/> <wsdl:output wsaw:action="urn:zeitag.ch.tms.authenticationservice:v1/authenticationservice/touchsessionresponse" message="tns:authenticationservice_touchsession_outputmessage"/> </wsdl:operation> </wsdl:porttype> <wsdl:binding name="basichttpbinding_authenticationservice" type="tns:authenticationservice"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="getserviceversion"> <soap:operation soapaction="urn:zeitag.ch.tms.authenticationservice:v1/authenticationservice/getserviceversion" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="login"> <soap:operation soapaction="urn:zeitag.ch.tms.authenticationservice:v1/authenticationservice/login" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="logout"> <soap:operation soapaction="urn:zeitag.ch.tms.authenticationservice:v1/authenticationservice/logout" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="touchsession"> <soap:operation soapaction="urn:zeitag.ch.tms.authenticationservice:v1/authenticationservice/touchsession" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="authenticationservice"> <wsdl:port name="basichttpbinding_authenticationservice" binding="tns:basichttpbinding_authenticationservice"> <soap:address location="http://localhost:8833/timemanagementservice/services/authenticationservice/"/> </wsdl:port> </wsdl:service> </wsdl:definitions> 

kind regards marco

you need use find namespace:

$(xml).find("soap\\:operation[soapaction]") 

please check demo here: http://jsfiddle.net/3a23v/

update1: check on specific action:

$(xml).find("soap\\:operation[soapaction*='login']") 

demo: http://jsfiddle.net/3a23v/1/


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -