01: package org.objectweb.celtix.bus.bindings.xml;
02:
03: import java.net.*;
04: import javax.xml.namespace.QName;
05:
06: import org.objectweb.celtix.ws.addressing.EndpointReferenceType;
07: import org.objectweb.celtix.wsdl.EndpointReferenceUtils;
08:
09: public final class TestUtils {
10:
11: public EndpointReferenceType getEndpointReference() {
12: URL wsdlUrl = getClass().getResource(
13: "/wsdl/hello_world_xml_bare.wsdl");
14: QName serviceName = new QName(
15: "http://objectweb.org/hello_world_xml_http/bare",
16: "XMLService");
17: return EndpointReferenceUtils.getEndpointReference(wsdlUrl,
18: serviceName, "XMLPort");
19: }
20:
21: public EndpointReferenceType getWrappedReference() {
22: URL wsdlUrl = getClass().getResource(
23: "/wsdl/hello_world_xml_wrapped.wsdl");
24: QName serviceName = new QName(
25: "http://objectweb.org/hello_world_xml_http/wrapped",
26: "XMLService");
27: return EndpointReferenceUtils.getEndpointReference(wsdlUrl,
28: serviceName, "XMLPort");
29: }
30: }
|