1.在ECC6.0 中发布web service
第一个问题:
HTTP 403 Forbidden错误解决
激活WSDL的服务
2.J2EE调用SAP 发布的Web service
第一个问题:
Transport error: 401 Error: Unauthorized
设置axis2访问webservice 权限
org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
在生成的代码ServiceStub的构造方法中
public ServiceStub(org.apache.axis2.context.ConfigurationContext configurationContext,
java.lang.String targetEndpoint, boolean useSeparateListener)
serviceClient = new org.apache.axis2.client.ServiceClient( configurationContext, _service);
HttpTransportProperties.Authenticator basicauth = new HttpTransportProperties.Authenticator();
basicauth.setUsername("xxx");
basicauth.setPassword("xxx");
_serviceClient.getOptions().setProperty(HTTPConstants.AUTHENTICATE, basicauth);
比较好的blog地址:
SAP连接Java发布的Web Service :http://taijizhang.blog.163.com/blog/static/17607138120116262544351/
JAVA系统调用SAP webservice权限设置 http://chenluizhong.blog.163.com/blog/static/46639262009117111459277/
SAP和Java系统的Webservice实例
http://blog.csdn.net/yin_chuan_lang/article/details/6706693
HTTP 403 Forbidden错误解决 http://sapblog.org/ecc/http-403-forbidden-error.html