OK, to try another implementation of calling the webservice I created a
simple AXIOM client based on the sample, but get this error when I try to
call the service I have been trying to call:
SEVERE: null
org.apache.axis2.AxisFault: System.Web.Services.Protocols.SoapException:
Server did not recognize the value of HTTP Header SOAPAction:
urn:anonOutInOp.
I am not sure what this means exactly or where to begin looking.
This is my test client code: (WSDL at bottom)
Thanks,
Chris
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs =
fac.createOMNamespace("http://Services.Cas.jhu.edu", "tns");
OMElement method = fac.createOMElement("CreateAccount", omNs);
OMElement wsid = fac.createOMElement("admin_wsid", omNs);
OMElement pw = fac.createOMElement("admin_pw", omNs);
OMElement userid = fac.createOMElement("userid", omNs);
OMElement name = fac.createOMElement("name", omNs);
OMElement email = fac.createOMElement("email", omNs);
OMElement password = fac.createOMElement("password", omNs);
OMElement priveleges = fac.createOMElement("priveleges", omNs);
OMElement emaillevel = fac.createOMElement("emaillevel", omNs);
OMElement gvisible = fac.createOMElement("gvisible", omNs);
//
//
//
wsid.addChild(fac.createOMText(wsid, "12345678"));
pw.addChild(fac.createOMText(pw, "password"));
userid.addChild(fac.createOMText(userid, "hulk"));
name.addChild(fac.createOMText(name, "the hulk"));
email.addChild(fac.createOMText(email, "[EMAIL PROTECTED]"));
password.addChild(fac.createOMText(password, "password"));
priveleges.addChild(fac.createOMText(priveleges, ""));
emaillevel.addChild(fac.createOMText(emaillevel, "3"));
gvisible.addChild(fac.createOMText(gvisible, "1"));
//
//
//
method.addChild(wsid);
method.addChild(pw);
method.addChild(userid);
method.addChild(name);
method.addChild(email);
method.addChild(password);
method.addChild(priveleges);
method.addChild(emaillevel);
method.addChild(gvisible);
//
Options options = new Options();
options.setTo(epr);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
//
ServiceClient sender = new ServiceClient();
sender.setOptions(options);
//
OMElement result = sender.sendReceive(method);
(WSDL in follow on email.server wont allow in one message)