Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.setProperty("javax.net.debug", "all")
- String soapEnvelope = "<BookingRetrievalRQ xmlns="http://www.expediaconnect.com/EQC/BR/2014/01"><Authentication username="EQCtest12933870" password="wm47ah92"/></BookingRetrievalRQ>"
- SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance()
- SOAPConnection connection = scf.createConnection()
- MessageFactory messageFactory = MessageFactory.newInstance()
- ByteArrayInputStream xmlStream = new ByteArrayInputStream((soapEnvelope.getBytes()))
- SOAPMessage soapM = messageFactory.createMessage(null, xmlStream)
- URL dest = new URL("https://services.expediapartnercentral.com/eqc/br")
- SOAPMessage soapResponse = connection.call(soapM, dest)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement