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 » soap creation wbimb 5 arrays

Post new topic  Reply to topic
 soap creation wbimb 5 arrays « View previous topic :: View next topic » 
Author Message
hornbeam123
PostPosted: Thu Feb 21, 2008 2:56 pm    Post subject: soap creation wbimb 5 arrays Reply with quote

Centurion

Joined: 01 Nov 2003
Posts: 101

My new problem is SOAP request from wbimb 5 flow looks ok but WS response says validation error. How do you code to reflect SOAP-ENC array as shown below? Please can you shed some light on this one.[/b]
Maybe the absence of code to do this is the reason the web service call is not responding correctly? I’ve not yet checked with WS provider.
I have marked out some fields to reflect corporate sensitivity.

Oh for a tool to consume wsdl and build esql from it !!

Expected SOAP request supplied by WS provider
+++++++++++++++++++++++++++++++
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://devgateway.XXXplatform.groupe-llp.com/StoreCollection" xmlns:ns2="http://xml.apache.org/xml-soap"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:updateCostCentre>
<costCentreUpdateRequest SOAP-ENC:arrayType="ns2:Map[1]" xsi:type="SOAP-ENC:Array"><item xsi:type="ns2:Map"><item><key xsi:type="xsd:string">CostCentreCode</key><value xsi:type="xsd:string">1234</value></item><item><key xsi:type="xsd:string">CostCentreName</key><value xsi:type="xsd:string">Test center</value></item>

several more elements until ..

</costCentreUpdateRequest>
</ns1:updateCostCentre>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

ESQL extract
++++++++++
--myNS1 is soapAction
DECLARE myNS1 NAMESPACE 'http://ws-uat.XXXplatform.YYYYYY.com/StoreCollection/updateCostCentre';

--myNS2 is namespace defining input and output methods
DECLARE myNS2 NAMESPACE 'http://ws-uat.XXXplatform.YYYYYY.com/StoreCollection';


......many lines to set envelope and body are not shown as I think they are correct

--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--Populate Input elements and set to xsi type string
--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myNS2:updateCostCentre.costCentreUpdateRequest.CostCentreCode.(XML.Attribute)myXSI:type =
'xsd:string';

SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myNS2:updateCostCentre.costCentreUpdateRequest.CostCentreCode =
Environment.myVariables.InputMsg.myXML.CostCentreCode ;

SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myNS2:updateCostCentre.costCentreUpdateRequest.CostCentreName.(XML.Attribute)myXSI:type =
'xsd:string';

SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myNS2:updateCostCentre.costCentreUpdateRequest.CostCentreName =
Environment.myVariables.InputMsg.myXML.CostCentreName ;

………..Etc many more of above for each element

Produces - SOAP request below looks ok but get format error on response from WS
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://devgateway.XXXplatform.groupe-llp.com/StoreCollection" xmlns:ns2="http://xml.apache.org/xml-soap"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:updateCostCentre
xmlns:ns1="http://ws-uat.XXXplatform.YYYYYYcom/StoreCollection" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<costCentreUpdateRequest xmlns:ns2="http://ws-uat.XXXplatform.YYYYYY.com/StoreCollection">
<CostCentreCode>07468</CostCentreCode>
<CostCentreName>A Building</CostCentreName>

….other elements produced ok until…….

</costCentreUpdateRequest>
</ns1:updateCostCentre
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Feb 21, 2008 3:01 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Use the search key.
I thought I saw somewhere in the last 6 months that the arrayType (SOAP-ENC:arrayType) was not supported... There might as well have been some workaround instructions with the post...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
hornbeam123
PostPosted: Thu Feb 21, 2008 3:24 pm    Post subject: soap creation wbimb 5 arrays Reply with quote

Centurion

Joined: 01 Nov 2003
Posts: 101

Thanks for the quick response. You must be based USA perhaps? Sounds like an ouch possibly. I'll do a search. I'm sure the WS can be modified if need be.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Feb 21, 2008 3:33 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You should be using at least v6 for proper Web Services support, and really looking very hard at v6.1.

You're almost certainly half-crippled using v5.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
hornbeam123
PostPosted: Tue Mar 11, 2008 4:03 am    Post subject: soap creation wbimb 5 arrays Reply with quote

Centurion

Joined: 01 Nov 2003
Posts: 101

Things have moved on here. WS is now being invoked by wbimb (5) flow. SOAP arrays were not an issue after all on the request side but they are when dealing with the response.

I have used the search button and found nothing that helps.

Wbimb 6.1 may well become a prerequsite of this projects rollout but for now development is under wbimb 5. However if it is possible to use esql to navigate SOAP-ENC arrays in the XMLNS domain in wbimb 6.1 only and somebody could confirm this by illustrating the esql needed, this would change our stance on wbimb 6.1 upgrade.

As one of two strings are returned indicating success, I could parse in blob domain for now.

SOAP body follows.

<SOAP-ENV:Body>
<ns1:updateCostCentreResponse>
<costCentreUpdateReturn SOAP-ENC:arrayType="ns2:Map[1]"

xsi:type="SOAP-ENC:Array">
<item xsi:type="ns2:Map">
<item>
<key xsi:type="xsd:string">ValidationError</key>
<value xsi:type="ns2:Map">
<item>
<key xsi:type="xsd:string">ErrorTypeCode</key>
<value xsi:type="xsd:string">07</value>
</item>
<item>
<key xsi:type="xsd:string">ErrorMessage</key>
<value xsi:type="xsd:string">Cost center Update

successful</value>
</item>
</value>
</item>
</item>
</costCentreUpdateReturn>
</ns1:updateCostCentreResponse>
</SOAP-ENV:Body>
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Mar 11, 2008 4:28 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

By the time you go live with this, WBIMB v5 will be out of support.
http://www-01.ibm.com/common/ssi/cgi-bin/ssialias?subtype=ca&infotype=an&appname=iSource&supplier=897&letternum=ENUS207-007

Otherwise, you should just focus on your documents as raw XML data - ignore the SOAP contexts - treat it all as namespaces and attributes that happen to have meaning in other contexts.

Then you might be able to get your task accomplished. Even though you're still doomed to project failure because of going out of support.
_________________
I am *not* the model of the modern major general.
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 » soap creation wbimb 5 arrays
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.