on 05-18-2005 1:16 PM
Hi Group,
i have problems to call my inbound java proxy. When i test my scenario, i get always the
error message:
ErrorCode: GENERAL ErrorText:
com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method miTestProxyOutb of proxy bean $Proxy189:
com.sap.aii.messaging.mo.xmb.XMBParty:
com.sap.aii.proxy.xiruntime.core.XmlInboundException:
Error invoking method miTestProxyOutb of proxy bean $Proxy189:
com.sap.aii.messaging.mo.xmb.XMBParty ErrorStack:
The scenario looks like that:
SAP/R3->XI3->Java Proxy
For that i hava a simple function module on a sap/r3 with one request "I_REQUEST" and one response
"E_RESPONSE" parameter.
Further i have a own created synchruonus inbound message interface "mi_test_proxy_outb" with one request "I_REQUEST" and
one response "E_RESPONSE" parameter.
I've created from the message interface the java proxy and created a new EJB module project.
The class MiTestProxyOutb_PortTypeBean does have some commentars like following extract:
/**
@ejbHome <{com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundHome4}>
@ejbRemote <{com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundRemote4}>
@ejbLocal <{com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocal4}>
@ejbLocalHome <{com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocalHome4}>
@stateless
*/
I've added this informations in the ejb-jar.xml like following extract:
<ejb-jar>
<description>EJB JAR description</description>
<display-name>EJB JAR</display-name>
<enterprise-beans>
<session>
<ejb-name>MiTestProxyOutb_PortTypeBean</ejb-name>
<home>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundHome4</home>
<remote>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundRemote4</remote>
<local-home>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocalHome4</local-home>
<local>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocal4</local>
<ejb-class>de.test.testos.MiTestProxyOutb_PortTypeBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
The implementation class MiTestProxyOutb_PortTypeImpl does have only one method: "miBmwProxyOutb".
Here is the extract:
public class MiTestProxyOutb_PortTypeImpl extends
com.sap.aii.proxy.xiruntime.core.AbstractProxy
implements MiTestProxyOutb_PortType{
public de.axentiv.sAPGPS.DtTestProxyResp_Type
miTestProxyOutb(de.axentiv.sAPGPS.DtTestProxyReq_Type
mtTestProxyReq) throws com.sap.aii.proxy.xiruntime.core.SystemFaultException, com.sap.aii.proxy.xiruntime.core.ApplicationFaultException
{
try{
de.axentiv.sAPGPS.DtTestProxyResp_Type test = new
de.axentiv.sAPGPS.DtTestProxyResp_Type();
test.setERESPONSE("Hello World");
return test;
}
catch(Exception ex){
throw new RuntimeException();
}
}
}
With that additions, i've generated my jar File and ear File.
The deployment on the WAS640 finished successfully.
I've registered the Proxy on the JPR also successfully.
Can anyone tell me or give me a hint what i've did wrong?
Any hint would be very apreciated.
Greetings,
Sigi
Is the problem solved?
Otherwise let me know the string, how you registered the proxy.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.