• United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.206

DataPower×

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

SLM Configuration works wrong in DataPower.

505CGHADPK gravatar image
Question by akogluemre  (1) | May 26, 2017 at 07:57 AM datapowerdatapower soadatapower administrationdatapower best-practicempgwslm

Hi everyone,

I configured two SLM statements in MPGW policy rule in DataPower. I configured the SLMs based on request body,so I use SLM Resource Class and XPath Filter. The Xpath Filter of SLM statement is below.

**/[local-name()='Envelope']/[local-name()='Body']/[local-name()='PoliceKaydet']/[local-name()='policeBilgi']/[local-name()='MustFields'][./*[local-name()='KaynakKod'][normalize-space(.) = '3'] and ./[local-name()='TarifeKod'][normalize-space(.) = 'K50'] and ./[local-name()='AcentaNo']]*

The filter works when AcentaNo field is same in request and TarifeKod is K50 and KaynakKod is 3. The important point in statement is that AcentoNo is same in request!. But when I change another field in request that is not about AcentoNo, TarifeKod and KaynakKod, the SLM is not working.So, I change request, the SLM is not working. But if I send the same request continuous, SLM allow request up to the threshold value and then reject the rest of requests.Actually the SLM is just working for same requests. But the the fields of requests may change.

Now I want to talk about the another SLM.The Xpath Filter of SLM statement which one is working wrong is below.

**/[local-name()='Envelope']/[local-name()='Body']/[local-name()='PoliceKaydet']/[local-name()='policeBilgi']/[local-name()='MustFields'][(./*[local-name()='KaynakKod'][normalize-space(.) = '3'] or ./[local-name()='KaynakKod'][normalize-space(.) = '9']) and ./[local-name()='TarifeKod'][normalize-space(.) = 'K50']]*

Now, I want that SLM works when KaynakKod is 3 or 9 and TarifeKod is K50. This is working when I send same request. But I change another field in request (not TarifeKod or KaynakKod, another field). The SLM didn't match with this condition.

The request is below.It maybe help you.

 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
     <s:Header>
         <SessionKey>9d612e3283334b9a86289a8d9625e564</SessionKey>
     </s:Header>
     <s:Body>
         <PoliceKaydet>
             <policeBilgi>
                 <MustFields>
                     <AcentaNo>1000</AcentaNo>
                     <GemiYil>0</GemiYil>
                     <GrupNo>0</GrupNo>
                     <KaynakKod>3</KaynakKod>
                     <BakimSaat>12:00</BakimSaat>
                     <BakimKod>0</BakimKod>
                     <TarifeKod>K50</TarifeKod>
                 </MustFields>
             </policeBilgi>
         </PoliceKaydet>
     </s:Body>
 </s:Envelope>

I did not understand that. Please help me. Thanks...

Note: Firmware IDG.7.5.2.0

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

2 answers

  • Sort: 
120000PD1B gravatar image

Answer by kenhygh (397) | May 25, 2017 at 12:24 PM

Your request is not valid XML. You may need to attach it rather than pasting it, sometimes this forum software mangles code. Ken

Comment
akogluemre

People who like this

  1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
505CGHADPK gravatar image

Answer by akogluemre (1) | May 26, 2017 at 01:31 AM

Hi,

Yes My real request is not that. I sent to forum a part of request that is about my issue. The real request is below and I attached it.

 [<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
     <s:Header>
         <SessionKey>9d612e3283334b9a86289a8d9625e564</SessionKey>
     </s:Header>
     <s:Body>
         <PoliceKaydet>
             <policeBilgi>
                 <a:MustFields>
                     <a:AcentaNo>1000</a:AcentaNo>
                     <a:GemiYil>0</a:GemiYil>
                     <a:GrupNo>0</a:GrupNo>
                     <a:KaynakKod>3</a:KaynakKod>
                     <a:BakimSaat>12:00</a:BakimSaat>
                     <a:BakimKod>0</a:BakimKod>
                     <a:TarifeKod>K50</a:TarifeKod>
                 </a:MustFields>
             </policeBilgi>
         </PoliceKaydet>
     </s:Body>
 </s:Envelope>][1]
         
 


[1]: /answers/storage/temp/15274-request.txt


request.txt (551 B)
Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

117 people are following this question.

Answers

Answers & comments

Related questions

Datapower: Is there any limitations in number of WS-Proxies supported? 3 Answers

How to Cache LTPA Token for reusing, genearated from AAA postprocessing 1 Answer

Datapower Encryption & Decryption 3 Answers

DataPower CLI command 1 Answer

DNS lookup failed while doing TCP Connection in Datapower 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • DataPower
  • Decision Optimization
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges