Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
Register  ::  Log in Log in to check your private messages
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support Forum IndexWebSphere Message Broker SupportHelp on httprequest

Post new topicReply to topic
Help on httprequest View previous topic :: View next topic
Author Message
PostPosted: Thu Mar 21, 2019 10:03 am Post subject: Help on httprequest Reply with quote


Joined: 27 Jul 2018
Posts: 5

If I send the message via SoapUI, the webservice will receive a message correctly.
If I send via IIB the message arrives blank in webservice and displays error.

Message Flow: (This is just a sample message flow that I built to isolate the problem)

MQInputNode --> ComputeNode --> HTTPRequestNode --> TraceNode (this will be replaced with Compute Node and MQOutput Node upon making it work)

<soapenv:Envelope xmlns:soapenv="" xmlns:dir="">

Compute Node:

      SET OutputRoot.HTTPRequestHeader.POST = '/WS/ImportadorService.asmx';
      SET OutputRoot.HTTPRequestHeader.Host = 'localhost';
      SET OutputRoot.HTTPRequestHeader."Content-Type" = 'text/xml; charset=utf-8';
      SET OutputRoot.HTTPRequestHeader.SOAPAction = 'http://localhost/ProcessMessage';
      SET OutputLocalEnvironment.Destination.HTTP.RequestURL = 'http://localhost/WS/ImportadorService.asmx';
      SET OutputLocalEnvironment.Destination.HTTP.RequestLine.HTTPVersion = 'HTTP/1.1';
      SET OutputLocalEnvironment.Destination.HTTP.RequestLine.RequestURI = '/WS/ImportadorService.asmx';
      SET OutputRoot.XMLNSC.soap:Envelope.(XMLNSC.NamespaceDecl)xmlns:soap = '';
      SET OutputRoot.XMLNSC.soap:Envelope.soap:Body.soap:ProcessMessage.(XMLNSC.NamespaceDecl)xmlns:dir = ';
      DECLARE InputMessageBlob BLOB ASBITSTREAM(InputBody);
      DECLARE InputMessageChar CHAR CAST(InputMessageBlob AS CHAR CCSID InputRoot.MQMD.CodedCharSetId);
      SET OutputRoot.XMLNSC.soap:Envelope.soap:Body.soap:ProcessMessage.(XMLNSC.CDataField)*:xmlMessage = InputMessageChar;
       SET OutputRoot.XMLNSC.soap:Envelope.soap:Body.soap:ProcessMessage.*:ApplicationName = 'TEST';

WS Return:

Server was unable to process request. ---&gt; Object reference not set to an instance of an object.
Back to top
View user's profile Send private message
PostPosted: Thu Mar 21, 2019 10:52 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 25785
Location: Ohio, USA

What does the user trace (as opposed to the Trace node) say is happening? You've been advised in earlier posts to use it as a first stop diagnostic tool.

Why are you using this rather odd construction to build the CDATA section? Have you confirmed it's doing what you think it is?

Why are you building the SOAP request using ESQL and XMLNSC rather than using the SOAP domain?

Why does your ESQL attempt to build a different XML message to the example you post? (Look closely)
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1 Forum IndexWebSphere Message Broker SupportHelp on httprequest
Jump to:

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP

Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright All rights reserved.