@WebResult( header = true, name = "BSCHeader", targetNamespace = "urn:bearstearns.com:bsc.soap.BSCHeader:v1.0", partName = "BSCHeader") public BscHeaderType bSCHeader() { com.bearstearns.bsc_soap_bscheader.v2.ObjectFactory bscFactory = new com.bearstearns.bsc_soap_bscheader.v2.ObjectFactory(); BscHeaderType bscHeaderType = bscFactory.createBscHeaderType(); return bscHeaderType; }
@WebResult( header = true, name = "Authentication", targetNamespace = "urn:bearstearns.com:bsc.soap.BSCHeader:v1.0", partName = "Authentication") public AuthenticationType authentication() { com.bearstearns.bsc_soap_bscheader.v2.ObjectFactory bscFactory = new com.bearstearns.bsc_soap_bscheader.v2.ObjectFactory(); String userID = "V644866"; JAXBElement<String> createUserID = bscFactory.createUserID(userID); String password = "******"; JAXBElement<String> createPassword = bscFactory.createPassword(password); JAXBElement<String> createCorrelationID = bscFactory.createCorrelationID(null); JAXBElement<String> createSourceInfo = bscFactory.createSourceInfo(null); AuthenticationType authenticationType = bscFactory.createAuthenticationType(); authenticationType.getContent().add(createUserID); authenticationType.getContent().add(createPassword); authenticationType.getContent().add(createCorrelationID); authenticationType.getContent().add(createSourceInfo); return authenticationType; }