on 05-18-2013 1:22 AM
Hi,
I have been trying to implement a simple code to create a channel in ID with the help of Willam's blog
At the very outset, a constructor of this class is called
BusinessSystemInService service = new BusinessSystemInService();
But for this line, I am getting the error, cannot instantiate this class.
Code for this class is only this.
package com.sap.xi.BASIS;
public interface BusinessSystemInService extends javax.xml.rpc.Service {
public java.lang.String getBusinessSystemInPortAddress();
public com.sap.xi.BASIS.BusinessSystemIn getBusinessSystemInPort() throws javax.xml.rpc.ServiceException;
public com.sap.xi.BASIS.BusinessSystemIn getBusinessSystemInPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
}
There is no constructor defined.
Has anybody faced this and if yes, how it was corrected.
Found the solution.
While creating java clients from wsdl, there is an option between choosing Axis, Axis 2 & SAP Server.
You have to choose SAP server while creating Java classes, and this issue will be fixed. I was following William's blog and he appear to have chosen Axis, but Axis converter does not create the classes required to run the code he had written.
Also, you need to have jdk 5.0 instead of 6.0 to get this working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You cannot instantiate the interface. You need to see any class that implements this interface in that API and use that for instantiation. I have not tried this API yet. BTW, are you looking the right document? You might want to see this thread
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anirudh,
Go through the below link
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/f4/302c4142aef623e10000000a155106/content.htm
Regards
Bhargava krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.