on 04-15-2009 12:34 PM
Hi gurus:
I'm having a problem with content-type of responses of the RFC adapter in my XI scenario.
I need to change the content-type of the response from "application/xml" to "text/xml" but I don't know how to do it.
Thanks in advance and regards,
Alejandro Gómez.
Edited by: Alejandro Gómez on Apr 15, 2009 12:48 PM
Hi Alejandro,
Why would you want to do that ??? Its against protocol.
"Consistent with RFC 3023, protocol elements should be exchanged using the "application/xml" media type instead of the "text/xml" media type. "
Refer: http://www.imc.org/ietf-xml-use/mail-archive/msg00210.html
Regards
joel
PS: Xi adapters provide no such functionality.
Edited by: joel trinidade on Apr 15, 2009 5:31 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But as you wrote:
The application that invokes my web service obtains this error message:
Server found request content type to be 'application/xml', but expected 'text/xml'.
I assumed that the HTTP adapter needs to receive the specific content type. If you change it there then the sending application is fine - correct?!
Hi gurus:
Finally, I've solved my problem with the indications showed in SAP note #779981.
Thanks to all, and regards,
Alejandro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sonny:
Finally I've solved the problem in Java mapping program, changing the content-type parameter like this:
public void setParameter(Map mParametro)
{
this.mParametro=mParametro;
if (mParametro==null)
this.mParametro=new HashMap();
mParametro.put(StreamTransformationConstants.CONTENT_TYPE, "text/xml");
}
I hope it helps you. Regards,
Alejandro.
There is no such option.
The RFC adpater process only RFC XML messages as it is designed like that.
Internally it converts the XML data to meta data as expected by the actual BAPI.
Regards,
- Gujjeti.
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.