Code Share
Expert Exchange is now NetScaler Code Share.
Community Contributed NetScaler - AppExpert Samples
Searching for a particular solution? Browse all the scripts and tools written by Citrix insiders, as well as by members of the NetScaler-AppExpert community.
Want to showcase your script or sample then login and contribute to the NetScaler-AppExpert Developer community.
|
Login with your MyCitrix account and start contributing. |
|
|
Redirect a request based on a query string valueTags: netscaler_codeshare, netscaler_api |
|
|
Redirect an external URL to an internal URLTags: netscaler_codeshare, netscaler_api |
|
|
Redirect from URL A to URL BTags: netscaler_codeshare, netscaler_api |
|
|
Prevent a server from chunking HTTP responsesTags: netscaler_codeshare, netscaler_api |
|
|
Replace "http" with "https" in an HTTP responseTags: netscaler_codeshare, netscaler_api |
|
|
Content Switching configuration using CSharp .NetContent Switching configuration using CSharp .NetTags: |
|
|
ACL configuration sample using CSharp .NetACL configuration sample Csharp fileTags: |
|
|
Load balancer spillover configuration sample using Csharp and NetScaler XML APILoad Balancer configuration sampleTags: |
|
|
Compression configuration example using Csharp and NetScaler XML APICompression configuration example using Csharp and NetScaler XML APITags: |
|
|
Caching configuration example using CsharpCaching configuration example using CsharpTags: |
|
|
HA configuration sample using CsharpHA configuration sample using CsharpTags: |
|
|
TCP Buffering configuration sample using CsharpCsharp example showing TCP buffering with NetScaler APITags: |
|
|
Using Rewrite to Redirect on 500 errorsThe Rewrite feature of the NetScaler can be used to automatically retry a web site when the backend server responds to a request with a 500 error.Tags: |
|
|
Using Responder to create 404 Not FoundThe responder module on the NetScaler can be used to generate respones based on some attribute of the incoming connection. The responder module is only available with NetScaler 8.0 (or later). This defines the prcocedure to create a 404 Not Found response based on the URL of the incoming request. Tags: |
|
|
Simple Java program demo Netscaler APIPlease write a short summary here. This short summary will appear on Script ExchangeTags: |
|
|
Sample JAVA program to demonstrate netscaler api "get" methodsPlease write a short summary here. This short summary will appear on Script ExchangeTags: |
|
|
perl script to demo netscaler api "get" methodsTags: |
|
|
NetScaler Config file for Sharepoint 2007Tags: |
|
|
How to rewrite HTTP Headers with Client IPTags: |
Comments (10)
Oct 01, 2007
Anonymous says:
Looking forward to seeing this site fill up !!Looking forward to seeing this site fill up !!
May 07, 2008
Anonymous says:
I am having difficulty getting access to server objects. I am using Java and ha...I am having difficulty getting access to server objects. I am using Java and have generated Java stubs from the WSDL. I can successfully run, for instance, the lbvserver examples. However, when I attempt to do something like the following:
getserverresult = client.getserver("", false);
System.out.println("post server" + System.currentTimeMillis());
Server[] serverNames = getserverresult.getList();
for (int j = 0; j < serverNames.length; j++)
{ System.out.println(" server name: " + serverNames[j].getName() + " " + serverNames[j].getState()); }
I get the following SOAP problems:
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/\}
Client
faultSubcode:
faultString: XML syntax error
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/\}
stackTrace:XML syntax error
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
Is there a known problem with the XML emitted from the getserver call?
Also, FYI, you have a typo in your wsdl:
I believe it should be serviceconftype.
May 07, 2008
Vishal Ganeriwala says:
I have emailed the engineering team. Someone should get back to you soon. Thanks...I have emailed the engineering team. Someone should get back to you soon. Thanks for finding out typo for serviceconftype
May 12, 2008
Anonymous says:
I was wondering if anyone has been able to get server results back from the web ...I was wondering if anyone has been able to get server results back from the web services API.
Thanks!
May 12, 2008
Vishal Ganeriwala says:
I have ran several examples successfully right out of the box. I am going to pos...I have ran several examples successfully right out of the box. I am going to post a video on how to get started. Meanwhile you can check the getting started resources.
http://community.citrix.com/display/ae/Getting%20started%20with%20NetScaler%20XML%20API
May 12, 2008
Anonymous says:
Thanks, perhaps I should clarify. I have worked through the examples and t...Thanks, perhaps I should clarify. I have worked through the examples and those do seem to work fine, but I was wondering specifically about listing server objects in the netscaler, as mentioned above. I seem to specifically have problems with that.
Thanks!
May 12, 2008
Vishal Ganeriwala says:
Thanks for the clarification. I will work on posting something specific to Serve...Thanks for the clarification. I will work on posting something specific to Server object. What version of NetScaler API are you working with?
May 12, 2008
Anonymous says:
My WSDL shows: <!- ** File generated Thu Feb 28 20:15:46 200...My WSDL shows:
<!
- ** File generated Thu Feb 28 20:15:46 2008 by genAPI ** -><!-
#NS8.0 Build 53.2 ->Thanks much.
May 13, 2008
Raghu Govindaswamy says:
Did you try disabling the HREF support on the JAVA AXIS client? This is document...Did you try disabling the HREF support on the JAVA AXIS client? This is documented within the SDK Java usage section, but adding this to the code should fix the issue
((org.apache.axis.client.Stub)client)._setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE
May 13, 2008
Anonymous says:
Thanks much, that worked!Thanks much, that worked!
Add Comment