Skip to Content
author's profile photo Former Member
Former Member

DynamicConfiguration - Comma is appended in start of Soap Action

HI All,

I am setting soapAction in receiver communication channel using DynamicConfiguration.

I performed following Configuration in receiver SOAP adapter.

Advanced Tab -> Check 'Use Adapter Specific Message Attributes' -> Check 'Variable Transport Binding' -> Variable Header (XHeaderName1) = THeaderSOAPACTION SOAP Action in General Tab is empty

I am using following code snippet in UDF under message mapping.

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get
(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
 
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","THeaderSOAPACTION");
 
String soapAction = "http://abc.com/acon/service/1.0/IServiceOut/AddNote";
conf.put(key, soapAction);
 
return "";

Now while executing scenario using SOAPUI tool, at runtime i get following soap error message -

soap fault: The message with Action ', http://abc.com/acon/service/1.0/IServiceOut/AddNote' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).

I observed that in soapAction "," (comma) is being appended in starting. I believe this additional comma is causing problem. How can we remove this automatically appended comma from Soap Action?

Thanks in anticipation.

- Gopi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2012 at 06:13 AM

    Thanks all,

    We able to resolve the issue of appending comma(,)at the starting of SOAPAction and getting two SOAPAction by applying the OSS note :1255400.

    Gopi.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 04, 2012 at 11:05 AM

    Hi,

    check your WSDl file. open with notepad and check the soap action is there any comma or not.

    check your UDF which was you are writing in mapping to get the soap action dynamicaly.

    DynamicConfigurationKey keyURL = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","THeaderSOAPACTION");

    DynamicConfiguration conf =

    (DynamicConfiguration) container.getTransformationParameters ().get (StreamTransformationConstants.DYNAMIC_CONFIGURATION);

    String soapAction = "http://abc.com/acon/service/1.0/IServiceOut/AddNote";

    conf.put(keyURL, soapAction);

    return soapAction;

    regards,

    ganesh.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 04, 2012 at 02:05 PM

    Hi gopi,

    check the below link for dynamic configuration.

    http://www.saptechnical.com/Tips/XI/ASMA/Index.htm

    regards,

    Kesava.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.