SoapCore icon indicating copy to clipboard operation
SoapCore copied to clipboard

Don't wrap request in operation name

Open JulianRuhrDev opened this issue 8 years ago • 3 comments

Hi,

I'm trying to use this middleware in a project. We're currently calling an existing SOAP Endpoint from an external source which means we are using existing message formats.

The problem is that the format requires us that the request is not wrapped in the operation tags.

Example:

What we want to use:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
   <soap:Header/>
   <soap:Body>
     <Message>A simple message</Message>
   </soap:Body>
</soap:Envelope>

But what we have to use to make the middleware work:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
   <soap:Header/>
   <soap:Body>
     <TestOperation>
         <Message>A simple message</Message>
     <TestOperation>
   </soap:Body>
</soap:Envelope>

Is it possible to define our Service Contract that way?

Best Regards Julian

JulianRuhrDev avatar Jan 03 '18 13:01 JulianRuhrDev

Could you solve this @JulianBiermann ?

LuisLanfrediPoatek avatar Apr 20 '18 11:04 LuisLanfrediPoatek

look and experiment with extended samples under serialization tests, may be it covers your case. now it is updated to make posible XmlSerializer to deal with legacy wcf/ws

DmitryBryluk avatar Aug 15 '18 09:08 DmitryBryluk

We already made our custom implementation because of growing requirments to the API.

Thanks anyways

JulianRuhrDev avatar Aug 15 '18 14:08 JulianRuhrDev