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 ....)
Answers
Yes, that is how NAV/BC works, the parameters in a WS must start with a lowercase.
Why do you say that is essential the "Request" with uppercase ?
Regards
Sorry, I'm lost, if it's an external service why do you need to publish a web service ?
Regards.
It is a payment gateway, they send us the payments in a certain structure to our web service where we import the data
But they send you an XML file or they call your published web service to send the data.
In the last case they must follow the WSDL that you publish.
Regards.
Regards.
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?
If your function return a var then the value is in this tag , but you can do something like this
In the XMLport define a field call Satus
In the others XMLport fields add this:
And this would be the response:
Regards.
Yes, I know, but I was saying to remove the result return and add the var to the XMLport so you can return the Status.
Regards.