Forum Discussion
Ian_McKenna_113
Nimbostratus
Apr 24, 2006How to create a new node
I'd like to create a new node on the BIG-IP.
As a base I am using one of the sample codes.
I am using:
----------------------------------------------------------------------------
createNode
----------------------------------------------------------------------------
sub createNode()
{
$soapResponse = $NodeCreate->create(
SOAP::Data->name( node_addresses => [$sNode] ),
SOAP::Data->name( limits => [$sLimits] )
);
&checkResponse($soapResponse);
}
But I am getting
"500 Internal Server Error at createNode.pl line 69" as return.
The samples are running allright. Whats my mistake. Any clue?
Must be a very simple mistake.
Ian
- The basics of your code looks fine. Have you verified that the contents of the $sNode and $sLimits variables are valid? I tried this code snippet and it worked for me.
sub createNodeAddress() { $sNode = "1.2.3.4"; $sLimits = 0; $soapResponse = $NodeAddress->create ( SOAP::Data->name(node_addresses => [$sNode]), SOAP::Data->name(limits => [$sLimits]) ); &checkResponse($soapResponse); print "Node Address Created Successfully!\n"; }
use SOAP::Lite + trace => qw(method debug);
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 1.2.3.4 80
- Ian_McKenna_113
Nimbostratus
Thanks it is working now. - Ian_McKenna_113
Nimbostratus
Posted By yorky on 4/24/2006 11:45 PM
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects