cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1329
Views
0
Helpful
6
Replies

AXL Developer

gnanamcool2k10
Level 1
Level 1

Dear all.,

              We are creating updatemethods. we want one sample fo

UpdateCallingPartyTransformationPatternReq request = new UpdateCallingPartyTransformationPatternReq();

1 Accepted Solution

Accepted Solutions

Okay. So you checked the documents at the Cisco devloper website (http://developer.cisco.com/web/axl/documentation) and perhaps the Cookbook (http://developer.cisco.com/downloads/axl/cookbook/overview.html). You possess fair knowledge of SOAP. You do know the meaning of the words SSL, XML, OOP. And, by the way, you have at least basics of CUCM administration.

In that case, here's a sample:

package blah.axl70;

import javax.xml.ws.BindingProvider;

import com.cisco.axl.api._7.GetTransformationPatternReq;

import com.cisco.axl.api._7.GetTransformationPatternRes;

import com.cisco.axl.api._7.UpdateTransformationPatternReq;

import com.cisco.axlapiservice.AXLAPIService;

import com.cisco.axlapiservice.AXLPort;

public class Main {

    static {

        javax.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(

        new javax.net.ssl.HostnameVerifier(){

            public boolean verify(String hostname, javax.net.ssl.SSLSession sslSession) {

                return true;

            }

        });

    }

    public static void main(String[] args) {

        XTrustProvider.install();

        AXLAPIService service = new AXLAPIService();

        AXLPort axlPort = service.getAXLPort();

        BindingProvider bindingProvider = (BindingProvider) axlPort;

        bindingProvider.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "https://192.168.1.11:8443/axl/");

        bindingProvider.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "administrator");

        bindingProvider.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "SuperSecretPasword");

        GetTransformationPatternReq gtpReq = new GetTransformationPatternReq();

        gtpReq.setPattern("XXXX");

        gtpReq.setRoutePartitionName("poc");

        GetTransformationPatternRes gtpRes = axlPort.getTransformationPattern(gtpReq);

        String uuid = gtpRes.getReturn().getPattern().getUuid();

        UpdateTransformationPatternReq utpReq = new UpdateTransformationPatternReq();

        utpReq.setUuid(uuid);

        utpReq.setDescription("Yo!");

        axlPort.updateTransformationPattern(utpReq);

    }

}

Before:

After:

Yep, it's Java. CUCM is 7.0.

G.

View solution in original post

6 Replies 6

Gergely Szabo
VIP Alumni
VIP Alumni

Hi,

alright, can you please describe what you are trying to do?

http://developer.cisco.com/axl/Files/AXLSoap_updateCallingPartyTransformationPattern.html contains all the input params.

G.

Hi friend.,

           We are having the axl soap update file. but the issue is we are not able to find out the correct itemchoicetype;

for example

UpdateEnterpriseFeatureAccessConfigurationReq request = new UpdateEnterpriseFeatureAccessConfigurationReq();

                request.ItemsElementName=ItemChoiceType22.

we are using like that . but how to process in next step 

Hi.

What is ItemChoiceType22? Are you getting an error message, perhaps?

G.

HI..

   We are hving The AXLWSDL file and xsd file. we generate a cs file from wsdl.exe. We are using the cs file in .Net Environment .if we want to update a menu or tab. we have to use methods  for example if we want to update any enterprise feature access configuration we will use the class..

updateEnterpriseFeatureAccessConfigurationReq request = new UpdateEnterpriseFeatureAccessConfigurationReq();

                request.ItemsElementName=ItemChoiceType22.

We dont know how to use this.

Okay. So you checked the documents at the Cisco devloper website (http://developer.cisco.com/web/axl/documentation) and perhaps the Cookbook (http://developer.cisco.com/downloads/axl/cookbook/overview.html). You possess fair knowledge of SOAP. You do know the meaning of the words SSL, XML, OOP. And, by the way, you have at least basics of CUCM administration.

In that case, here's a sample:

package blah.axl70;

import javax.xml.ws.BindingProvider;

import com.cisco.axl.api._7.GetTransformationPatternReq;

import com.cisco.axl.api._7.GetTransformationPatternRes;

import com.cisco.axl.api._7.UpdateTransformationPatternReq;

import com.cisco.axlapiservice.AXLAPIService;

import com.cisco.axlapiservice.AXLPort;

public class Main {

    static {

        javax.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(

        new javax.net.ssl.HostnameVerifier(){

            public boolean verify(String hostname, javax.net.ssl.SSLSession sslSession) {

                return true;

            }

        });

    }

    public static void main(String[] args) {

        XTrustProvider.install();

        AXLAPIService service = new AXLAPIService();

        AXLPort axlPort = service.getAXLPort();

        BindingProvider bindingProvider = (BindingProvider) axlPort;

        bindingProvider.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "https://192.168.1.11:8443/axl/");

        bindingProvider.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "administrator");

        bindingProvider.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "SuperSecretPasword");

        GetTransformationPatternReq gtpReq = new GetTransformationPatternReq();

        gtpReq.setPattern("XXXX");

        gtpReq.setRoutePartitionName("poc");

        GetTransformationPatternRes gtpRes = axlPort.getTransformationPattern(gtpReq);

        String uuid = gtpRes.getReturn().getPattern().getUuid();

        UpdateTransformationPatternReq utpReq = new UpdateTransformationPatternReq();

        utpReq.setUuid(uuid);

        utpReq.setDescription("Yo!");

        axlPort.updateTransformationPattern(utpReq);

    }

}

Before:

After:

Yep, it's Java. CUCM is 7.0.

G.

Hi

Gergely Szabo,

   Thank you for your support we are able to update the transformation pattern. Thankyou  somuch for screen shot .