簡體   English   中英

從HP Service Manager調用TIBCO Web服務導致錯誤

[英]Invocation of TIBCO web service from HP Service Manager is causing error

出於集成目的,我們需要使用HP​​ SM中TIBCO公開的Web服務。

在HP SM中,我們通過使用名為wsdl2js的實用程序來使用Web服務,該實用程序使用wsdl url創建JavaScript。 我能夠使用wsdl2js,但是當我調用Web服務時,我能夠看到請求xml在SM中形成,但作為響應,我收到一條錯誤消息。

Error calling method: doSoapRequest in class:com/hp/ov/sm/server/utility/SoapClient  
Exception(com.sun.xml.messaging.saaj.SOAPExceptionImpl: 
java.security.PirvilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: 
Invalid Content-type:text/html.Is this an error message instead of a SOAP response?

在wsdl文件中,有以下模式:

    <?xml version="1.0" encoding="UTF-8"?>
<!--Created by TIBCO WSDL-->
<wsdl:definitions xmlns:ns1="http://www.tibco.com/schemas/TIGIaaS-IP085/WSDL and XSD/Schema.xsd4" xmlns:tns="http://xmlns.example.com/1372306950675/CreateUpdateIncidentImpl/BusinessProcesses/_00-InputChannels" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns0="http://www.tibco.com/schemas/TIGIaaS-IP085v0.2/WSDL and XSD/Schema.xsd2" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap12/" name="Untitled" targetNamespace="http://xmlns.example.com/1372306950675/CreateUpdateIncidentImpl/BusinessProcesses/_00-InputChannels">
    <wsdl:types>
        <xs:schema xmlns="http://www.tibco.com/schemas/TIGIaaS-IP085v0.2/WSDL and XSD/Schema.xsd2" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.tibco.com/schemas/TIGIaaS-IP085v0.2/WSDL and XSD/Schema.xsd2" elementFormDefault="qualified" attributeFormDefault="unqualified">
            <xs:element name="HPSM">

可能是因為安裝在與TIBCO不同的UNIX服務器上的SM無法讀取模式嗎?

我已經解決了這個問題。 SOAP版本存在問題。 TIBCO提供的wsdl的SOAP版本為1.2,HP SM預期為1.1

SOAP 1.2支持application / soap + xml,而SOAP 1.1支持text / xml。 這就是為什么我收到內容類型錯誤的原因。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM