(a)
<%
//connect to news web service
m_urlEndpoint = new URL("http://www.SoapClient.com/xml/SQLDataSoap.WSDL");
m_stringMethodsURI = new String(
"http://www.SoapClient.com/xml/SQLDataSoap.xsd" );
%>
(b)
<%
//specify the name of the web service method
m_callRemoteMethod = new Call();
m_callRemoteMethod.setTargetObjectURI( m_stringMethodsURI );
m_callRemoteMethod.setMethodName( "ProcessSRL");
m_callRemoteMethod.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
%>
Example 2: (a) Replacing placeholders with Java code; (b) implementing the Call class.
Back to Article