joshuajburris
9 years agoNew Contributor
Scripting Options for SOAP/XML requests
Hello, any advice or help with this issue would be GREATLY appreciated.
What do you all recommend for scripting SOAP requests. This is my connection with my test Cisco Call Manager. I can build the new trunk just fine using SOAP UI but am in need of a standalone method using HTML or VBS. My programming language is limited to most VB and Visual Studio. I just need a way to process a large number of SOAP envelopes based on entries in something like a Windows Form application.
Sorry if I posted this in the wrong place.
POST https://192.168.0.29:8443/axl/ HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "CUCM:DB ver=10.5 addSipTrunk" Content-Length: 1721 Host: 192.168.0.29:8443 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) Authorization: Basic Z2RhZG1pbjpHZW5EeW4xMiMk <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/10.5"> <soapenv:Header/> <soapenv:Body> <ns:addSipTrunk> <sipTrunk> <name>TEST_TRUNK</name> <!--Optional:--> <description>TEST_TRUNK</description> <product>SIP Trunk</product> <class>Trunk</class> <protocol>SIP</protocol> <protocolSide>Network</protocolSide> <devicePoolName>G.711 Device Pool</devicePoolName> <networkLocation>Use System Default</networkLocation> <mlppDomainId>-1</mlppDomainId> <mlppIndicationStatus>Off</mlppIndicationStatus> <preemption>Disabled</preemption> <useTrustedRelayPoint>Default</useTrustedRelayPoint> <retryVideoCallAsAudio>true</retryVideoCallAsAudio> <securityProfileName>Non Secure SIP Trunk Profile</securityProfileName> <sipProfileName>Standard SIP Profile</sipProfileName> <transmitUtf8>false</transmitUtf8> <sigDigits>99</sigDigits> <destinations> <destination> <addressIpv4>155.30.180.29</addressIpv4> <port>5060</port> <sortOrder>1</sortOrder> </destination> </destinations> <pathReplacementSupport>false</pathReplacementSupport> <trunkTrafficSecure>When using both sRTP and TLS</trunkTrafficSecure> <callingAndCalledPartyInfoFormat>Deliver DN only in connected party</callingAndCalledPartyInfoFormat> </sipTrunk> </ns:addSipTrunk> </soapenv:Body> </soapenv:Envelope>