Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

AXL Developer

Dear all.,

              We are creating updatemethods. we want one sample fo

UpdateCallingPartyTransformationPatternReq request = new UpdateCallingPartyTransformationPatternReq();

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: AXL Developer

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.

6 REPLIES

AXL Developer

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.

New Member

AXL Developer

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 

AXL Developer

Hi.

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

G.

New Member

AXL Developer

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.

Re: AXL Developer

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.

New Member

AXL Developer

Hi

Gergely Szabo,

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

389
Views
0
Helpful
6
Replies
CreatePlease to create content