cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Adapter

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

bhavesh_kantilal
Active Contributor
0 Kudos

Seshu,

The error seems to be due to some invalid data being passed to XI. Can you give us the SOurce Payload here?

Just make sure data passed from HTTP client is valid data.

Regards,

Bhavesh

Former Member
0 Kudos

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

bhavesh_kantilal
Active Contributor
0 Kudos

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

bhavesh_kantilal
Active Contributor
0 Kudos

I took it from SXMB_MONI -> PayLoads -> MainDocument() -> View Source

Is this the cotent you are sending from the HTTP ADapter?

Regards,

Bhavesh

Former Member
0 Kudos

Hi

Thanks Bhavesh & Prashanth.

I removed XML Definition tags and placed Namespace and its working.. sorry for the trouble.

Thanks

Seshu

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Seshu,

I have sent you a sample document. Please go through it.

cheers,

Prashanth

Former Member
0 Kudos

Hi Seshu,

Check your XML Payload. This problem occurs if the payload structure is not proper.

cheers,

Prashanth

Former Member
0 Kudos

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

Former Member
0 Kudos

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

MichalKrawczyk
Active Contributor
0 Kudos

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

MichalKrawczyk
Active Contributor
0 Kudos

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