简体   繁体   English

如何将请求发布到此SOAP Web服务

[英]How do POST a Request to this SOAP Web Service

I have been asked to work with a vendor's SOAP web service and they have no documentation for testing requests or responses. 我被要求使用供应商的SOAP Web服务,并且他们没有用于测试请求或响应的文档。

I have an example of a SOAP envelope and was hoping to use fiddler to construct a test that would at least prove I was hitting the service. 我有一个SOAP envelope示例,希望使用fiddler构造一个测试,至少可以证明我在使用该服务。

I haven't been given a reference to the web service and don't know the address. 我没有得到有关Web服务的参考,也不知道地址。 The following XML tag is present: xmlns="urn:xxx-com:xxx:data:v3" . 存在以下XML标记: xmlns="urn:xxx-com:xxx:data:v3"

I guess I have two questions here: 我想我在这里有两个问题:

  1. Can I tell from that tag what the web service address is (what is the 'urn' part representing)? 我可以从该标记中分辨出Web服务地址是什么(“ ur”部分代表什么)?
  2. Can I create a POST in fiddler to the address and paste the SOAP envelope in to get some kind of response? 我可以在fiddler中为该地址创建一个POST并粘贴SOAP信封以获得某种响应吗?

I'm very inexperienced in this area so I apologise if the questions are a bit naive. 我在这方面没有经验,所以如果问题有点天真,我深表歉意。

First: The "xmlns" (which contains urn) is the name space used in this web service, and it doesn't reflect what is the web service location is, as it can contain any text you specify (like: xmlns="urn:anything") and it still valid. 第一:“ xmlns”(包含urn)是此Web服务中使用的名称空间,它不能反映Web服务的位置,因为它可以包含您指定的任何文本(例如:xmlns =“ urn :anything“),它仍然有效。

Second: you should ask for the WSDL file as there is a lot of details still missing from the web service. 第二:您应该要求WSDL文件,因为Web服务中仍然缺少许多细节。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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