All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmware.vim25.ws.WSClient.class Maven / Gradle / Ivy

The newest version!
????2?com/vmware/vim25/ws/WSClientjava/lang/ObjectSOAP_HEADERLjava/lang/String;
ConstantValue	SOAP_END"SOAP_ACTION_HEADER
SOAPActionSOAP_ACTION_V40
urn:vim25/4.0SOAP_ACTION_V41
urn:vim25/4.1SOAP_ACTION_V50
urn:vim25/5.0SOAP_ACTION_V51
urn:vim25/5.1baseUrlLjava/net/URL;cookievimNameSpace
soapActionconnectTimeoutIreadTimeout(Ljava/lang/String;)V
Exceptions(java/net/MalformedURLExceptionCode
+$,(Ljava/lang/String;Z)VLineNumberTableLocalVariableTablethisLcom/vmware/vim25/ws/WSClient;	serverUrl
3$4()V	6	8	:	< 	>!"	@#"B/
DFEjava/lang/StringGHendsWith(Ljava/lang/String;)Z
DJKLlength()I
DNOP	substring(II)Ljava/lang/String;Rjava/net/URL
QT$%
VW4trustAllHttpsCertificatesYcom/vmware/vim25/ws/WSClient$1
X[$\!(Lcom/vmware/vim25/ws/WSClient;)V
^`_ javax/net/ssl/HttpsURLConnectionabsetDefaultHostnameVerifier#(Ljavax/net/ssl/HostnameVerifier;)Vdjava/lang/Exception
ignoreCertZ
StackMapTableinvoke?(Lcom/vmware/vim25/ManagedObjectReference;Ljava/lang/String;[Lcom/vmware/vim25/ws/Argument;Ljava/lang/String;)Ljava/lang/Object;kjava/io/IOExceptionmcom/vmware/vim25/ws/Argumento_thisqManagedObjectReference
ls$t9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V
vxwjava/lang/Systemyz	arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)V
|h}W(Ljava/lang/String;[Lcom/vmware/vim25/ws/Argument;Ljava/lang/String;)Ljava/lang/Object;mor)Lcom/vmware/vim25/ManagedObjectReference;
methodNameparas[Lcom/vmware/vim25/ws/Argument;
returnType	fullParas?java/rmi/RemoteException
?h?F(Ljava/lang/String;[Lcom/vmware/vim25/ws/Argument;)Lorg/dom4j/Element;???org/dom4j/Element??elements()Ljava/util/List;???java/util/List??get(I)Ljava/lang/Object;????getName()Ljava/lang/String;?Fault
D???indexOf(Ljava/lang/String;)I
???com/vmware/vim25/ws/XmlGen??parseSoapFault=(Lorg/dom4j/Element;)Lcom/vmware/vim25/ws/SoapFaultException;?Exception in WSClient.invoke:
??$?*(Ljava/lang/String;Ljava/lang/Throwable;)V	???&com/vmware/vim25/ws/SoapFaultException??detailLjava/lang/Throwable;
????fromXML9(Ljava/lang/String;Lorg/dom4j/Element;)Ljava/lang/Object;rootLorg/dom4j/Element;bodyrespsfe(Lcom/vmware/vim25/ws/SoapFaultException;eLjava/lang/Exception;?
???createSoapMessageE(Ljava/lang/String;[Lcom/vmware/vim25/ws/Argument;)Ljava/lang/String;
???post)(Ljava/lang/String;)Ljava/io/InputStream;?org/dom4j/io/SAXReader
?3
????read+(Ljava/io/InputStream;)Lorg/dom4j/Document;???org/dom4j/Document??getRootElement()Lorg/dom4j/Element;?java/lang/StringBuilder?VI SDK invoke exception:
?T
????append-(Ljava/lang/Object;)Ljava/lang/StringBuilder;
????toString
?T
???java/io/InputStream?4closesoapMsgisLjava/io/InputStream;readerLorg/dom4j/io/SAXReader;docLorg/dom4j/Document;?java/lang/ThrowableinvokeAsStringK(Ljava/lang/String;[Lcom/vmware/vim25/ws/Argument;)Ljava/lang/StringBuffer;
???
readStream/(Ljava/io/InputStream;)Ljava/lang/StringBuffer;?java/lang/StringBuffer
?3
????,(Ljava/lang/String;)Ljava/lang/StringBuffer;?<
????-(Ljava/lang/String;)Ljava/lang/StringBuilder;
l?
l?getType
lgetValue()Ljava/lang/Object;
?	
toXMLJ(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
??sbLjava/lang/StringBuffer;ikeytypeobjLjava/lang/Object;
QopenConnection()Ljava/net/URLConnection;java/net/HttpURLConnection
 setConnectTimeout(I)V
"# setReadTimeout%POST
'(%setRequestMethod
*,+java/net/ProtocolException-4printStackTrace
/01setDoOutput(Z)V
341
setDoInput
678setRequestProperty'(Ljava/lang/String;Ljava/lang/String;)V:Content-Type<text/xml; charset=utf-8>Cookie
@ABgetOutputStream()Ljava/io/OutputStream;Djava/io/OutputStreamWriterFUTF8
CH$I+(Ljava/io/OutputStream;Ljava/lang/String;)V
CKL%write
C?
OPQgetInputStream()Ljava/io/InputStream;
STQgetErrorStreamV
Set-Cookie
XYZgetHeaderField&(Ljava/lang/String;)Ljava/lang/String;postConLjava/net/HttpURLConnection;Ljava/net/ProtocolException;osLjava/io/OutputStream;outLjava/io/OutputStreamWriter;ioeLjava/io/IOException;ejava/io/OutputStream
getBaseUrl()Ljava/net/URL;
setBaseUrl(Ljava/net/URL;)V	getCookie	setCookiegetVimNameSpacesetVimNameSpacetimeoutMilliSecgetConnectTimeoutgetReadTimeoutsetSoapActionOnApiVersions4.0
Duvwequals(Ljava/lang/Object;)Zy4.1{5.0}5.1
apiVersion?java/io/BufferedReader?java/io/InputStreamReader
??$?(Ljava/io/InputStream;)V
?$?(Ljava/io/Reader;)V
???readLine
?inLjava/io/BufferedReader;lineStr?&java/security/NoSuchAlgorithmException?$java/security/KeyManagementException?javax/net/ssl/TrustManager?,com/vmware/vim25/ws/WSClient$TrustAllManager
??$?1(Lcom/vmware/vim25/ws/WSClient$TrustAllManager;)V?SSL
???javax/net/ssl/SSLContext??getInstance.(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;
????initW([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V
????getSocketFactory"()Ljavax/net/ssl/SSLSocketFactory;
^???setDefaultSSLSocketFactory#(Ljavax/net/ssl/SSLSocketFactory;)V
trustAllCerts[Ljavax/net/ssl/TrustManager;scLjavax/net/ssl/SSLContext;
SourceFile
WSClient.javaInnerClassesTrustAllManager1


 !"#"$%&')?*+?*?-
VW./01$,&')?Z*?2*?5*?7*?9*?;*?=*??+A?C?++?Id?ML*?QY+?S?5??U?XY*?Z?]?N?GUXc-BYM	NOPQR"[+]7_C`GdJgReXoYq. Z/0Z1Zefg?7D`chi&j)?--?`?l:?lYnp+?rS--??u*,?{?-u	vw#x.>-/0-~-?-??-?	$??h}&?)?	?*+,??:??????:??????:??????7:??:?:??Y??????????????-?-???:??Y??????FIctz{c-B}~,?<???I?K?W?d?m?p?t?{?}???.f
?/0??????????q??,_???1??K??}??g.?ID?D????c
?Jc
h?&?)?
s*+,??N::*-??:??Y??:??:??:?2:??Y??Yշ??ضܷ߿:?
??:	??
??:	?
/2c
MMTY\jfknj-B??
?
???&?2?4?M?O?T?^?a?f?p?.\	s/0s?s??l?
i??
f????&??4??gb?2D?D??cZ??	D?D???j?D?D??Lj??&?)?0*+,??N*-??:*??:??Y??Yշ??ضܷ߿c-?????.>0/00?0??)?????g?D?Dc??)8???Y??N-??W-??Y???+??*?9???ܶ?W6?/,2??:,2?:,2?:-???W?,????-??Y??+??
???ܶ?W-??W-??-2???+?1?:?C?L?Z?d?????.R?/0??????.6": CLg
?1?+??&j)??*?5??M*?=?,*?=?*???,*???!,$?&?N-?),?.,?2,*?;?5,9;?5*?7?,=*?7?5,??N?CY-E?G:+?J?M,?N:?:,?R:*?7?*,U?W?7?)03*???j-b????!?)?3?4?8?=?B?L?V?]?h?m?z???	????.\	?/0???[\4?]m>^_z1`a???????bcg/?I*/?%DdCj??fg)/*?5?-./0hi)>*+?5?-
./0j?)/*?7?-!./0k%)>*+?7?-
&'./0l?)/*?9?-+./0m%)>*+?9?-
01./0 )>*?=?-
56./0n"oL)/*?=?-:./0# )>*???-
?@./0n"pL)/*???-D./0q%)?Sr+?t?*?;?Bx+?t?*?;?/z+?t?*?;?|+?t?*?;?	*?;?-*
S
UWY&[0]9_CaLeRg.S/0S~g??&j)?2??Y??M?Y??Y+????N?
,??W-??Y:???-??,?-klnp"n,r0s.>2/02??*???)	?g??D?
W4&??)r&??K*??Y??S???L+*??+?????-yz{|~"}%.!???????X??




© 2015 - 2024 Weber Informatics LLC | Privacy Policy