cancel
Showing results for 
Search instead for 
Did you mean: 

Content type in Axis (receiver) adapter

Former Member
0 Kudos

Hi Experts,

I'm configuring the SuccessFactors interface from SAP HCM to SuccessFactors. The data in SuccessFactors is received through the Axis adapter. I've configured it like http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/02/27/sap-hcp-and-successfactors-bizx-i...

When I send a message from SAP HCM to SuccessFactors, the webservice returns the following error:

- (415) Unsupported Media Type

I've read that the axis adapter has a standard content type "application/xml", I don't know if that is true, but when I send the same message with SOAPUI (which uses content type text/xml) I do get the right return message without the error.

Does anyone know how to convert the content type for the Axis adapter? I've tried is with the MessageTransformBean without any luck.

Accepted Solutions (0)

Answers (1)

Answers (1)

allamudi_loordh
Active Participant
0 Kudos

Hi,,

Use standard adapter module parameters before calling axis adapter.

try search in sdn

Regards,

Loordh.

Former Member
0 Kudos

Hi Allamudi,

Thanks for the reply. What standard adapter module do you mean? The module parameters as described in the link are the standard SOAP HTTP(Axis) modules (as far as I know).

allamudi_loordh
Active Participant
0 Kudos

try adding the module "localejbs/AF_Modules/MessageTransformBean" 

Former Member
0 Kudos

I've added the module like in the thread http://scn.sap.com/thread/1890741. But when I send a message the following error is showing in the monitoring:

nabendu_sen
Active Contributor
0 Kudos

Hi,

Use MessageTransformBean like below:

Transform.ContentType          text/xml;charset=utf-8

For more information, check below link:

http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm

Former Member
0 Kudos

Hi, Were you able to change content type in SOAP axis receiver using MessageTransformBean? I am also getting same error as shown in your last reply.

Amol

Former Member
0 Kudos

Hi Amol,

I've succesfully made the connection by changing the media type. I did not use the MessageTransformBean, but used the Axis HandlerBean. See the following screenshots:

Hope this helps.

Former Member
0 Kudos

Thanks Schouten