Jump to content

How send content-type application/soap+xml in BW6


Andres Sanchez 2

Recommended Posts

I'm redesigning a web service SOAP 1.1 from BW5 to BW6, I correctly invoke the WS in BW5 with the following content-types: "text/xml" and "application/soap+xml", in BW6 I correctly invoke the WS with "text/xml" but when I tried with "application/soap+xml" I received this response:

soapenv:VersionMismatch

Transport level information does not match with SOAP Message namespace URI

Link to comment
Share on other sites

Hello.

I've created an simple SOAP 1.1 project using BW 6.5 (in attach) and it successfully worked with application/soap+xml (SoapUI project - how-send-content-type-applicationsoapxml-bw6TestProcess-gen1-soapui-project.xml). I've used ContentType: application/soap+xml; charset=utf-8

Link to comment
Share on other sites

Hi Igor, 

 

I'm testing your service but I got the same result.

 

I have a question, Did you use "ContentType" or "content-type" if I use "ContentType" the service dont replace the header correctly. (picture attach).  

 

Thanks for your help.[[{"fid":"152801","view_mode":"default","fields":{"format":"default","field_file_image_alt_text[und][0][value]":false,"field_file_image_title_text[und][0][value]":false},"type":"media","field_deltas":{"1":{"format":"default","field_file_image_alt_text[und][0][value]":false,"field_file_image_title_text[und][0][value]":false}},"attributes":{"class":"media-element file-default","data-delta":"1"}}]]

Link to comment
Share on other sites

Hi consultor.tibco2,

 

I'm sorry. I use exactly ContentType and it was wrong. If I use Content-Type I've got the error.

 

But I've found solution for this problem - add SOAPBinding for SOAP version 1.2 because the media type application/soap+xml was designed for SOAP 1.2. Unfortunately different bindings have to use different URI-s.

 

I've update test project, please find it in attach (how-send-content-type-applicationsoapxml-bw6_v2.zip). Also Tibco BW has sample tibco.bw.sample.binding.soap.http.MixedSOAPVersions that contains mixed SOAP bindings.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...