public EndpointInfo createEndpointInfo( ServiceInfo serviceInfo, BindingInfo b, List<?> ees ) { if (ees != null) { for (Iterator<?> itr = ees.iterator(); itr.hasNext();) { Object extensor = itr.next(); if (extensor instanceof AddressType) { final AddressType httpAdd = (AddressType)extensor; EndpointInfo info = new HttpEndpointInfo(serviceInfo, "http://schemas.xmlsoap.org/wsdl/http/"); info.setAddress(httpAdd.getLocation()); info.addExtensor(httpAdd); return info; } } } HttpEndpointInfo hei = new HttpEndpointInfo(serviceInfo, "http://schemas.xmlsoap.org/wsdl/http/"); AddressType at = new AddressType(); hei.addExtensor(at); return hei; }
public void setAddress(String s) { super.setAddress(s); if (saddress != null) { saddress.setLocation(s); } }
vcard.addTelephoneNumber(tel); AddressType adr = new AddressType(); adr.setStreetAddress(p.getStreet()); adr.setLocality(p.getCity()); adr.setRegion(p.getState()); adr.setPostalCode(p.getPostcode()); adr.setCountry(p.getCountry()); adr.addType(AddressTypeParameter.WORK); vcard.addAddress(adr);
address = ((SoapAddress)e).getLocationURI(); } else if (e instanceof AddressType) { address = ((AddressType)e).getLocation(); } else if (e instanceof SOAP12Address) { address = ((SOAP12Address)e).getLocationURI();
CreateRecurringPaymentsProfileRequestDetailsType createRecurringPaymentsProfileRequestDetails = new CreateRecurringPaymentsProfileRequestDetailsType(recurringPaymentsProfileDetails, scheduleDetails); AddressType addressType = new AddressType(); addressType.setStateOrProvince("STATE"); addressType.setCityName("CITY"); addressType.setCountryName("COUNTRY");
/** * Create an instance of {@link AddressType } * */ public AddressType createAddressType() { return new AddressType(); }
protected Destination getDestination(EndpointInfo ei, EndpointReferenceType reference, Bus bus) throws IOException { Destination d = null; String addr = reference.getAddress().getValue(); if (addr == null) { AddressType tp = ei.getExtensor(AddressType.class); if (tp != null) { addr = tp.getLocation(); } } if (addr == null) { addr = NULL_ADDRESS; } d = destinations.get(addr); if (d == null) { d = createDestination(ei, reference, bus); Destination tmpD = destinations.putIfAbsent(addr, d); if (tmpD != null) { d = tmpD; } } return d; }
/** * Create an instance of {@link AddressType } * */ public AddressType createAddressType() { return new AddressType(); }
public static void setAddress(AbstractDestination dest, String absAddress) { dest.getEndpointInfo().setAddress(absAddress); if (dest.getEndpointInfo().getExtensor(AddressType.class) != null) { dest.getEndpointInfo().getExtensor(AddressType.class).setLocation(absAddress); } } }
public EndpointInfo createEndpointInfo( ServiceInfo serviceInfo, BindingInfo b, List<?> ees ) { if (ees != null) { for (Iterator<?> itr = ees.iterator(); itr.hasNext();) { Object extensor = itr.next(); if (extensor instanceof AddressType) { final AddressType httpAdd = (AddressType)extensor; EndpointInfo info = new HttpEndpointInfo(serviceInfo, "http://schemas.xmlsoap.org/wsdl/http/"); info.setAddress(httpAdd.getLocation()); info.addExtensor(httpAdd); return info; } } } HttpEndpointInfo hei = new HttpEndpointInfo(serviceInfo, "http://schemas.xmlsoap.org/wsdl/http/"); AddressType at = new AddressType(); hei.addExtensor(at); return hei; }
protected Destination getDestination(EndpointInfo ei, EndpointReferenceType reference, Bus bus) throws IOException { Destination d = null; String addr = reference.getAddress().getValue(); if (addr == null) { AddressType tp = ei.getExtensor(AddressType.class); if (tp != null) { addr = tp.getLocation(); } } if (addr == null) { addr = NULL_ADDRESS; } d = destinations.get(addr); if (d == null) { d = createDestination(ei, reference, bus); Destination tmpD = destinations.putIfAbsent(addr, d); if (tmpD != null) { d = tmpD; } } return d; }
/** * Create an instance of {@link AddressType } * */ public AddressType createAddressType() { return new AddressType(); }
@Override public void handle(HttpExchange exchange) throws IOException { try { //Update address in EndpointInfo; this can only happen here, //as the contextPath is provided in the HttpExchange only EndpointInfo ei = destination.getEndpointInfo(); if (ei != null) { String ad = ei.getAddress(); String path = exchange.getHttpContext().getPath(); if (ad != null && ad.equals(path)) { synchronized (ei) { String contextPath = exchange.getContextPath(); ei.setAddress(contextPath + path); if (ei.getExtensor(AddressType.class) != null) { ei.getExtensor(AddressType.class).setLocation(contextPath + path); } else if (ei.getExtensor(SoapAddress.class) != null) { ei.getExtensor(SoapAddress.class).setLocationURI(contextPath + path); } } } } //service request destination.doService(new HttpServletRequestAdapter(exchange), new HttpServletResponseAdapter(exchange)); } finally { exchange.close(); } }
info.setAddress(httpAdd.getLocation()); info.addExtensor(httpAdd); return info;
/** * Create an instance of {@link AddressType } * */ public AddressType createAddressType() { return new AddressType(); }
public void setAddress(String s) { super.setAddress(s); if (saddress != null) { saddress.setLocation(s); } }
new HttpEndpointInfo(serviceInfo, "http://schemas.xmlsoap.org/wsdl/http/"); info.setAddress(httpAdd.getLocation()); info.addExtensor(httpAdd); return info;
AddressType shipAddress = new AddressType(); shipAddress.Name = string.Format("{0} {1}", basket.Order.DeliveryFirstName, basket.Order.DeliverySurname); shipAddress.Street1 = basket.Order.BillingAddress1;
public void setAddress(String s) { super.setAddress(s); if (saddress != null) { saddress.setLocation(s); } }
address = ((SoapAddress)e).getLocationURI(); } else if (e instanceof AddressType) { address = ((AddressType)e).getLocation(); } else if (e instanceof SOAP12Address) { address = ((SOAP12Address)e).getLocationURI();