on 06-14-2006 11:02 AM
Hi,
I have scenario like Java Proxy server.
Defined DataType of same structure, which contains only one element.Message Types,both inbound and outbound asyn Message iterfaces, interface and Message mappings is done.
Configured Receiver comm channel, receiver determination and interface determination. In NWDS imported server.zip, in my DispMINAS_PortTypeImpl i have defined as follows:
===============
package jps;
public class DispMIINAS_PortTypeImpl extends com.sap.aii.proxy.xiruntime.core.AbstractProxy implements DispMIINAS_PortType {
public void dispMIINAS(jps.DispDT_Type dispMT) throws com.sap.aii.proxy.xiruntime.core.SystemFaultException, com.sap.aii.proxy.xiruntime.core.ApplicationFaultException{
<b>//Do I need to parse the msg here</b>
//throw new RuntimeException();
}
}
this is what it contains.......I am getting "<b>MAPPING_DURING_EXECUTE</b>". This is bcoz of not implementing any code in my Disp_MIINAS_PortTypeImpl or what?
Please let me know and send the proper solution for the same.
Hi,
>>Then how to know what is the response sent by XI?
For this, you should use synchronous interfaces, proxy Implementaion code should return reponse message and xi will send this reponse to HTTP.
Or to check if your proxy is working, you can update some database or file in Proxy Implementation code.
Right now, try to solve this mapping exception....
In receiver communication channel where u have selected XI adapter, the user in Authentication Data should have roles of XIAPPLUSER.
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uma,
I checked in Message mapping->Test here the mapping is working fine. what can i place in my implemetation code so that atleast Proxy listens to my XI?
I must know whether my Proxy is working or not
>>you can update some database or file in Proxy Implementation code.
Let me know other alternatives if any.
regards,
Ganesh
Hi Uma!
>>Or to check if your proxy is working, you can update some database or file in Proxy Implementation code
How to update a file. Do i need to write the code for creating a file, where should i create the file in FTP server machine or XI server machine?
Let me know
Thanks for your replies.
Hi,
>>I am getting 200 in HTTP Client prog, which means success status code right?
This is bcoz of "EO" Quality Of Service in HTTP Client. As per the HTTP Client the request message has been sent to XI Box for the specified service. It wont wait for the response message.
So, if any error within XI wont reflect in HTTP Client prog.
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The payload in HTTP client should be only
<ns0:disp_MT xmlns:ns0="http://abcdemo.com">
<name>aaahhh</name>
</ns0:disp_MT>
Have you registered the proxy in Server. check this registeration status using http://server:50000/ProxyServer/ListAll
This will list all registered Interfaces.
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In HTTP Client prog, am getting 200 as Status code, i gave in payload as told by you. Then why am getting <b>Error while sending message: 503 Service Unavaialble</b> in RWB->Component monitoring->Adapter engine.
I am getting 200 in HTTP Client prog, which means success status code right?
I registered in ProxyServer, my interface was very well there.
Because it doesn't works in Adapter Engine!!!
It only works on Integration Engine, because the http request goes directly into XI via IE. HTTP is an adapter that runs on ABAP stack like IDOC does all the others adapters runs on Java stack and you can see them on adapter monitoring except HTTP and IDOC
Go to RWB > Component Monitoring > <b>Integration Engine</b> > test message tab.
Hope it helps,
Ricardo.
Message was edited by: Ricardo Quintino
Hi Ricardo!
Error when sending message: 401 Unauthorized
What does that mean?
This is what i got when tested in RWB>Component Monitoring>Integration Engine>Test Message
Send Message To:
http://server:8000/sap/xi/engine?type=entry
Service:BS_01
Interface: disp_MI
Namespace:http://abcdemo.com
QOS:Exactly once
user:xisuper
password:*****
payload:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:disp_MT xmlns:ns0="http://jps.com">
<name>aaahhh</name>
</ns0:disp_MT>
Hi ganesh,
If you already tried with these users with all roles! I don't know why it doesn't working...
Please check on test message tab (RWB) if the url (send message to) is http://<host>:<http-port>/sap/xi/engine?type=entry
Cheers,
Ricardo.
Hi,
Since your interfaces are asynchronous, you dont have to return anything in the implementation code and it is not mandatory to parse the msg.
Copy the request message from sxmb_moni and test in Message Mappings "Test" tab.
What is the sender for this scenario?
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I am using HTTP Clent prog as sender. I copied from Message mappings->Test tab and pasted the same in Payload of HTTP Client prog.I got Status code 200.
But when i test in RWB->Component Monitoring->Adapter engine, by giving the following param:
Send meeasge To:
http://<Targethost>sapep:50000/MessagingSystem/receive/AFW/XI
Service: BS_01
Interface: disp_MI
Interface Namespace: http://abcdemo.com
user:xiappluser
password: *****
Payload:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:disp_MT xmlns:ns0="http://abcdemo.com">
<name>aaahhh</name>
</ns0:disp_MT>
am getting the error like:
<b>Error when sending message: 503 Service Unavailable</b>
Hi,
This may be also due to system failure. Just go and check in SXMB_MONI the status of the record.
Thanks,
Yaseen M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my Disp_MIINAS_impl i did not parse the XML msg....this is what the error says basically. What should be done to rectify the error:MAPPING_DURING_EXECUTE.
I checked in SXMB_MONI it is red flag...when i click on Reqest Message Mapping->error I saw some thing like this:
..........
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_disp_MM_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
<SAP:P4 />
Thanks
Hi Ganesh,
Go to your sxmb_moni open the message with red flag and go to trace file (is the last one on soap header info).
Under trace, scroll to middle and stop when you see a large amount of near lines started with errors like "cannot produce target element"...
If you find something like this, it means that the content that you try to put on target is not compatible with the target data element. You can also see what is the field that produces this exception.
Go to outbound and copy the xml code and paste it on message mapping test tab and execute it... For me is the best way to understand what's happening with some complex fields.
Hope it helps,
Ricardo.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.