java调用webservice报400错误:
第一次接触webservice,表示技术能力有限,soapui连接是正常的,搞了好久没有搞定,来求救各位大神
代码:
import java.net.MalformedURLException;
import java.net.URL;
import java.rmi.RemoteException;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.ServiceException;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
public class TestDemo {
private String userName = "userName";
private String userPass = "userPass";
public String invokeRemoteFuc() {
String url="http://www.domain.com:50000/dir/wsdl?p=sa/c56619d3ba1964c73e";
String result="noresult";
String namespace="http://www.domain.com";
S