Swagger
{
"swagger": "2.0",
"info": {
"title": "Contact_Maintenance APIs",
"description": "APIs available for Contact_Maintenance",
"version": "1.0.0"
},
"host": "(our IP):(our Port)",
"schemes": [ "http" ],
"basePath": "/web/services/Contact_Maintenance",
"tags": [
{
"name": "Contact_Maintenance APIs",
"description": "APIs available for Contact_Maintenance"
}
],
"definitions": {
"WOMCONMNTRResult": {
"type": "object",
"properties": {
"CUSTNO": {
"type": "number"
},
"SEQ": {
"type": "number"
},
"FAIL": {
"type": "string",
"maxLength": 100
}
}
}
},
"paths": {
"/{envir}/{custno}/{seq}/{action}/{name}/{type}/{title}/{phone}/{phoneext}/{fax}/{email}": {
"post": {
"tags": [
"Contact_Maintenance APIs"
],
"operationId": "WOMCONMNTR",
"consumes": [
"*/*"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "envir",
"in": "path",
"required": true,
"type": "string",
"pattern": "\\w+",
"maxLength": 2
},
{
"name": "custno",
"in": "path",
"required": true,
"type": "number",
"pattern": "\\d+"
},
{
"name": "seq",
"in": "path",
"required": true,
"type": "number",
"pattern": "\\d+"
},
{
"name": "action",
"in": "path",
"required": true,
"type": "string",
"pattern": "\\w+",
"maxLength": 3
},
{
"name": "name",
"in": "path",
"required": true,
"type": "string",
"pattern": "\\w+",
"maxLength": 30
},
{
"name": "type",
"in": "path",
"required": true,
"type": "string",
"pattern": "\\w+",
"maxLength": 3
},
{
"name": "title",
"in": "path",
"required": true,
"type": "string",
"pattern": "\\w+",
"maxLength": 25
},
{
"name": "phone",
"in": "path",
"required": true,
"type": "string",
"pattern": "\\w+",
"maxLength": 12
},
{
"name": "phoneext",
"in": "path",
"required": true,
"type": "string",
"pattern": "\\w+",
"maxLength": 4
},
{
"name": "fax",
"in": "path",
"required": true,
"type": "string",
"pattern": "\\w+",
"maxLength": 12
},
{
"name": "email",
"in": "path",
"required": true,
"type": "string",
"pattern": "\\w+",
"maxLength": 50
}
],
"responses": {
"200": {
"description": "Successful operation",
"schema": {
"$ref": "#/definitions/WOMCONMNTRResult"
}
},
"500": {
"description": "Unexpected exception"
}
}
}
}
}
}
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of (WalzCraft) Jerry Forss
Sent: Wednesday, May 7, 2025 10:38 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: External Web Service Issue
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I created a new service and just not seeing what I am doing wrong.
Is it not finding it because Resource/Parameters don't match?
What else should I be looking at?
When I do this, it says page not found (404).
I know the ip and port are correct as I use it in several other services I have created.
http://(our IP):(our port)/web/services/Contact_Maintenance/AA/780/0/ADD/Test-WOM/MAS/Master/123456789/0/456789012/testit@xxxxxxxxx<http://(our%20IP):(our%20port)/web/services/Contact_Maintenance/AA/780/0/ADD/Test-WOM/MAS/Master/123456789/0/456789012/testit@xxxxxxxxx>
Here is the setup
Resource Name:
Contact_Maintenance
Resource description:
Customer Contact Maintenance
URI path template:
/{envir:\w+}/{custno:\d+}/{seq:\d+}/{action:\w+}/{name:\w+}/{type:\w+}/{title:\w+}/{phone:\w+}/{phoneext:\w+}/{fax:\w+}/{email:\w+}
Startup type:
Service install path:
/www/WOMWEBSERV/webservices/services/Contact_Maintenance
Program:
Base resource URL:
http://(our IP):(our Port)/web/services/Contact_Maintenance
Resource information for methods [Display help for this form.] <
http://192.168.1.11:2001/HTTPA/hlp_webs_manage_installed_new.html#methods>
Procedure name:
WOMCONMNTR
HTTP request method:
POST
URI path template for method:
*NONE
HTTP response code output parameter:
*NONE
HTTP header array output parameter:
*NONE
HTTP header information:
*NONE
Error response output parameter:
Allowed input media types:
*ALL
Returned output media types:
*JSON
Identifier for input wrapper element:
WOMCONMNTRInput
Identifier for output wrapper element:
WOMCONMNTRResult
Input parameter mappings:
Parameter name
Data type
Input source
Identifier
Default Value
ENVIR
char
*PATH_PARAM
envir
*NONE
CUSTNO
packed
*PATH_PARAM
custno
*NONE
SEQ
packed
*PATH_PARAM
seq
*NONE
ACTION
char
*PATH_PARAM
action
*NONE
NAME
char
*PATH_PARAM
name
*NONE
TYPE
char
*PATH_PARAM
type
*NONE
TITLE
char
*PATH_PARAM
title
*NONE
PHONE
char
*PATH_PARAM
phone
*NONE
PHONEEXT
char
*PATH_PARAM
phoneext
*NONE
FAX
char
*PATH_PARAM
fax
*NONE
EMAIL
char
*PATH_PARAM
email
*NONE
CustNo, Seq are Input/Output.
Fail is Output.
RPG parameters
// ===================================================================================
// Input Parameters
// ===================================================================================
Dcl-pr WOMConMntR;
Envir Char(2);
CustNo Packed(8 : 0);
Seq Packed(5 : 0);
Action Char(3);
Name Char(30);
Type Char(3);
Title Char(25);
Phone Char(12);
PhoneExt Char(4);
Fax Char(12);
EMail Char(50);
Fail Char(100);
End-pr;
Dcl-pi WOMConMntR;
Envir Char(2);
CustNo Packed(8 : 0);
Seq Packed(5 : 0);
Action Char(3);
Name Char(30);
Type Char(3);
Title Char(25);
Phone Char(12);
PhoneExt Char(4);
Fax Char(12);
EMail Char(50);
Fail Char(100);
End-pi;
Subject to Change Notice:
WalzCraft reserves the right to improve designs, and to change specifications without notice.
Confidentiality Notice:
This message and any attachments may contain confidential and privileged information that is protected by law. The information contained herein is transmitted for the sole use of the intended recipient(s) and should "only" pertain to "WalzCraft" company matters. If you are not the intended recipient or designated agent of the recipient of such information, you are hereby notified that any use, dissemination, copying or retention of this email or the information contained herein is strictly prohibited and may subject you to penalties under federal and/or state law. If you received this email in error, please notify the sender immediately and permanently delete this email. Thank You
WalzCraft PO Box 1748 La Crosse, WI, 54602-1748
www.walzcraft.com<
http://www.walzcraft.com> Phone: 1-800-237-1326
As an Amazon Associate we earn from qualifying purchases.