axis2调用webservice接口疑义

axis2调用webservice接口疑问
这是http://www.36wu.com提供的接口信息,但是始终报异常:服务器未能识别 HTTP 头 SOAPAction 的值的错误,求大拿指点。


axis2调用webservice接口疑义
------解决思路----------------------
 String s =
 "http://web.36wu.com/MobileService.asmx?op=GetMobileOwnership";
 URL url = new URL(s);
 HttpURLConnection http = (HttpURLConnection) url.openConnection();

 http.setDoOutput(true);
 http.setDoInput(true);
 http.setRequestMethod("POST");
 http.setUseCaches(false);
 http.setRequestProperty("Content-Type", "text/xml");
 http.connect();

 OutputStream out = http.getOutputStream();

 String content =
 "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">"
 + "<soap:Body>"
 + "<GetMobileOwnership xmlns=\"http://www.36wu.com/\">"
 + "<mobile>18710102020</mobile>"
 + "<authkey></authkey>"
 + "</GetMobileOwnership>"
 + "</soap:Body>"
 + "</soap:Envelope>";
 out.write(content.getBytes());

 out.flush();
 out.close();

 BufferedReader reader = new BufferedReader(new InputStreamReader(http
 .getInputStream()));
 String line;
 StringBuffer buffer = new StringBuffer();
 while ((line = reader.readLine()) != null) {
 buffer.append(line);
 }
 reader.close();
 http.disconnect();
 System.out.println(buffer.toString());

------解决思路----------------------

package com.mine;

import com._36wu.www.MobileServiceSoapProxy;

public class Mytest  {

public static void main(String[] args) throws Exception {

MobileServiceSoapProxy mobileServiceSoapProxy=new MobileServiceSoapProxy("http://web.36wu.com/MobileService.asmx?op=GetMobileOwnership");

String mobile="139",authkey="authkey";
com._36wu.www.ResultOfMobileOwnership mos=mobileServiceSoapProxy.getMobileOwnership(mobile, authkey);

System.out.print(mos.getMessage());


}

}




错误信息:

三月 18, 2015 6:15:16 下午 org.apache.axis.utils.JavaUtils isAttachmentSupported
警告: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
错误的authkey或未授权的authkey,请您购买服务!