on 08-24-2006 4:04 PM
Hi,
I executed a scenario with HTTP Adapter to connect to RFC.
i got few doubts here, i used a HTML Client Code, taken from the Forum.
1. In realtime, how business customers or clients will use that html client page? do we need to store all information as hidden fields?
2.Since, we have to send content as XML (which should match definition of datatype defined, example given below), how it going to handle at clients end?
<ns3:MT_Request xmlns:ns3="URN://HTTP2RFC">
<Orders>
<Order>
<ONO>1</ONO>
<ONAME>Mouse</ONAME>
<QTY>2</QTY>
<ADD>USA</ADD>
</Order>
</Orders>
</ns3:MT_Request>
can u guys calrify me..
Thanks
Seshu
Hi ,
Check this MM_Req_To_Res mapping wether you have correctly mapped with the structures...and aslo test your mappings in the test tab...
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
sekhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Is this what you are asking?
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<ns:MT_UserDetailsReq xmlns:ns="URN://HTTP2BAPI">
<UserName>xisuper</UserName>
</ns:MT_UserDetailsReq>
I took it from SXMB_MONI -> PayLoads -> MainDocument() -> View Source
thanks
Seshu
Seshu,
<?xml version="1.0" encoding="UTF-8" ?> <b><i><?xml version="1.0" encoding="UTF-8" ?></i></b> <ns:MT_UserDetailsReq xmlns:ns=" ">
<UserName>xisuper</UserName>
</ns:MT_UserDetailsReq>
Remove the content in BOLD and check. Think that is the cause of the problem.
ALso, make sure that the Sender Interface and Namespace are the correct . Name Sampe should be <i>URN://HTTP2BAPI</i> in the HTT client.
Regards,
Bhavesh
Hi Seshu,
I have sent you a sample document. Please go through it.
cheers,
Prashanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Seshu,
Check your XML Payload. This problem occurs if the payload structure is not proper.
cheers,
Prashanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Seshu,
HTTP test tool is used to send the messages to XI. when you give all the details like business system name and namespace....etc ,it is internally formulating one URL and sends the message to XI.
Depends on the application we can build our own way....suppose in siebel..I used Siebel iway Adapter using HTTP transport protocol. On Siebel side they have hardcoded the URL which contains our info(namespace and BS...etc...) and created one workflow which contains this URL and sends the messages to XI.
sekhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mik & sekhar,
Thanks for reply. somewhat clear now.. any example for this? screenshots!! can i get?
Also i got this Error while executing HTTP2BAPI (BAPI_USER_GET_DETAIL)
Result:
http-Status: 500 Internal Server Error
Payload:
During the application mapping com/sap/xi/tf/_MM_Req_To_Res_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~
Thanks
Seshu
Message was edited by: Seshu
Hi,
depends what you need to do:
why do you need to use http?
maybe you can use SOAP adapter
and create a web dynpro app from
wsdl when the user will input some values
if you want to send xml file then you can use file adapter instead
you need to know why you want to use http first
as there are many other options
Regards,
michal
hi,
>>>>1. In realtime, how business customers or clients will use that html client page? do we need to store all information as hidden fields?
they will not you will create your own WWW
which will take from somewhere (config tables)
the parametes for the connection
>>>>2.Since, we have to send content as XML (which should match definition of datatype defined, example given below), how it going to handle at clients end?
you don't you need to create an XML
from the fields that the user will input
the users will only have to put a few fiels
into a nice WWW and you need to do the rest
(put the parametes in + populate an XML from values)
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
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.