Skip to Content
0

Change HTTP-Header using consumer-proxy

Dec 30, 2017 at 12:12 AM

135

avatar image

Dear experts,

I have a consumer proxy generated from a WSDL file given by the service provider. I assume because of issue of interoperability between SAP client and WCF service I get a response

The message with Action '' 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)

Looking at the HTTP header of SAP request

the problem is that I need to edit the content-type attribute value so that it includes the bolded string below

Content-Type: application/soap+xml;charset=UTF-8;action="http://tempuri.org/IAlphaSecureTransactions/CreditTransfer_001_03"

I tried using only SOAMANAGER to achieve this but to no result.

I need to edit the HTTP Header prior to consuming the web service using the generated proxy object.

Kind regards,

Konstantinos

untitled.png (25.6 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Felipe Zanettini
Feb 19 at 07:41 PM
0

Hi Konstantinos,

It is not necessary to change the HTTP Header, you can configure SOAP Action in SOAMANAGER. The option to configure SOAP Action in the Logical Port in SOAMANAGER can be found in the last step of the wizard (Operation Settings) or, in earlier releases, on the "Operation Specific" tab.

Cheers,
Felipe Zanettini

Show 5 Share
10 |10000 characters needed characters left characters exceeded

Hi felipe,

¿you refer this option?

wsoperationspecifi.png

How can I use this option?

I appreciate very much if you have any link for a short guide?

0
Y. Mauricio Pacheco Pedraza

Hi Mauricio,

Yes, this is the correct option. You can use it by opening in "Edit" mode.

Cheers,
Felipe

0

hi felipe

In edit mode, I can check or un check this option (Use non-default value for SOAP Action),

but where can i set the parameter that i want send in http header?

Thanks,

0
Y. Mauricio Pacheco Pedraza

Hi Mauricio,

It is not necessary to change the HTTP Header to include SOAP Action. You can configure SOAP Action in SOAMANAGER by checking the option "Use non-default value for SOAP Action" and then maintaining the desired SOAP Action in the so called field.

Cheers,
Felipe

0

very thanks, felipe,

i see this work ok, for soapaction,

very thanks,

0
Y. Mauricio Pacheco Pedraza Mar 23 at 05:52 PM
0

Hi felipe,

¿you refer this option?

wsoperationspecifi.png

How can I use this option?

I appreciate very much if you have any link for a short guide?


Share
10 |10000 characters needed characters left characters exceeded