XML reduzida para adição/atualização de assinantes

Em alguns casos a inserção ou atualização de assinantes através da XML padrão gerada pelo SoapUI recebe a resposta“500”, para utilizar a funcionalidade é possível utilizar a XML abaixo

XML reduzida

 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.sippulse.voffice.com.br/"> <soapenv:Header/> <soapenv:Body> <ser:insertSubscriber> <subscriber> <accountCode>?</accountCode> <areaCode>?</areaCode> <callLimit>?</callLimit> <blockCollectCalls>?</blockCollectCalls> <localArea>?</localArea> <cityCode>?</cityCode> <contractNumber>?</contractNumber> <countryCode>?</countryCode> <domain>?</domain> <emailAddress>?</emailAddress> <firstName>?</firstName> <password>?</password> <profile>?</profile> <rpid>?</rpid> <username>?</username> <voicemail>?</voicemail> <resellerId>?</resellerId> <ratePlanId>?</ratePlanId> </subscriber> <principal> <login>?</login> <password>?</password> </principal> </ser:insertSubscriber> </soapenv:Body> </soapenv:Envelope>

 

XML original (caso precise adicionar alguma informação não existente na XML reduzida, só adicione a linha faltante)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.sippulse.voffice.com.br/"> <soapenv:Header/> <soapenv:Body> <ser:insertSubscriber> <!--Optional:--> <subscriber> <!--Optional:--> <accountCode>?</accountCode> <activeIncomingCalls>?</activeIncomingCalls> <activeOutgoingCalls>?</activeOutgoingCalls> <addServiceHeader>?</addServiceHeader> <!--Optional:--> <address>?</address> <!--Optional:--> <areaCode>?</areaCode> <blockAnonymousCalls>?</blockAnonymousCalls> <blockCollectCalls>?</blockCollectCalls> <!--Optional:--> <callFwd>?</callFwd> <!--Optional:--> <callLimit>?</callLimit> <callsOnlyByIp>?</callsOnlyByIp> <!--Optional:--> <city>?</city> <!--Optional:--> <cityCode>?</cityCode> <!--Optional:--> <complement>?</complement> <!--Optional:--> <contractNumber>?</contractNumber> <copyPassertedRpid>?</copyPassertedRpid> <!--Optional:--> <countryCode>?</countryCode> <!--Optional:--> <document>?</document> <!--Optional:--> <domain>?</domain> <!--Optional:--> <emailAddress>?</emailAddress> <!--Optional:--> <firstName>?</firstName> <!--Optional:--> <fwdBusy>?</fwdBusy> <!--Optional:--> <id>?</id> <!--Optional:--> <lastName>?</lastName> <!--Optional:--> <localArea>?</localArea> <lowCreditLimit>?</lowCreditLimit> <lowCreditNotification>?</lowCreditNotification> <!--Optional:--> <mobile>?</mobile> <!--Optional:--> <noAnswer>?</noAnswer> <!--Optional:--> <number>?</number> <!--Optional:--> <password>?</password> <!--Optional:--> <passwordPortal>?</passwordPortal> <!--Optional:--> <phone>?</phone> <!--Optional:--> <profile>?</profile> <!--Optional:--> <quarter>?</quarter> <!--Optional:--> <ratePlanId>?</ratePlanId> <resellerBillingType>?</resellerBillingType> <!--Optional:--> <resellerId>?</resellerId> <resellerMarkup>?</resellerMarkup> <!--Optional:--> <resellerRatePlanId>?</resellerRatePlanId> <!--Optional:--> <rings>?</rings> <!--Optional:--> <rpid>?</rpid> <softphoneAllowed>?</softphoneAllowed> <!--Optional:--> <state>?</state> <!--Optional:--> <username>?</username> <!--Optional:--> <voiceMailPassword>?</voiceMailPassword> <voicemail>?</voicemail> <!--Optional:--> <zip>?</zip> </subscriber> <!--Optional:--> <principal> <!--Optional:--> <login>?</login> <!--Optional:--> <password>?</password> </principal> </ser:insertSubscriber> </soapenv:Body> </soapenv:Envelope>

 

Artigos relacionados

 

SIPPulse Routing and Billing Solutions for SIP