jax-ws Web服务可以使用rpc类型调用并接收原始xml吗? [英] Can a jax-ws web service use an rpc type call and receive raw xml?

查看:52
本文介绍了jax-ws Web服务可以使用rpc类型调用并接收原始xml吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正在使用的Web服务,到目前为止,可以通过在客户端中创建端口,然后在该端口上调用方法来正常工作.但是,我刚刚被告知,将要使用Web服务计划的几个客户端基于Web服务使用的模式向其发送原始xml,我想知道这是否可能.我想我可能需要使用提供程序接口来使Web服务能够处理这种类型的请求,但是我不确定.

I have a web service that I've been working on and it's wokrring fine so far by creating a port in the client and then calling a method on the port. However, I've just been told that a couple of the clients who will be using the web service plan on sending it raw xml based based off of the schemas used by the web service and I was wondering if this was possible. I think I may need to use the provider interface to make the web service capable of handling this type of request but I'm not sure.

我已经在这里搜索了问题,但是没有一个问题似乎可以回答我的问题.在谷歌搜索说可能的情况下,我在网上发现了什么,但是随后他们继续进行与我的工作方式完全相同的示例已经有.

I've done a search of the questions here but none of them seemed to answer my question and what I find on the net after googling says that it's possible but they then proceed with examples that work the exact same way as what I already have.

在此先感谢您提供的任何帮助.

Thanks in advance for any help you can provide.

推荐答案

计划根据Web服务使用的模式向其发送原始xml

plan on sending it raw xml based based off of the schemas used by the web service

因此,您是说他们打算基于Web服务的WSDL中发布的架构向您发送XML消息吗?

So you mean they plan on sending you XML messages based on the schema published in your web service's WSDL?

这正是SOAP的含义以及SOAP/XML Web服务的工作方式.

This is exactly what SOAP is and how SOAP/XML web services work.

假设客户端发送的邮件格式正确,则这些客户端的请求与其他任何客户端的请求相同,因此您不必为它们做任何特殊的事情.

Assuming the clients are sending your properly formed messages, these client's requests are identical to requests from any other client and you shouldn't have to do anything special for them.

这篇关于jax-ws Web服务可以使用rpc类型调用并接收原始xml吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆