cancel
Showing results for 
Search instead for 
Did you mean: 

Using SOAP adapter as HTTP adapter

Former Member
0 Kudos

Hi sdners! I have a requirement in which XI has to make a HTTP Post, using html-form. I tried to do it with SOAP receiver adapter and StrictXml2PlainBean module. It responses "user required", but I'm sending the user!

What am I doing wrong?

Any help is highly appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Did u use anytype of authentications?

and you are using proper user in that?

Thanks,

Hetal

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Greso,

Can you the response from Sundararamaprasad in this link and see whether it helps in your case or not:

Regards,

---Satish

Former Member
0 Kudos

Hi, thanks all for the quick answers.

Hetal, I dont have a user yet, but I should get another error. I am sending the user and the password, so I should get an error like "The user and password are invalid".

Rodrigo, the trace execution is fine also. Using tcpGateway I saw that the message I am sending is not the one I want.

This is what is expected:

"POST http://xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Host: xxxxxxxxxxxxxxxxxxxxxxxxxxxx

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8

Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 115

Connection: keep-alive

Cookie: JSESSIONID=0000JWP7LDJyZewMGt93vhi1kR1:-1

Content-Type: multipart/form-data; boundary=--


265001916915724 Content-Length: 4133 -
265001916915724 Content-Disposition: form-data; name="user" 30111111118 -
265001916915724 Content-Disposition: form-data; name="password" 123456 -
265001916915724 Content-Disposition: form-data; name="file"; filename="prueba.txt" Content-Type: text/plain TEXTODEPRUEBATEXTODEPRUEBA -
265001916915724"

But I am sending this:

"

POST http://xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Proxy-Authorization: Basic YnJjb212bWk6QlJ2bWkyMDIwIw==

Accept: /

Host: xxxxxxxxxxxxxxxxxxxxxxxxxxxx

User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505

content-id: payload-15d81c6182aa11dfab3c0004ac5760e7

Content-Type: text/plain

Content-Length: 519

SOAPACTION:

Content-Type: multipart/form-data; boundary=--


265001916915724 Content-Length: 2000 -
265001916915724 Content-Disposition: form-data; name="user" user -
265001916915724 Content-Disposition: form-data; name="password" password -
265001916915724 Content-Disposition: form-data; name="file"; filename="file.txt" Content-Type: text/plain AAAAAAAAAAAAAAAAAAAAAAAAABBBasdf -
265001916915724

"

So I think the http header is wrong. If you check the last one, it has Content-type twice (one is created by SOAP adapter, I created the second content-type). How can I fix it?

Former Member
0 Kudos

Thanks to all! I could solved using SOAP Adapter without SOAP Header, StrictXML2PlainBean and MessageTransformBean (to change content type and to add bounday).

Points awarded

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi, also check carefully the trace of the execution.

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

do you have a proxy configuration?

Former Member
0 Kudos

yes, I have already set it.

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi fede

check this out to be sure you configured right the module

Xml to Text conversion made easy by StrictXml2PlainBean

/people/pooja.pandey/blog/2009/02/23/xml-to-text-conversion-made-easy-by-strictxml2plainbean

what can you see in communication chennel monitoring in RWB?

Thanks

Rodrigo P.

Edited by: Rodrigo Alejandro Pertierra on Jun 25, 2010 4:16 PM