The SOAP Trace feature is currently unavailable. Please contact us
for help with your SOAP requests.
Troubleshooting problems with SOAP requests can be difficult as development toolkits do not always let you
visualize the SOAP request sent to our servers and the response returned. Visualizing such request
and response can be helpful in troubleshooting a problem as you can almost instantly verify whether your
request was well formed and our response was appropriate.
To make such diagnosis easier, Xignite provide a tracing mechanism for your SOAP requests. Using this tracing
mechanism involves two steps:
- Activating tracing for a request.
- Viewing the Trace.
Activating Tracing for a Request
To activate tracing for a request, you must provide a value for the Tracer parameter of the optional
SOAP Header available for all Xignite operations. This Header (simply named Header) accepts three
parameters. None of these parameters are required:
- Username holds your system Username, which is the email address you provided when
registering for the service. You should only provide this value if you are using SOAP headers for authentication.
It is not required to provide this value to activate tracing.
- Password is currently unused
- Tracer is the value you must provide to activate tracing. You should use a very unique value
for this argument as Tracer values are common across all users. If someone uses the same name as yours,
their trace will override yours. This value can be any valid string containing letters, numbers, and underscore.
Do not provide special characters such as / or \. If you need to trace separate operations at the same time,
provide a different Tracer value for each operation. The system only lets you view the last request and
response for a specific Tracer value.
The technique to add a soap header to your SOAP request will depend on your developement tookit. If you use
VisualStudio.Net, you can follow these instructions:
When you add a web reference to an Xignite service using VisualStudio.Net, the proxy class that is automatically
generated recognizes the optional SOAP Header and makes it easy for you to provide a value:
VB
'RemoteQuotes is the web reference to the XigniteQuotes service
'objRemoteQuote is an instance of the service proxy
Dim objRemoteQuote as New RemoteQuotes.XigniteQuotes()
'create an instance of the header
Dim objHeader As New RemoteQuotes.Header()
'assign your Tracer value
objHeader.Tracer = "mytracervalue"
'assign the header to the service proxy
objRemoteQuote.HeaderValue = objHeader
'you can then call any method
Dim objExtendedQuote as RemoteQuotes.ExtendedQuote = objRemoteQuote.GetQuote("MSFT")
C#
RemoteQuotes.XigniteQuotes objRemoteQuote = new RemoteQuotes.XigniteQuotes();
RemoteQuotes.Header objHeader = new RemoteQuotes.Header();
objHeader.Tracer = "mytracervalue";
objRemoteQuote.HeaderValue = objHeader;
RemoteQuotes.ExtendedQuote objExtendedQuote = objRemoteQuote.GetQuote("msft");
Viewing the Trace
You can view your trace by using the ViewTrace operation. You simply
need to provide your Tracer value as a parameter and the system will display the last trace for this Tracer
value. Note that the system only lets you view the last SOAP request and response for a specific Tracer value.