本文整理汇总了Java中javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder.endpointName方法的典型用法代码示例。如果您正苦于以下问题:Java W3CEndpointReferenceBuilder.endpointName方法的具体用法?Java W3CEndpointReferenceBuilder.endpointName怎么用?Java W3CEndpointReferenceBuilder.endpointName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder
的用法示例。
在下文中一共展示了W3CEndpointReferenceBuilder.endpointName方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testParsedInterfaceName
import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder; //导入方法依赖的package包/类
@Test
public void testParsedInterfaceName() throws Exception
{
W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
builder = builder.address(URL);
Element element = DOMUtils.parse(XML_INTERFACE_NAME);
builder = builder.metadata(element);
builder = builder.serviceName(SERVICE_QNAME);
builder = builder.endpointName(PORT_QNAME);
builder = builder.wsdlDocumentLocation(WSDL_URL);
element = DOMUtils.parse(XML_REF_PARAM1);
builder = builder.referenceParameter(element);
element = DOMUtils.parse(XML_REF_PARAM2);
builder = builder.referenceParameter(element);
W3CEndpointReference epr = builder.build();
DOMResult dr = new DOMResult();
epr.writeTo(dr);
Node endpointReferenceElement = dr.getNode();
Logger.getLogger(this.getClass()).info(DOMUtils.node2String(endpointReferenceElement));
assertMetaData(endpointReferenceElement);
assertRefParam(endpointReferenceElement, PARAM1_QNAME, "Hello");
assertRefParam(endpointReferenceElement, PARAM2_QNAME, "World");
}
示例2: testConstructedInterfaceName
import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder; //导入方法依赖的package包/类
@Test
public void testConstructedInterfaceName() throws Exception
{
W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
builder = builder.address(URL);
builder = builder.serviceName(SERVICE_QNAME);
builder = builder.endpointName(PORT_QNAME);
builder = builder.interfaceName(PORT_TYPE_QNAME);
builder = builder.wsdlDocumentLocation(WSDL_URL);
Element element = DOMUtils.parse(XML_REF_PARAM1);
builder = builder.referenceParameter(element);
element = DOMUtils.parse(XML_REF_PARAM2);
builder = builder.referenceParameter(element);
W3CEndpointReference epr = builder.build();
DOMResult dr = new DOMResult();
epr.writeTo(dr);
Node endpointReferenceElement = dr.getNode();
Logger.getLogger(this.getClass()).info(DOMUtils.node2String(endpointReferenceElement));
assertMetaData(endpointReferenceElement);
assertRefParam(endpointReferenceElement, PARAM1_QNAME, "Hello");
assertRefParam(endpointReferenceElement, PARAM2_QNAME, "World");
}
示例3: setUp
import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder; //导入方法依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
W3CEndpointReferenceBuilder w3cBuilder = new W3CEndpointReferenceBuilder();
w3cBuilder = w3cBuilder.address("http://somewhere.com/somehow");
w3cBuilder = w3cBuilder.serviceName(new QName("http://test", "TestService"));
w3cBuilder = w3cBuilder.endpointName(new QName("http://test", "TestPort"));
w3cEPR = w3cBuilder.build();
SubmissionEndpointReferenceBuilder subBuilder = new SubmissionEndpointReferenceBuilder();
subBuilder = subBuilder.address("http://somewhere.com/somehow");
subBuilder = subBuilder.serviceName(new QName("http://test", "TestService"));
subBuilder = subBuilder.endpointName(new QName("http://test", "TestPort"));
subEPR = subBuilder.build();
}
示例4: setUp
import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder; //导入方法依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
W3CEndpointReferenceBuilder w3cBuilder = new W3CEndpointReferenceBuilder();
w3cBuilder = w3cBuilder.address("http://somewhere.com/somehow");
w3cBuilder = w3cBuilder.serviceName(new QName("http://test", "ProxyAddressingService"));
w3cBuilder = w3cBuilder.endpointName(new QName("http://test", "TestPort"));
w3cEPR = w3cBuilder.build();
SubmissionEndpointReferenceBuilder subBuilder = new SubmissionEndpointReferenceBuilder();
subBuilder = subBuilder.address("http://somewhere.com/somehow");
subBuilder = subBuilder.serviceName(new QName("http://test", "ProxyAddressingService"));
subBuilder = subBuilder.endpointName(new QName("http://test", "TestPort"));
subEPR = subBuilder.build();
}
示例5: setUp
import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder; //导入方法依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
W3CEndpointReferenceBuilder w3cBuilder = new W3CEndpointReferenceBuilder();
w3cBuilder = w3cBuilder.address("http://somewhere.com/somehow");
w3cBuilder = w3cBuilder.serviceName(new QName("http://test", "ProxySessionService"));
w3cBuilder = w3cBuilder.endpointName(new QName("http://test", "TestPort"));
w3cEPR = w3cBuilder.build();
SubmissionEndpointReferenceBuilder subBuilder = new SubmissionEndpointReferenceBuilder();
subBuilder = subBuilder.address("http://somewhere.com/somehow");
subBuilder = subBuilder.serviceName(new QName("http://test", "ProxySessionService"));
subBuilder = subBuilder.endpointName(new QName("http://test", "TestPort"));
subEPR = subBuilder.build();
}
示例6: setUp
import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder; //导入方法依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
builder = builder.address("http://somewhere.com/somehow");
builder = builder.serviceName(new QName("http://test", "ProxyAddressingService"));
builder = builder.endpointName(new QName("http://test", "TestPort"));
w3cEPR = builder.build();
SubmissionEndpointReferenceBuilder subBuilder = new SubmissionEndpointReferenceBuilder();
subBuilder = subBuilder.address("http://somewhere.com/somehow");
subBuilder = subBuilder.serviceName(new QName("http://test", "ProxyAddressingService"));
subBuilder = subBuilder.endpointName(new QName("http://test", "TestPort"));
subEPR = subBuilder.build();
}
示例7: setUp
import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder; //导入方法依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
W3CEndpointReferenceBuilder w3cBuilder = new W3CEndpointReferenceBuilder();
w3cBuilder = w3cBuilder.address("http://somewhere.com/somehow");
w3cBuilder = w3cBuilder.serviceName(new QName("http://test", "TestService"));
w3cBuilder = w3cBuilder.endpointName(new QName("http://test", "TestPort"));
w3cEPR = w3cBuilder.build();
SubmissionEndpointReferenceBuilder subBuilder = new SubmissionEndpointReferenceBuilder();
subBuilder = subBuilder.address("http://somewhere.com/somehow");
subBuilder = subBuilder.serviceName(new QName("http://test", "TestService"));
subBuilder = subBuilder.endpointName(new QName("http://test", "TestPort"));
subBuilder.build();
}
示例8: getEndpointReference
import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder; //导入方法依赖的package包/类
public EndpointReference getEndpointReference(Element... referenceParameters) {
org.apache.cxf.message.Message msg = getWrappedMessage();
Endpoint ep = msg.getExchange().get(Endpoint.class);
W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
builder.address(ep.getEndpointInfo().getAddress());
builder.serviceName(ep.getService().getName());
builder.endpointName(ep.getEndpointInfo().getName());
if (referenceParameters != null) {
for (Element referenceParameter : referenceParameters) {
builder.referenceParameter(referenceParameter);
}
}
return builder.build();
}