Author |
Message
|
visasimbu |
Posted: Fri Jan 02, 2015 12:33 pm Post subject: Content-Type issue in the HTTP response message |
|
|
 Disciple
Joined: 06 Nov 2009 Posts: 171
|
Hi All,
I have web service exposed in WMB V7.0. The flow looks like below.
SOAPInput Node ->computer node ->SOAPRequestNode ->computer node ->SOAPReplyNode
Here my message is routed to SOAPRequest node failure terminal saying "A SOAP Request node received a response message which did not have a Content-Type HTTP header.".
I have requested the web service exposed by other team to add the content type in their response message. Due to business reason they could not do the change in their end.
Note : The response what i received from SOAP request node is normal soap over http message. It is not MIME.
Is there anyway I can change my message flow to handle this response without Content type? |
|
Back to top |
|
 |
visasimbu |
Posted: Fri Jan 02, 2015 2:49 pm Post subject: |
|
|
 Disciple
Joined: 06 Nov 2009 Posts: 171
|
More info,
Failure message which is routed via HTTPRequest node is..
Code: |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<RecoverableException>
<File>F:\build\S700_P\src\DataFlowEngine\ImbDataFlowNode.cpp</File>
<Line>1073</Line>
<Function>ImbDataFlowNode::createExceptionList</Function>
<Type>ImbRequestTemplateNode</Type>
<Name>flowname#FCMComposite_1_6</Name>
<Label>flowname.HTTPRequestNode</Label>
<Catalog>BIPmsgs</Catalog>
<Severity>3</Severity>
<Number>2230</Number>
<Text>Node throwing exception</Text>
<RecoverableException>
<File>F:\build\S700_P\src\WebServices\WSLibrary\ImbSOAPRequestNode.cpp</File>
<Line>810</Line>
<Function>ImbSOAPRequestNode::requestData</Function>
<Type>ImbRequestTemplateNode</Type>
<Name>flowName#FCMComposite_1_6</Name>
<Label>Flowname.HttpRequestNode</Label>
<Catalog>BIPmsgs</Catalog>
<Severity>3</Severity>
<Number>3754</Number>
<Text>Error occurred in ImbSOAPRequestHelper::makeSOAPRequest()</Text>
<RecoverableException>
<File>F:\build\S700_P\src\WebServices\WSLibrary\ImbSOAPRequestHelper.cpp</File>
<Line>3150</Line>
<Function>ImbSOAPRequestHelper::logWebServiceInvocationException</Function>
<Type/>
<Name/>
<Label/>
<Catalog>BIPmsgs</Catalog>
<Severity>3</Severity>
<Number>3162</Number>
<Text>WebService Request Exception</Text>
<Insert>
<Type>12</Type>
<Text>Removed some content looks project specific</Text>
</Insert>
<Insert>
<Type>12</Type>
<Text>Removed some content looks project specific</Text>
</Insert>
<Insert>
<Type>12</Type>
<Text>Removed some content looks project specific</Text>
</Insert>
<Insert>
<Type>12</Type>
<Text>Removed some content looks project specific</Text>
</Insert>
<Insert>
<Type>5</Type>
<Text>POST /services/someservice HTTP/1.1</Text>
</Insert>
<RecoverableException>
<File>F:\build\S700_P\src\WebServices\WSLibrary\ImbSOAPRequestHelper.cpp</File>
<Line>1807</Line>
<Function>ImbSOAPRequestHelper::makeSOAPRequest</Function>
<Type/>
<Name/>
<Label/>
<Catalog>BIPmsgs</Catalog>
<Severity>3</Severity>
<Number>3709</Number>
<Text>A SOAP Request node received a response message which did not have a Content-Type HTTP header.</Text>
<Insert>
<Type>5</Type>
<Text>HTTP/1.1 200 OK</Text>
</Insert>
<Insert>
<Type>5</Type>
<Text>www.dummuyURL.com</Text>
</Insert>
</RecoverableException>
</RecoverableException>
</RecoverableException>
</RecoverableException>
</soapenv:Body>
</soapenv:Envelope> |
|
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Jan 03, 2015 12:28 am Post subject: Re: Content-Type issue in the HTTP response message |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
visasimbu wrote: |
Hi All,
I have web service exposed in WMB V7.0. The flow looks like below.
SOAPInput Node ->computer node ->SOAPRequestNode ->computer node ->SOAPReplyNode
Here my message is routed to SOAPRequest node failure terminal saying "A SOAP Request node received a response message which did not have a Content-Type HTTP header.".
I have requested the web service exposed by other team to add the content type in their response message. Due to business reason they could not do the change in their end.
Note : The response what i received from SOAP request node is normal soap over http message. It is not MIME.
Is there anyway I can change my message flow to handle this response without Content type? |
Apparently it may be neither. The HTTPHeader of the response needs to have a section describing the content like XML or Mime for SOAP...
If the answer you get just says 'Text' than you have a bad reply...
The error above shows you received an http 200 OK return code. So it is expecting some kind of payload. It also says the http header is missing the content/payload description part...
What kind of service are you calling there?
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
mgk |
Posted: Sat Jan 03, 2015 5:12 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
If you can't change the remote end to send a content-type with the response then they are not sending a valid SOAP response and so you cannot use the SOAPRequest node. Try switching to the HTTPRequest node instead which should be able to handle a missing content-type.
Kind regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
visasimbu |
Posted: Sat Jan 03, 2015 4:45 pm Post subject: Re: Content-Type issue in the HTTP response message |
|
|
 Disciple
Joined: 06 Nov 2009 Posts: 171
|
fjb_saper wrote: |
What kind of service are you calling there?
 |
The calling and called services are implemented in WMB.
mgk wrote: |
If you can't change the remote end to send a content-type with the response then they are not sending a valid SOAP response and so you cannot use the SOAPRequest node. Try switching to the HTTPRequest node instead which should be able to handle a missing content-type.
Kind regards,
|
Thanks for your valuable inputs.  |
|
Back to top |
|
 |
|