URL wsdl = this.getClass().getResource("/wsdl_systest_databinding/xmlbeans/doc_lit_bare.wsdl");
assertNotNull("We should have found the WSDL here. " , wsdl);
org.apache.cxf.xmlbeans.doc_lit_bare.SOAPService ss =
new org.apache.cxf.xmlbeans.doc_lit_bare.SOAPService(wsdl, DOC_LIT_BARE_SERVICE);
PutLastTradedPricePortType port = ss.getSoapPort();
updateAddressPort(port, WSDL_PORT);
ClientProxy.getClient(port).getInInterceptors().add(new LoggingInInterceptor());
ClientProxy.getClient(port).getOutInterceptors().add(new LoggingOutInterceptor());
StringRespTypeDocument resp = port.bareNoParam();
assertEquals("Get a wrong response", "Get the request!", resp.getStringRespType());
InDecimalDocument xd = InDecimalDocument.Factory.newInstance();
xd.setInDecimal(new BigDecimal(123));
OutStringDocument response = port.nillableParameter(xd);
assertEquals("Get a wrong response", "Get the request 123", response.getOutString());
InDocument document = InDocument.Factory.newInstance();
TradePriceData data = document.addNewIn();
data.setTickerPrice(12.33F);
data.setTickerSymbol("CXF");
port.putLastTradedPrice(document);
InoutDocument inOut = InoutDocument.Factory.newInstance();
data = inOut.addNewInout();
data.setTickerPrice(12.33F);
data.setTickerSymbol("CXF");
Holder<InoutDocument> holder = new Holder<InoutDocument>(inOut);
port.sayHi(holder);
assertEquals("Get a wrong response", "BAK", holder.value.getInout().getTickerSymbol());
}