11-25-2013 02:15 AM - last edited on 03-25-2019 09:51 PM by ciscomoderator
Dear all.,
We are creating updatemethods. we want one sample fo
UpdateCallingPartyTransformationPatternReq request = new UpdateCallingPartyTransformationPatternReq();
Solved! Go to Solution.
11-25-2013 12:07 PM
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.
11-25-2013 04:19 AM
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.
11-25-2013 05:19 AM
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
11-25-2013 05:23 AM
Hi.
What is ItemChoiceType22? Are you getting an error message, perhaps?
G.
11-25-2013 05:29 AM
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.
11-25-2013 12:07 PM
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.
12-04-2013 12:35 AM
Hi
Gergely Szabo,
Thank you for your support we are able to update the transformation pattern. Thankyou somuch for screen shot .
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