Static WSDL example
reference australia Updated Sep 10, 2026 1 min read r_StaticWSDLExample.md
This example demonstrates the FakeStockValue WSDL.
XML
<?xml version= "1.0" ?><definitions name = "StockQuote"targetNamespace = "http://example.com/stockquote.wsdl"xmlns:tns = "http://example.com/stockquote.wsdl"xmlns:xsd1 = "http://example.com/stockquote.xsd"xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"xmlns = "http://schemas.xmlsoap.org/wsdl/" > <types><schema targetNamespace = "http://example.com/stockquote.xsd"xmlns = "http://www.w3.org/2000/10/XMLSchema" ><element name = "TradePriceRequest" ><complexType><all><element name = "tickerSymbol" type = "string" /></all></complexType></element><element name = "TradePrice" ><complexType><all><element name = "price" type = "float" /></all></complexType></element></schema></types> <message name = "GetLastTradePriceInput" ><part name = "body" element = "xsd1:TradePriceRequest" /></message> <message name = "GetLastTradePriceOutput" ><part name = "body" element = "xsd1:TradePrice" /></message> <portType name = "StockQuotePortType" ><operation name = "GetLastTradePrice" ><input message = "tns:GetLastTradePriceInput" /><output message = "tns:GetLastTradePriceOutput" /></operation></portType> <binding name = "StockQuoteSoapBinding" type = "tns:StockQuotePortType" ><soap:binding style = "document" transport = "http://schemas.xmlsoap.org/soap/http" /><operation name = "GetLastTradePrice" ><soap:operation soapAction = "" /><input><soap:body use = "literal" /></input><output><soap:body use = "literal" /></output></operation></binding> <service name = "StockQuoteService" ><documentation>My first service</documentation><port name = "StockQuotePort" binding = "tns:StockQuoteSoapBinding" ><soap:address location = "https://myinstance.service-now.com/FakeStockValue.do?SOAP" /></port></service> </definitions>Parent Topic:Create a static WSDL
39 lines · 2.5 KB
--- title: Static WSDL example description: This example demonstrates the FakeStockValue WSDL. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/web-services/r\_StaticWSDLExample.html release: australia product: Web Services classification: web-services topic_type: reference last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [Create a static WSDL, Creating with static WSDLs, Scripted Services, SOAP web service, Inbound, Web services, API implementation, API implementation and reference] --- # Static WSDL example This example demonstrates the FakeStockValue WSDL. ``` <?xml version= "1.0" ?><definitions name = "StockQuote"targetNamespace = "http://example.com/stockquote.wsdl"xmlns:tns = "http://example.com/stockquote.wsdl"xmlns:xsd1 = "http://example.com/stockquote.xsd"xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"xmlns = "http://schemas.xmlsoap.org/wsdl/" > <types><schema targetNamespace = "http://example.com/stockquote.xsd"xmlns = "http://www.w3.org/2000/10/XMLSchema" ><element name = "TradePriceRequest" ><complexType><all><element name = "tickerSymbol" type = "string" /></all></complexType></element><element name = "TradePrice" ><complexType><all><element name = "price" type = "float" /></all></complexType></element></schema></types> <message name = "GetLastTradePriceInput" ><part name = "body" element = "xsd1:TradePriceRequest" /></message> <message name = "GetLastTradePriceOutput" ><part name = "body" element = "xsd1:TradePrice" /></message> <portType name = "StockQuotePortType" ><operation name = "GetLastTradePrice" ><input message = "tns:GetLastTradePriceInput" /><output message = "tns:GetLastTradePriceOutput" /></operation></portType> <binding name = "StockQuoteSoapBinding" type = "tns:StockQuotePortType" ><soap:binding style = "document" transport = "http://schemas.xmlsoap.org/soap/http" /><operation name = "GetLastTradePrice" ><soap:operation soapAction = "" /><input><soap:body use = "literal" /></input><output><soap:body use = "literal" /></output></operation></binding> <service name = "StockQuoteService" ><documentation>My first service</documentation><port name = "StockQuotePort" binding = "tns:StockQuoteSoapBinding" ><soap:address location = "https://myinstance.service-now.com/FakeStockValue.do?SOAP" /></port></service> </definitions> ``` **Parent Topic:**[Create a static WSDL](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/web-services/t_CreateAStaticWSDL.md)
| title | Static WSDL example |
| description | This example demonstrates the FakeStockValue WSDL. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/api-reference/web-services/r\_StaticWSDLExample.html |
| release | australia |
| product | Web Services |
| classification | web-services |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Create a static WSDLCreating with static WSDLsScripted ServicesSOAP web serviceInboundWeb servicesAPI implementationAPI implementation and reference |