使用shell脚本调用tibco soap Web服务

使用shell脚本调用tibco soap Web服务,shell,soap,tibco,Shell,Soap,Tibco,我试图通过使用curl的shell脚本调用基于tibcosoap的web服务。我得到的响应是200 ok,但在response.xml中没有得到输出 Tibco webservice部署在三个实例中。我试图点击其中一个实例并检索响应,但得到的内容长度为0 我尝试使用curl和wget调用webservice并检索响应,但得到的内容长度为0 下面是curl命令: curl -v --header "Content-Type: text/xml;charset=UTF-8" --header

我试图通过使用curl的shell脚本调用基于tibcosoap的web服务。我得到的响应是200 ok,但在response.xml中没有得到输出

Tibco webservice部署在三个实例中。我试图点击其中一个实例并检索响应,但得到的内容长度为0

我尝试使用curl和wget调用webservice并检索响应,但得到的内容长度为0

下面是curl命令:

    curl -v --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction: "/ServiceImplV1.0/getInfo"/" --data @request2.xml http://sfapt-ap98t:4121/service/dataservice -o response.xml
    request2.xml
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://www.greatclips.com/ghf/tck/service/v1.0">
    <soapenv:Header/>
    <soapenv:Body>
    <v1:GetBaseLineRequest>
    <!--Optional:-->
    <UniqueRequestIdentifier>?</UniqueRequestIdentifier>
    </v1:GetBaseLineRequest>
    </soapenv:Body>
    </soapenv:Envelope>


    Response Hostname was NOT found in DNS cache
    *   Trying 10.215.13.217...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to dlfapt-ap98a (10.215.13.217) port 6121 (#0)
    > POST /service/addataservice HTTP/1.1
    > User-Agent: curl/7.37.0
    > Host: dlfapt-ap98a:6121
    > Accept: */*
    > Content-Type: text/xml;charset=UTF-8
    > SOAPAction: /ServiceImplV1.0/getBaseLineDetails/
    > Content-Length: 323
    >
    } [data not shown] 
curl-v--header“内容类型:text/xml;charset=UTF-8”--header“SOAPAction:”/serviceinmpv1.0/getInfo”/--data@request2.xmlhttp://sfapt-ap98t:4121/service/dataservice -o response.xml
request2.xml
?
在DNS缓存中找不到响应主机名
*正在尝试10.215.13.217。。。
%总接收百分比%x平均速度时间电流
数据加载上载总左速度
0 0 0 0 0 0 0--:-:-:-:---:-:---0*已连接到dlfapt-ap98a(10.215.13.217)端口6121(#0)
>POST/service/addataservice HTTP/1.1
>用户代理:curl/7.37.0
>主机:dlfapt-ap98a:6121
>接受:*/*
>内容类型:text/xml;字符集=UTF-8
>SOAPAction:/ServiceImplV1.0/getBaseLineDetails/
>内容长度:323
>
}[未显示数据]
来自服务器的响应:

* upload completely sent off: 323 out of 323 bytes
    < HTTP/1.1 200 OK
    < Content-Length: 0
    < Date: Fri, 19 Jul 2019 17:57:45 GMT
    * Server  is not blacklisted
    < Server:
    <
    100   323    0     0  100   323      0  19383 --:--:-- --:--:-- --:--:-- 35888
    * Connection #0 to host dlfapt-ap98a left intact
*上传已完全发送:323字节中的323字节
所以
response.xml
不会被创建,或者是零大小?(请用这些重要信息更新你的Q(请不要在评论中回复!)。祝你好运。也许它不在你期望的目录中。也许可以尝试一条艰难的道路,即
/tmp/response.xml
?祝你好运。请重读我的第一条评论。祝你好运。
response.xml
没有被创建,或者是零大小?(请用这些重要信息更新你的Q(请不要在评论中回复!)。祝你好运。也许它不在你期望的目录中。也许可以尝试一条艰难的道路,即
/tmp/response.xml
?祝你好运。请重读我的第一条评论。祝你好运