C:\Windows\system32>wsimport -d D:\svn\02.code\cpa.v1\standard_dafa\trunk\standa
rd_dafa\cpa_ws_client\src\main\java\com\wishbuild\cpa\ws\sap -Xauthfile D:\Xauth
file.txt -keep http://103.251.84.124:8002/sap/bc/srt/wsdl/flv_10002A111AD1/bndg_
url/sap/bc/srt/rfc/sap/ymps_get_mjzb/230/ymps_get_mjzb/ymps_get_mjzb?sap-client=
230
YMPS_GET_MJZBStub service = new YMPS_GET_MJZBStub(sapUrl); //认证代码 start HttpTransportPropertiesImpl.Authenticator auth = new HttpTransportPropertiesImpl.Authenticator(); auth.setUsername(sapUserName); auth.setPassword(sapPassword); service._getServiceClient().getOptions().setProperty(HTTPConstants.AUTHENTICATE, auth); //认证代码 end YMPS_GET_MJZBStub.YMPS_GET_MJZBResponse result = service.yMPS_GET_MJZB(new YMPS_GET_MJZBStub.YMPS_GET_MJZB()); return result.getET_MJ().getItem();