38 questions
0
votes
0
answers
43
views
How to remove action node in soap request body
I’m learning SoapCore and I need the function parameter to appear directly inside the Body of the SOAP request, without the action node. Code looks correct, but my function parameters are still coming ...
0
votes
0
answers
90
views
How to remove wrapper element in the SOAP request body?
How can I remove the <request> wrapper element in the SOAP request body when using a method that accepts a complex type parameter in SoapCore?
I'm using a [MessageContract(IsWrapped = false)] ...
0
votes
0
answers
82
views
In a SOAP service in C#, the SoapCore library adds an extra root XML node, just before <soap:Envelope>
I created a SOAP service using
ASP.NET Core 8.0
SoapCore 1.2.1.8
The problem: when I get a request and response with an XML structured data, the API adds some root nodes that should be INSIDE the ...
0
votes
0
answers
135
views
.NET SoapCore WSDL generation and XML deserialization mismatch using XmlSerializer and required elements
I'm developing a SOAP service using ASP.NET Core and SoapCore to expose a WSDL compatible with an external integration system that uses a specific namespace and expects required XML elements.
🧪 ...
1
vote
0
answers
69
views
http response body content needs to be set from soap service in dotnet core (using soap core)
My application was developed as soap service (asmx) in dotnet framework. In that response was set in its body with CurrentContext.Current.Response.WriteAsync("required content") ...
0
votes
0
answers
98
views
Soap Header in WSDL request XML is coming as empty in .NET 8
Migrating an ASP.Net web service (.asmx) written in .NET Framework 4.8 to .NET 8.
To achieve this, I'm using the SoapCore Nuget package V1.2.1.
Program.cs:
app.UseSoapEndpoint<IAuthorService>(&...
0
votes
1
answer
398
views
How to generate specific request using soapcore in .NET Core
I have tried multiple examples online to generate my soap client request to look like this
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:isw="http://tech....
0
votes
2
answers
1k
views
How to have namespaces in WSDL when using SoapCore
I am trying to provide a SOAP endpoint where the body of the returned types have a specific namespace using the SoapCore library in an ASP.NET Core service.
Whatever I do, the generated WSDL seems to ...
1
vote
0
answers
106
views
Remove soapcore xml response namespace
I have a soap service made with soapcore and .net 6 where the current response looks like this:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www....
-1
votes
1
answer
165
views
DerivedClass missing from wsdl using SoapCore
Using SoapCore to work with SOAP in my web service. I have this simple code below, and expect to see DerivedClass defined in WSDL. But I don't see it. What should I do?
using SoapCore;
using System....
1
vote
0
answers
111
views
Is it possible to override SOAPCore 500 status code with 400?
I've built a SOAP Webservice with SOAPCore. Its all working as expected except the error handling. The returned HTTP Status code is always 500 and I want to return 400 on occasions when it’s a user ...
1
vote
0
answers
361
views
SoapCore service always returns WSDL
I have a simple SoapCore service with some methods specified. When I load the ASMX page it shows the WSDL, but instead I would like to have a UI being shown from where I could call the web service ...
2
votes
0
answers
179
views
How can I migrate QB ASP.NET ASMX Web Service code to a SoapCore
Good evening, everyone. I was given a task that I am not sure if it is possible to complete.
There a QuickBooks Web Service tool that works perfectly, but unfortunately that tool is written in .NET ...
3
votes
1
answer
3k
views
Creating Soap Web-Service in .net core 6
I am trying to create a soap web service on .net core 6 by the use of the SoapCore nuget.
I found this tutorial Link to site, but I am dealing with an Error.
Now im dealing with this Error: Argument 3:...
0
votes
1
answer
310
views
Hide svc side in web application using SoapCore library
I have simple structure in my web application.
Is there any chance to hide a wsdl source in url https://localhost:7189/Service.svc to keep it unvisible from users?
I tried to create web.config and ...
1
vote
0
answers
485
views
Get value from MessageHeaders in C#
I'm using an asp.net 6 application and using SoapCore.
To get the headers in my service, I created a custom inspector with IMessageInspector2 and pass the headers to my service.
Now, I have all ...
0
votes
3
answers
2k
views
SoapCore WCF C# program using XmlSerializer doesn't create the WSDL with async methods with CancellationToken
I have an issue in async WCF service using SoapCore in .Net 6 using a cancellation token and XmlSerializer serializer.
The detailed WCF application is as follows:
WCF service in C# .Net Core 6 using ...
1
vote
0
answers
788
views
Programatically add/remove SOAP core endpoints in Kestrel
I am creating a web host that uses SOAPCore for the middleware. Once I build the web host, I am unsure if it is possible to add in new SOAPCore endpoints for specific paths.
Here is how I build the ...
5
votes
1
answer
2k
views
SoapCoreOptions.Binding is now obsolete
I just updated SoapCore to version 1.1.0.22 and the project to .Net 6, and I am getting a warning saying that the property Biding of SoapCoreOptions is obsolete.
The problem is: there is no clue on ...
0
votes
1
answer
412
views
How do I overload method parameter using NET5 SoapCore
I'm trying to port an existing Soap WebService to .NET5 but am having issue with overloading a Soap method parameter.
In NET4 the code looks like this
namespace SoapWebServiceeTest.Soap
{
/// <...
0
votes
1
answer
3k
views
How are SOAP web service namespaces customized
I'm writing a soap web service in asp.net core using soapcore to replace an existing web service. the caller's request xml cannot change because we intend to minimize change on that side.
the current ...
0
votes
0
answers
248
views
Property of DataContract class as a QName element in generated soap message
I'm trying to serialize below class using the SoapCore and DataContractSerializer the way the property that holds object (TestProperty) is omitted in the soap message and the element name defines its ...
1
vote
1
answer
2k
views
Passing parameter to soap method SOAPCORE with Asp.Net Core
I developed soap method using SoapCore.
Here is my code:
[ServiceContract(Namespace = "http://txn.xxx.com")]
public interface ISampleService
{
[OperationContract()]
...
2
votes
2
answers
2k
views
Soap Core fails registering IFaultExceptionTransformer
While starting a new SoapCore service and sending a dummy request with SoapUI, I receive a HTTP500 and the following exception:
No service for type 'SoapCore.Extensibility.IFaultExceptionTransformer' ...
1
vote
0
answers
314
views
Trying to find a way to add metadata to a SoapCore XML service developed in .net core 3.1
I have implemented a fairly straightforward Soap 12 XML service using SoapCore to read the XML request and send a response.
My issue now is that the client requires the metadata to be accessible and ...
0
votes
1
answer
481
views
SoapCore Read Soap1.1
I have followed mulitple examples online but cannot seem to get the below to work. For all examples the following request will work:
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/&...
-1
votes
1
answer
540
views
Prepare Soap service with SAML assertion in .net
I must implemented SOAP Web Service but i don't have a lot experience in this job.
I read something about WCF, SoapCore etc. and tried to create some solutions.
What I need to implement:
Service ...
1
vote
1
answer
1k
views
Access XML Header using SOAPCore
I'm using SoapCore 1.1.0.8 with .NetCore 3.1
Does anyone know how to access the XML header from an envelope using SoapCore?
For example, an envelope like the following
<SOAP:Header xmlns='http:/...
1
vote
1
answer
1k
views
How to remove extra return tags added by SoapCore?
When using SoapCore in .NET Core 3.1 to incorporate the SOAP behavior in my application everything goes as expected, except for the return of two extra tags that inherit the name of the service and ...
1
vote
1
answer
2k
views
Why does SoapUI make a second call to get an XSD when getting a WSDL?
I'm attempting to take a set of existing WSDL and XSD files and create a SOAP API endpoint in my .Net Core application using the SoapCore NuGet package.
I have the WSDL being returned as expected by ...
3
votes
3
answers
5k
views
SoapCore Asp.net core 3.1 Header
Any idea how I can add a header for my calls using SoapCore?
what I have so far:
at startup.cs:
app.UseSoapEndpoint<IMyService>("/MyService.svc", new BasicHttpBinding(), SoapSerializer....
2
votes
3
answers
4k
views
How do I integration test a SoapCore endpoint?
I am using SoapCore in a .net core 3.1 app and I have setup an integration testing strategy for controllers that uses a web application factory eg
internal class IntegrationTestApplicationFactory<...
0
votes
2
answers
3k
views
XmlException: Root element is missing in ASP .NET Core
I'm using SoapCore (SOAP protocol middleware for ASP.NET Core) to create a Soap Server using an existing soap file (.WSDL) on my local machine.
I'm using the following configuration in appsettings....
0
votes
0
answers
75
views
StreamReader not Converting MediaStream to a String [duplicate]
In SoapCore the HttpContext is replaced with a MemoryStream which is the snippet contained below, or can be found on GitHub.
// `HttpContext.Request.Body` comes in as a `FileBufferingReadStream`
...
1
vote
0
answers
519
views
ASP.net Core HTTP.sys does not work with https
I have the following ASP.net Core 2.1 SOAP service (SoapCore)
var host = WebHost.CreateDefaultBuilder()
.ConfigureServices(services =>
{
services.Add(new ...
2
votes
2
answers
4k
views
SoapCore errors
I keep getting this issue when I attempt to visit the wsdl page for a service I created in .Net Core 3.0
The request reached the end of the pipeline without executing the endpoint: 'SoapCore'. Please ...
2
votes
1
answer
1k
views
Web method with XmlDocument as return type fails in SoapCore in asp.net core
I am trying to host asmx type web service in asp.net core using SoapCore.
I have one web method as follows.
[OperationContract]
XmlDocument testProperties();
and concrete implementation for this as ...
2
votes
2
answers
5k
views
.NetCore with SoapCore how make the authentication
I want to add authentication as NetworkCredential but I do not know how do I set the authentication
var binding = new BasicHttpBinding();
var endpoint = new EndpointAddress(new Uri(string....