Welcome to my Github profile. You can find more about me on the following links:
pmorelli92 / soaphttpclient Goto Github PK
View Code? Open in Web Editor NEWHttpClient wrapper for sending SOAP messages.
License: GNU General Public License v3.0
HttpClient wrapper for sending SOAP messages.
License: GNU General Public License v3.0
Hi,
I want to call web service which expect following:
POST ... HTTP/1.1
Host: ...
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "..."
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope ...>
<soap:Body>
<METHOD_NAME xmlns="...">
<requestData />
</METHOD_NAME >
</soap:Body>
</soap:Envelope>
How to tell SoapHttpClient
about METHOD_NAME
?
Hi.
A process gives me an error 'The operation was canceled.'
My question is whether the timeout can be increased and how much the default would be.
sorry my english T.T
I'm using the SoapClient to communicate with a SOAP 1.1 service. I got an error that the action wasn't defined even though I specified an action when I called to post async. I discovered this is because the HTTP Request Header that the SoapClient sets is "ActionHeader" but I believe the SOAP 1.1 specification requires a "SOAPAction" header (https://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383528).
Any chance you can change line 80 of SoapClient.cs to use "SOAPAction" instead of "ActionHeader"?
I have tried the NASA SOAP API though it is working properly. I got the XML String.
How to parse it to object to loop and show the result?
:(
I was hoping to use this in a very large project, but I need to use it in a .Net Standard 2.0 library.
Since it uses HttpClientFactory, it's not compatible with .Net Standard 2.0.
Is there an older working version that is Standard compatible? Or perhaps there is a workaround, such as an alternative constructor that takes an HttpClient instead of factory?
Thanks,
James
I've some reason to send a CDATA data, but don't known how to do it.
If it's not an issue, please let me known the solution. Thx.
tem:GetByStatusAndId
tem:distributorId
arr:guidbee3c0be-ccbf-4882-ad5a-d288f5677a51</arr:guid>
</tem:distributorId>
tem:distributorStatus
arr:unsignedByte123</arr:unsignedByte>
</tem:distributorStatus>
</tem:GetByStatusAndId>
I have to handle X509 certificate import on every call to the SOAP Service is it possible using this API? Can you please help?
Hi.
How can I catch/get the entire SOAP envelope XML that is sent? Mi goal is to get the entire message that have been sent and save it.
Actually I am saving the XML body (the one that I pass to PostAsync function) but I need the entire message on SOAP.
I want to use your SoapHttpClient for making Soap Request but I have difficulties in setting it up. Biggest hurdle is adding a Bearer Token to the SOAP Request.
In the SOAP UI I can add a Bearer token like this:
How can I do the same thing trough code? (@RichardSlater @pmorelli92 @pmorelli-origin)
What I tried in steps:
var header = new XElement("Authorization", $"Bearer {token}");
using (var soapClient = new SoapClient())
{
var result =
await soapClient.PostAsync(
endpoint: endpoint,
soapVersion: SoapVersion.Soap11,
body: body,
header: header);
Log.Information(await result.Content.ReadAsStringAsync());
}
Internal Server Error
I have created SOAPUI project with OAuth 2.0 access token. I need to set the different user access token in different Test Suites, But now if I add access token for one test step it gets applied to all, here I need different user access for different testsuites.
Hi @pmorelli92
Is it possible to push latest version of SoapHttpClient to nuget?
thanks
Hey, im trying to use your package but there is no way to use any authorization option i am right? I have a SOAP Service that requires Basic Authorization for example. Thanks!
Foundational http request message below:
Http 1.1
...headers...
Authorization: Basic [Base64 encoded with user name : password...]
In this situation, how to setup "Authorization" header by SoapHttpClient?
thank you very much
Thanks for the great library. I added support for cancellation tokens in a PR #10 . Can you take a look to see if it's something you are willing to add to the project?
Thanks!
Just wanted to know if there is any plan to publish a new version from the most recent code base. The last version (v3.0.0) was published back in 2019.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.