on 09-04-2007 1:03 PM
Hi every body,
i have a wsdl file of a WS that goes through the sap XI.
1) first i have created a java stand alone proxy.
2) then i have created a java project with the following code:
try{
EmployeeStatusReq req=new EmployeeStatusReq();
req.setEmployeeID("049824972");
WSEmployeeStatusService ws=new WSEmployeeStatusServiceImpl();
ws.getLogicalPort("WSEmployeeStatusPort").WSEmployeeStatus(req);
}
catch(Exception e){ System.out.println(e.getMessage()); }
///
when i run the application i get the following error:
Service call exception; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://milano.bezeq.com:8040/sap/xi/engine?type=entry&version=3.0&Sender.Service=WSEmployeeStatus&Interface=http%3A%2F%2Fbezeq.com%2Fxi%2FHR%2FWebServices%5EWSEmployeeStatus"
how can i specify the user name and the password ?
or do i do something wrong ?
please help me,
Morad Zeidan
Hi,
No I want to call the method in a pure Java program.
I thought about making jar file and include it where ever i want .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
it has no such parameters,
but assuming i have a WSDL file and i want to consume the WS by a java class,
is the way i have done , the right way to do it ??
thanks
morad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
sorry i cant understand you ,
where exactly is the request node
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashu,
I cant set authorization to NONE in the WS itself because its being used in many programs,
i want to keep it as is and send to it in any way the user and the password,
the question is how can i specify the user & pass in the java code.
thanks
morad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes Its set to NONE,
we are talking about Logical port , right ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you set authentication schema as none?
Ashu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.