首页 新闻 搜索 专区 学院

webService通过service方式调用,返回值为null

0
悬赏园豆:20 [已关闭问题] 关闭于 2018-12-08 18:02

我在调用本地虚拟机上的webService服务时,直接调用可以获取到应答报文,通过service方式调用时,返回为null值。对比了注解配置以及服务器地址和端口号,都是正常的。咨询下有遇到过类似场景的园友吗?

/**
WSDL报文,内容比较多,就没有截图
/

<?xml version="1.0" encoding="utf-16"?>
<definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:tns="http://pub.wsinterfaces.s1.crif.com/" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" name="S1Public" targetNamespace="http://pub.wsinterfaces.s1.crif.com/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<xs:schema targetNamespace="http://process.core.s1.crif.com" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="StrategyOneResponse">
<xs:sequence>
<xs:element name="errorCode" type="xs:int" />
<xs:element name="executionTime" type="xs:long" />
<xs:element name="log" nillable="true" type="xs:string" />
<xs:element name="message" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:schema>
</types>
<message name="run">
<part name="request" type="xsd:string" />
<part name="processCode" type="xsd:string" />
<part name="layoutVersion" type="xsd:string" />
<part name="processVersion" type="xsd:string" />
</message>
<message name="runResponse">
<part xmlns:ns1="http://process.core.s1.crif.com" name="runReturn" type="ns1:StrategyOneResponse" />
</message>
<message name="execute">
<part name="request" type="xsd:string" />
</message>
<message name="executeResponse">
<part xmlns:ns2="http://process.core.s1.crif.com" name="executeReturn" type="ns2:StrategyOneResponse" />
</message>
<portType name="S1Public">
<operation name="run" parameterOrder="request processCode layoutVersion processVersion">
<input wsam:Action="http://pub.wsinterfaces.s1.crif.com/S1Public/runRequest" message="tns:run" />
<output wsam:Action="http://pub.wsinterfaces.s1.crif.com/S1Public/runResponse" message="tns:runResponse" />
</operation>
<operation name="execute">
<input wsam:Action="http://pub.wsinterfaces.s1.crif.com/S1Public/executeRequest" message="tns:execute" />
<output wsam:Action="http://pub.wsinterfaces.s1.crif.com/S1Public/executeResponse" message="tns:executeResponse" />
</operation>
</portType>
<binding name="S1PublicServicePortBinding" type="tns:S1Public">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
<operation name="run">
<soap:operation soapAction="" />
<input>
<soap:body use="literal" namespace="http://pub.wsinterfaces.s1.crif.com/" />
</input>
<output>
<soap:body use="literal" namespace="http://pub.wsinterfaces.s1.crif.com/" />
</output>
</operation>
<operation name="execute">
<soap:operation soapAction="" />
<input>
<soap:body use="literal" namespace="http://pub.wsinterfaces.s1.crif.com/" />
</input>
<output>
<soap:body use="literal" namespace="http://pub.wsinterfaces.s1.crif.com/" />
</output>
</operation>
</binding>
<service name="S1Public">
<port name="S1PublicServicePort" binding="tns:S1PublicServicePortBinding">
<soap:address location="http://192.168.122.136:8081/strategyone/ws/S1Public" />
</port>
</service>
</definitions>

/**
本地调用的代码截图
/

/**
用到的注解截图
/

程霜灵的主页 程霜灵 | 菜鸟二级 | 园豆:202
提问于:2018-12-03 15:56
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册