简体   繁体   中英

Consume Java Web Service from .Net Asynchronous

Is it possible to consume a Java web service (actually it is build by WebMethods from softwareAG) asynchronously from a .NET client (using c#)?

I don't know whether this java WS is supporting Asynch or not, we can't edit it, so what we are able to do is to adjust on client-side (.net)

Thanks in advance for your insight

A web service, no matter what its implementation, can be consumed by any client capable of making the appropriate HTTP request. So if the web service is SOAP based, your .NET client just needs to connect and POST the appropriate XML. This is easy to do.

It's not clear to me what you mean by asynch.

If the service is written to be asynch, it would imply that it immediately returns a response and mechanism to allow the client to come back and check for the response. You should check with the service owner.

Your client is certainly free to call the service in an asynch way. Delegates have been part of .NET for a long time. I believe the modern idiom uses asynch events.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM