BizTalk 2013 - 256 Limiting characters in a URL when exposing a REST endpoint through WCF-WebHttp

I am currently working on a requirement to provide routing for a large match request, which can contain up to 30 request elements.

While developing my BizTalk project, I was able to accept an HTTP request with a small number of requests using the WCF-WebHttp type, promoting the properties and sending a message to the appropriate system through the signed send port.

However, if the number of requests increases to the point where the URL exceeds 256 characters, I get the following error:

The value of the promoted property cannot exceed 256 characters. Property "B" namespace http://schemas.microsoft.com/BizTalk/2006/01/Adapters/WCF-properties ". Parameter name: obj

It throws itself in front of the intake conveyor. I understand that promoted properties cannot exceed 256 characters, however in this case I am stuck as I (apparently) do not control the promotion of properties with respect to the above property.

Can I configure BizTalk to not promote the To property? I think this is progressing for some reason, so this may not be an acceptable solution, if it can be done at all.

With that in mind, is there any other way to create a reception venue that can handle requests with a large number of requests? I looked at WCF-Custom, but I did not see anything obvious.

+5
source share
1 answer

Most likely you are using the GET method to provide the service. You should look at using the POST method when you have many parameters. You can send the json / xml message in Body with all the details to a small URL. If you decide to use json, you can use the JSON pipeline component to convert json to XML, and then do your routing as needed.

+5
source

Source: https://habr.com/ru/post/1263889/


All Articles