16
Views
3
Comments
Solved
Special character error SOAP
Application Type
Service

Hello everyone!

I'm making a call to a SOAP service, and the issue I'm facing is that one of the defined fields was of type "anytype." 

Since Outsystems doesn't support this data type in the WSDL definition, we decided to change the field from "anytype" to string.

In the string, we are sending the XML in text format. For example:   
<example xmlns="exampleurl.com/example">
    <exampleField>
    </exampleField>
</example> 
However, we're encountering a problem sending the request, because Outsystems changes the characters < and > to their encoded forms: < and >. 

Unfortunately, the final service doesn't accept this.

Does anyone know how we can send these characters in the string without Outsystems changing them when sending the request?


Thank you very much!

Solution

Finally, our solution was to develop an extension in .NET changing the body of the request and replacing the texts < and > to the characters < and >.

To change the body request, we started the solution in .NET based on the code posted in the Outsystems documentation to add a header and using integration studio:
https://success.outsystems.com/documentation/11/extensibility_and_integration/soap/consuming_soap_web_services/use_advanced_extensibility/add_soap_header/

I hope it helps someone! =)

Hi, Lopez

If Outsystems is replacing that character instead of outsytem you replace that character with a unique character and send the request on the other side replace that unique character with old character.

Hi, Nani!

We thought about it, but the SOAP service we are calling is a service used in many other places and we can't make code changes on the client side, so the solution must be on our side.

Thank you very much!

Solution

Finally, our solution was to develop an extension in .NET changing the body of the request and replacing the texts < and > to the characters < and >.

To change the body request, we started the solution in .NET based on the code posted in the Outsystems documentation to add a header and using integration studio:
https://success.outsystems.com/documentation/11/extensibility_and_integration/soap/consuming_soap_web_services/use_advanced_extensibility/add_soap_header/

I hope it helps someone! =)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.