Contents Now Platform Custom Business Applications Previous Topic Next Topic Use the static WSDL Subscribe Log in to subscribe to topics and get notified when content changes. ... SAVE AS PDF Selected Topic Topic & Subtopics All Topics in Contents Share Use the static WSDL Load the static WSDL into a SOAP client to make requests to the SOAP web service. The web service client provides The FakeStockValue project. The StockQuoteBinding web service. The GetLastTradePrice SOAP function. This function generates request records when run. Figure 1. Loaded WSDL You can change the default request XML in the static WSDL to include a stock symbol.<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:stoc="http://example.com/stockquote.xsd"> <soapenv:Header/> <soapenv:Body> <stoc:TradePriceRequest>IBM</stoc:TradePriceRequest> </soapenv:Body> </soapenv:Envelope> Submitting a SOAP request to this web service endpoint returns the following to the requesting SOAP client.<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <GetLastTradePriceOutput xmlns="https://www.service-now.com/vws/FakeStockValue"> <message>admin2, You were looking for a quote on IBM</message> </GetLastTradePriceOutput> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Previous TopicCreate a static WSDL script include On this page Send Feedback Previous Topic Next Topic
Use the static WSDL Load the static WSDL into a SOAP client to make requests to the SOAP web service. The web service client provides The FakeStockValue project. The StockQuoteBinding web service. The GetLastTradePrice SOAP function. This function generates request records when run. Figure 1. Loaded WSDL You can change the default request XML in the static WSDL to include a stock symbol.<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:stoc="http://example.com/stockquote.xsd"> <soapenv:Header/> <soapenv:Body> <stoc:TradePriceRequest>IBM</stoc:TradePriceRequest> </soapenv:Body> </soapenv:Envelope> Submitting a SOAP request to this web service endpoint returns the following to the requesting SOAP client.<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <GetLastTradePriceOutput xmlns="https://www.service-now.com/vws/FakeStockValue"> <message>admin2, You were looking for a quote on IBM</message> </GetLastTradePriceOutput> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Previous TopicCreate a static WSDL script include
Use the static WSDL Load the static WSDL into a SOAP client to make requests to the SOAP web service. The web service client provides The FakeStockValue project. The StockQuoteBinding web service. The GetLastTradePrice SOAP function. This function generates request records when run. Figure 1. Loaded WSDL You can change the default request XML in the static WSDL to include a stock symbol.<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:stoc="http://example.com/stockquote.xsd"> <soapenv:Header/> <soapenv:Body> <stoc:TradePriceRequest>IBM</stoc:TradePriceRequest> </soapenv:Body> </soapenv:Envelope> Submitting a SOAP request to this web service endpoint returns the following to the requesting SOAP client.<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <GetLastTradePriceOutput xmlns="https://www.service-now.com/vws/FakeStockValue"> <message>admin2, You were looking for a quote on IBM</message> </GetLastTradePriceOutput> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Previous TopicCreate a static WSDL script include