Hi all,I want to in sap studio to develop web service client to invoke a .net webservice,this webservice need authen ,so I develop a standandalone proxy to write a consle to invoke my code.
The follwoing is my invoke code
public class WebServiceTest {
public static void main(String[] args) throws Exception {
GetScaVersion parameter = new GetScaVersion();
ManagementSoap port = new ManagementImpl().getLogicalPort();
port._setProperty(port.USERNAME_PROPERTY,"administrator");
port._setProperty(port.PASSWORD_PROPERTY,"administrator");
GetUserList list=new GetUserList();
GetScaVersionResponse response= port.getScaVersion(parameter);
System.out.println(response.getGetScaVersionResult());
System.out.println(response.getAErrorMsg());
}
}
But final I got the following errors,
Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
Error Message is :com/sap/guid/GUIDGeneratorFactory
null
Invalid UserName and Password
so I just want to ask ,if the webservice is need to authen,does the following tow senteces works for authenciation ?
port._setProperty(port.USERNAME_PROPERTY,"administrator");
port._setProperty(port.PASSWORD_PROPERTY,"administrator");