support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets

Veryant Knowledge Base
Home > All Categories > Web Enablement > isCOBOL EIS > Consuming a webservice returns error 500 because of the lack of a Header property
Question Title Consuming a webservice returns error 500 because of the lack of a Header property

The solution to the error 500 is not always the one that will be discussed below, though it is a good starting point to check and resolve if that is the case.

When you are going to develop a webservice client program that will consume webservices, it is a good practice to test the webservices consumption on a third-party software like SoapUI.
In this article we use SoapUI as an example. Other options are available though. For instance if you have a REST webservice you could use Postman instead.

When you test the webservice in SoapUI you have an option to check the input XML in Raw format as follows:

In this screenshot, you can see an entry for SOAPAction.
In order to resolve the error 500 you may need to send this Header property before invoking the doPostEx method, in addition to the normal steps to develop a client webservice (using the stream2wrk to generate the working-storage section structure for the input XML, output XML, etc.). This Header property is written as follows.

   http:>setHeaderProperty("soapaction", '""')

Notice that the value of the header includes double quotes [ " ] at the start and end of the string, therefore, the whole value is enclosed in single quotes [ ' ].

With this additional code, the client program will forward the same header property that SoapUI sends before trying to consume the webservice, fixing the error 500. You will get a successful return code 200.

Authored by: Veryant Support This question has been viewed 1763 times so far.
Click Here to View all the questions in isCOBOL EIS category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. How do you handle printing from the WebClient?
  2. Working with isCOBOL, is there a native support for REST and SOAP Web Services?
  3. How can I control or restrict access to my WebClient applications and see the user name displayed in the WebClient console?
  4. Guide to update the isCOBOL runtime libraries on isCOBOL Web Applications running on Tomcat
Article Information Additional Information
Article Number: 319
Created: 2021-03-24 10:56 AM
Rating: No Rating
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
Search Knowledge Base Search Knowledge Base


© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.