ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » probelm creating SOAP request - ESQL

Post new topic  Reply to topic
 probelm creating SOAP request - ESQL « View previous topic :: View next topic » 
Author Message
pavdaddy72
PostPosted: Mon Jun 15, 2015 7:21 am    Post subject: probelm creating SOAP request - ESQL Reply with quote

Newbie

Joined: 07 May 2014
Posts: 6

Hello Peers! Need some help. I have a SOAP request that works all day in SOAP UI - see below:


The REQUEST:

Code:
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
      <hsbc:ServiceHeader xmlns:hsbc="group.hsbc.com/bussvc/model/service">
         <hsbc:IpCountryCode>US</hsbc:IpCountryCode>
         <hsbc:IpGroupMemberID>MMBI</hsbc:IpGroupMemberID>
      </hsbc:ServiceHeader>
      <wsa:MessageID>2c69280f-1589-4394-8bbe-f8b457a94372</wsa:MessageID>
      <wsa:Action>http://group.hsbc.com/bussvc/obipmgmt/custMgmt/CustMgmt/rtrvIP/1_0_0/request</wsa:Action>
   </soapenv:Header>
   <soapenv:Body>
      <ns2:rtrvIP xmlns:ns2="http://group.hsbc.com/bussvc/obipmgmt/custMgmt/bean" xmlns:ns3="http://group.hsbc.com/bussvc/onb/common/model/bean">
         <RtrvIPRequest>
            <custId>
               <EntityID>
                  <ctryCde>US</ctryCde>
                  <groupMbr>MMBI</groupMbr>
               </EntityID>
               <custID>100002134</custID>
            </custId>
            <custStatus>CUST</custStatus>
         </RtrvIPRequest>
      </ns2:rtrvIP>
   </soapenv:Body>
</soapenv:Envelope>



Here is how I try to create the requst in ESQL:

Code:
      DECLARE soapEnv NAMESPACE 'http://www.w3.org/2003/05/soap-envelope';
      DECLARE wsa NAMESPACE 'http://www.w3.org/2005/08/addressing';
      DECLARE hsbc NAMESPACE 'group.hsbc.com/bussvc/model/service';
      DECLARE ns2 NAMESPACE 'http://group.hsbc.com/bussvc/obipmgmt/custMgmt/bean';
      DECLARE ns3 NAMESPACE 'http://group.hsbc.com/bussvc/onb/common/model/bean';

      SET OutputRoot.SOAP.Body.(SOAP.NamespaceDecl)xmlns:ns1 = 'http://www.w3.org/2003/05/soap-envelope';
      SET OutputRoot.SOAP.Body.soapEnv:Header.(SOAP.NamespaceDecl)xmlns:ns2 = 'http://www.w3.org/2005/08/addressing';
      SET OutputRoot.SOAP.Body.soapEnv:Header.hsbc:ServiceHeader.(SOAP.NamespaceDecl)xmlns:ns3 = 'group.hsbc.com/bussvc/model/service';
      
      SET OutputRoot.SOAP.Body.soapEnv:Header.hsbc:ServiceHeader.hsbc:IpCountryCode       = 'US';
      SET OutputRoot.SOAP.Body.soapEnv:Header.hsbc:ServiceHeader.hsbc:IpGroupMemberID    = 'MMBI';

      SET OutputRoot.SOAP.Body.soapEnv:Header.wsa:MessageID    = UUIDASCHAR;
      SET OutputRoot.SOAP.Body.soapEnv:Header.wsa:Action       = 'http://group.hsbc.com/bussvc/obipmgmt/custMgmt/CustMgmt/rtrvIP/1_0_0/request';      
      
      SET OutputRoot.SOAP.Body.ns2:rtrvIP.(SOAP.NamespaceDecl)xmlns:n4 = 'http://group.hsbc.com/bussvc/obipmgmt/custMgmt/bean';
      SET OutputRoot.SOAP.Body.ns2:rtrvIP.(SOAP.NamespaceDecl)xmlns:n5 = 'http://group.hsbc.com/bussvc/onb/common/model/bean';

      SET OutputRoot.SOAP.Body.ns2:rtrvIP.RtrvIPRequest.custId.EntityID.ctryCde    = 'US';
      SET OutputRoot.SOAP.Body.ns2:rtrvIP.RtrvIPRequest.custId.EntityID.groupMbr   = 'MMBI';
      SET OutputRoot.SOAP.Body.ns2:rtrvIP.RtrvIPRequest.custId.custID          = '100002134';
      SET OutputRoot.SOAP.Body.ns2:rtrvIP.RtrvIPRequest.custStatus             = 'CUST';


The flow is simple INPUT > Computer node > SOAP request.

Everything is set properly on the SOAP request node. I'm sure the issue is with how I'm creating the SOAP request, envelope etc. The error I receive is:

ParserException
File:CHARACTER:/build/slot1/S800_P/src/WebServices/WSLibrary/ImbSOAPParser.cpp
Line:INTEGER:1360
Function:CHARACTER:ImbSOAPParser::refreshBitStreamFromElementsInner
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:3605
Text:CHARACTER:SOAP tree cannot be serialized
ParserException
File:CHARACTER:/build/slot1/S800_P/src/WebServices/WSLibrary/ImbSOAPParser.cpp
Line:INTEGER:790
Function:CHARACTER:ImbSOAPParser::refreshBitStreamFromElementsInner
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:3602
Text:CHARACTER:no operation found matching payload
Insert
Type:INTEGER:5
Text:CHARACTER:{http://www.w3.org/2003/05/soap-envelope}Envelope
Insert
Type:INTEGER:5
Text:CHARACTER:CustMgmt_SOAP_Binding
Insert
Type:INTEGER:5
Text:CHARACTER:CustMgmt.wsdl

Any help would be appreciated.Thanks,

Jason[/img]
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 15, 2015 7:30 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

So the value you are putting in the http headers that indicates which operation you are calling is wrong.
Back to top
View user's profile Send private message
pavdaddy72
PostPosted: Mon Jun 15, 2015 8:04 am    Post subject: Reply with quote

Newbie

Joined: 07 May 2014
Posts: 6

mqjeff wrote:
So the value you are putting in the http headers that indicates which operation you are calling is wrong.


Why would I create a HTTP header tree when I've set the operation on the SOAP Request node?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 15, 2015 8:07 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You don't.

You just set the operation.

As per the documentation of the SOAP request node.
Back to top
View user's profile Send private message
mgk
PostPosted: Mon Jun 15, 2015 8:59 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

You are creating the message incorrectly. You are using the SOAP domain, but then trying to create the SOAP headers and body directly - don't do that. If you need to create everything by hand for some reason, use XMLNSC. However, you could just use the SOAP domain correctly, and simply tick the "Use WSAdressing" box and WMB/IIB will do all the hard work for you. See these articles on how to use the SOAP domain and use WSA:

http://www.ibm.com/developerworks/webservices/library/ws-soapnode2/

http://www.ibm.com/developerworks/websphere/library/techarticles/0902_henley/0902_henley.html

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » probelm creating SOAP request - ESQL
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 © MQSeries.net. All rights reserved.