cancel
Showing results for 
Search instead for 
Did you mean: 

Javadoc for JCo proxy classes

michael_hill
Advisor
Advisor
0 Kudos

I am using SAP Enterprise Connector to generate JCo proxy classes. There is a handy method in com.sap.aii.proxy.framework.core.AbstractType toXML(), but it is depricated and I don't have the documentation to read up on it's intended use. I am using this method to trace the data sent to an RFC call and the response received before I parse the results.

There are other non-depricated toXML(String), toXML(String, String) methods, but I cannot find the JavaDoc or source code for AbstractType in order to see how they are used.

Is the documentation or source code available?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Michael,

there is API documentation available on the SDN. The API docs of the SAP Java Connector is located here:

http://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/sapjco/index.html

In general, API docs of Web AS 6.40 and EP components is available here:

https://www.sdn.sap.com/sdn/developerareas/ep.sdn?page=javadoc.htm

Hope that helps!

Regards,

Ivo

michael_hill
Advisor
Advisor
0 Kudos

Hi Ivo,

The links you provided link to the API documentation for JCO, but they do not seem to include the proxy classes.

The class I'm interested in is:

com.sap.aii.proxy.framework.core.AbstractType

Michael

Former Member
0 Kudos

Hi MIchael,

sorry for misunderstanding.

I'm afraid no JavaDoc is available for the classes you need. Nevertheless, have a look at the SAP Enterprise Connector documentation here: http://help.sap.com/saphelp_nw04/helpdata/en/66/6f040c5ce8214eaf48c92e691639ed/frameset.htm

It gives a hint where you can find the classes you need under the plugins of your NetWeaver Developer Studio.

Regards,

Ivo.

michael_hill
Advisor
Advisor
0 Kudos

Hi Ivo,

I have traced down the classes, but unfortunately there are only class files--no source code.

The proxy generated classes extend AbstractType which implements the com.sap.aii.proxy.framework.core.BaseType interface. The methods I'm interested in (toXML) are part of the BaseType interface.

Both of these classes are located in the aa_proxy_rt.jar library.

Michael

Former Member
0 Kudos

Hi Michael,

there are 4 toXml methods in this class.

Two of them are deprecated:

<i>final public String toXml()</i>

<i>final public String toXml(String tagName)</i>

The other two methods are:

<i>final public String toXml(String tagName, String namespace)</i>

<i>final public String toXml(String tagName, String namespace, OutputStream xmlStream)</i>

If you want the same output as from toXML() - just call toXML(null, null).

Daniel