Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • 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.195

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

z/OS Connect to DB2 service ending with a 500

310000WMD3 gravatar image
Question by A.Calixto  (1) | Aug 06, 2018 at 09:40 AM db2apizosconnectnativez-osv3

A customer is attempting to call a DB2 service (that lives in DB2) from an API created in z/OS Connect. He took the steps use zconbt tool to create the .sar file and two .json files. He has deployed his API and he provided me the info to define in the server.xml. We've defined the API name and location, the service name and service ref, and the id, host, port, and httpmethod, and URI.

Why would he be getting a 500? It doesn't seem like he's reaching the service. Please advise.

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

3 answers

  • Sort: 
27000081U5 gravatar image

Answer by Alan Hollingshead (71) | Aug 06, 2018 at 12:03 PM

Hello @A.Calixto
Please can you check the messages.log file for the z/OS Connect EE server, and also any DB2 log file for messages relating to the 500 error?

The IBM White paper z/OS Connect EE V3 Getting Started Guide (from page 121) shows a working example of using z/OS Connect EE V3 with DB2 which you might find useful.

Kind regards, Alan Hollingshead
IBM z/OS Connect EE Test & Performance

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
310000WMD3 gravatar image

Answer by A.Calixto (1) | Aug 08, 2018 at 11:31 AM

I have looked at your link and coded the auth and username/password parms.

I am now getting the following:

BAQR0429W: API getname encountered an error while processing a request under URL http://*host*/getname/deptno/AAA.

in z/OS Connect EE I see the service is coming up as unknown. Does the service need to be deployed to z/OS Connect? The documentation does not specify this and I was under the impression it would need to be since this is a DB2 service in DB2. I coded the connection parms in order for z/OS Connect to know where to find the service (host, port, etc). I used the zconbt tool to create the .json files used for the API.

Please advise ...

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
27000081U5 gravatar image

Answer by Alan Hollingshead (71) | Aug 14, 2018 at 04:13 AM

Hello @A.Calixto

The services and APIs need to be deployed to your z/OS Connect EE server. There is a screenshot on page 148 of the whitepaper discussed in my previous post which shows how to deploy an API. Do the same for your service.

In your server.xml make sure you have configured:

 <zosconnect_services>
 </zosconnect_services>

to ensure that z/OS Connect EE server will load your deployed services from the default location. An equivalent setting for APIs is not required. Your server will automatically load APIs from the default location.

Check your messages.log file during initialization of your server to ensure your services and APIs have been installed successfully.

Kind regards, Alan Hollingshead

IBM z/OS Connect EE

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

148 people are following this question.

Answers

Answers & comments

Related questions

What are examples of a serviceref 1 Answer

Configuring invokeGroup in z/OS Connect 11 Answers

Where can I find API documentation for Db2 on Cloud, such as the Disaster Recovery API? (HADR) 1 Answer

zOS Connect API displaying empty page and SRVE8025E java.lang.ArrayIndexOutOfBoundsException 1 Answer

BAQR7040E: Resource not found and HTTP 404 when using z/OS Connect EE 2.0.3.0 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
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • 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
  • PartnerWorld Developer Support
  • 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