07-31-2012 12:22 PM - edited 03-16-2019 12:28 PM
Hello guys,
i have a question to the AXL programming. Today i looked for tutorials to make a small programm, maybe just to configure one translation pattern.
But when i search at google, i´ve found only tutorials which dont show the whole process. (a step by step - from the beginning to the end - tutorial would be nice). Does anybody have such a tutorial?
If not, can you tell me whats the best guide to learn AXL Programming?
Best Regards
Daniel
08-07-2012 12:32 AM
Hi
http://www.ipcommute.co.uk/technical-articles/6--using-axlsqltoolkit-for-everything.htmlhttp://www.google.co.uk/url?sa=t&rct=j&q=ipcommute.co.uk%2F%20axlsqltoolkit&source=web&cd=1&ved=0CDYQFjAA&url=http%3A%2F%2Fwww.ipcommute.co.uk%2Ftechnical-articles%2F6--using-axlsqltoolkit-for-everything.html&ei=Z8QgULLjNrOk0AX3tIH4DQ&usg=AFQjCNFpKkg...
Regards
Principal Engineer at Logicalis UK
Please rate helpful posts...
>
08-07-2012 03:59 AM
Hey Aaron,
Translation Pattern worked fine. I also did this for adding Partitions and for adding CSS(including partitions).
But now when i try to update some ServiceParameters i dont see how the XML output should look like.
At the moment i did it like this:
public SOAPMessage createSOAPMessage() throws Exception {
MessageFactory mf = MessageFactory.newInstance();
SOAPMessage soapMessage = mf.createMessage();
SOAPPart soapPart = soapMessage.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPBody bdy = envelope.getBody();
SOAPBodyElement bodyElement = bdy.addBodyElement(envelope.createName("updateServiceParameter", "axl", "
http://www.cisco.com/AXL/API/1.0
"));
Name attrUuid = envelope.createName("uuid");
SOAPElement ServiceParameter = bodyElement.addChildElement("ServiceParameter");
ServiceParameter.addAttribute(envelope.createName("sequence"), String.valueOf(System.currentTimeMillis()));
ServiceParameter.addChildElement("name").addTextNode("TimerT302_msec");
ServiceParameter.addChildElement("value").addTextNode("8000");
return soapMessage; public SOAPMessage createSOAPMessage() throws Exception {
MessageFactory mf = MessageFactory.newInstance();
SOAPMessage soapMessage = mf.createMessage();
SOAPPart soapPart = soapMessage.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPBody bdy = envelope.getBody();
SOAPBodyElement bodyElement = bdy.addBodyElement(envelope.createName("updateServiceParameter", "axl", "http://www.cisco.com/AXL/API/1.0"));
Name attrUuid = envelope.createName("uuid");
SOAPElement ServiceParameter = bodyElement.addChildElement("ServiceParameter");
ServiceParameter.addAttribute(envelope.createName("sequence"), String.valueOf(System.currentTimeMillis()));
ServiceParameter.addChildElement("name").addTextNode("TimerT302_msec");
ServiceParameter.addChildElement("value").addTextNode("8000");
return soapMessage;
In the Documentation i see which fields i should use and via SQL i saw that the parameter is named TimerT302_msec, but i think i send it wrong to the CUCM.
Maybe you already programmed a script for update SP.
Best Regards
Daniel
08-07-2012 04:39 AM
Hi Daniel
According to the AXL API:
You need to specify a node name, param name, and service. You'd need to look closer at the spec or experiment a little in order to find the correct values for each.
Aaron
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide