structure of a web service published in Business Central

kanika
Member Posts: 247
Hi Experts!!
I have published a web service (via a published CU) to import data from an xml in Business Central.
When I see the schema from SOAPUI these two labels appear in the structure that I have highlighted in the attachment

These labels correspond to the published CU function and its parameter

But as you can see, the parameter is "Request" and in the structure it says "request", it is essential for it to work that in the structure put "Request" with the R in uppercase otherwise the web service does not work.
It is something that makes up Business Central and I don't see the option to change it. Has anyone something similar happened to them and know how to solve it?
Thanks!!
(I hope I get lucky with this query because lately I don't see many being resolved ....)
I have published a web service (via a published CU) to import data from an xml in Business Central.
When I see the schema from SOAPUI these two labels appear in the structure that I have highlighted in the attachment

These labels correspond to the published CU function and its parameter

But as you can see, the parameter is "Request" and in the structure it says "request", it is essential for it to work that in the structure put "Request" with the R in uppercase otherwise the web service does not work.
It is something that makes up Business Central and I don't see the option to change it. Has anyone something similar happened to them and know how to solve it?
Thanks!!
(I hope I get lucky with this query because lately I don't see many being resolved ....)
0
Answers
-
because it is the structure that the provider has, it is an external service0
-
It is a payment gateway, they send us the payments in a certain structure to our web service where we import the data0 -
No0
-
Well I assume that it's not possible they follow your WSDL, so a workaround would be to create an Azure Function for the front end web service and this function would call your BC web service the way is expected.
Regards.0 -
Ok Thanks tornero.
I imagine that with the return value it happens exactly the same, right? It is necessary that if it is OK, it is entered in the Status field, however by default BC returns it as "return_value", this cannot be changed either?
0 -
Hello @kanika,
If your function return a var then the value is in this tag , but you can do something like thisprocedure Process(var Request: XMLport "PMGW - IN")
In the XMLport define a field call Satus
In the others XMLport fields add this:
And this would be the response:
Regards.1 -
My function returns a text var called result
0 -
OK Thanks for all!!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions