Advertisement
Guest User

Untitled

a guest
Jul 12th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. System.setProperty("javax.net.debug", "all")
  2.  
  3. String soapEnvelope = "<BookingRetrievalRQ xmlns="http://www.expediaconnect.com/EQC/BR/2014/01"><Authentication username="EQCtest12933870" password="wm47ah92"/></BookingRetrievalRQ>"
  4.  
  5. SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance()
  6. SOAPConnection connection = scf.createConnection()
  7. MessageFactory messageFactory = MessageFactory.newInstance()
  8. ByteArrayInputStream xmlStream = new ByteArrayInputStream((soapEnvelope.getBytes()))
  9. SOAPMessage soapM = messageFactory.createMessage(null, xmlStream)
  10. URL dest = new URL("https://services.expediapartnercentral.com/eqc/br")
  11. SOAPMessage soapResponse = connection.call(soapM, dest)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement