[jboss-user] [JBoss Seam] - Re: Accessing Seam Web Service
twocoasttb
do-not-reply at jboss.com
Fri Jul 6 01:09:13 EDT 2007
Turns out it was my issue- it's important that the namespace matches what's in the WSDL:
public class Client {
| public static void main(String[] args) throws Exception {
|
| try {
| OMFactory fac = OMAbstractFactory.getOMFactory();
| OMNamespace omNs = fac.createOMNamespace("http://service.web.tcsc.twocoast.com/", "tns");
| OMElement method = fac.createOMElement("processOrder", omNs);
|
| Options options = new Options();
| options.setTo(new EndpointReference("http://localhost:8080/AgentService/Agent"));
| options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
| options.setAction("urn:processOrder");
| ServiceClient sender = new ServiceClient();
| sender.setOptions(options);
| sender.sendReceive(method);
| } catch (AxisFault axisFault) {
| System.out.println("GOT FAULT");
| axisFault.printStackTrace();
| }
|
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061107#4061107
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061107
More information about the jboss-user
mailing list